Medium

ÜCRETSİZ PREMIUM
Verified
Taraf Nishu Jain | Güncelleyen 4 days ago | Data
Popülerlik

9.7 / 10

Gecikme

1,190ms

Hizmet Düzeyi

100%

Health Check

N/A

Tüm Tartışmalara Dön

Latestposts endpoint receiving error response.

Rapid account: Alegarcia
alegarcia
2 years ago

I’m using your API to acquire the latest posts for various topic slugs. The latestposts endpoint works for most topics, but for some topics an error response is returned. For instance, for the endpoint:

https://medium2.p.rapidapi.com/latestposts/astronomy

the following response is received

{‘error’: ‘API is working but something unexpected occured. Please check your input!’}

Another topic that had this response was “self-improvement”. I have some suspicions as far as why this is happening, but I could use some help with this.

Rapid account: Alegarcia
alegarcia Commented 2 years ago

Thanks, the topfeeds endpoint gives me what I wanted. I appreciate the response.

Rapid account: Nishujain 199719 Vg Ifu FH Zx VZ
nishujain199719-vgIfuFHZxVZ Commented 2 years ago

Hi Alegarcia,

The Latestposts endpoint returns the results only for a fixed set of about ~120 topic slugs as defined by the old Medium’s algorithm. Those hard-coded topics were used to classify the articles by Medium when they used to distribute them. But now, they have change it.

Medium’s new algorithm has moved to a tag-based system. So for the topics that are not in the list of 120, the results will not show up.

Alternatively,

You can use the “Get Top Feeds” endpoint (https://medium2.p.rapidapi.com/topfeeds/astronomy/new) to get the same results. Here you’ll have multiple mode options, that you can use to customize your results

Mode:

`hot` : For getting trending articles
`new` : For getting latest articles
`top_year` : For getting best articles of the year
`top_month` : For getting best articles of the month
`top_week` : For getting best articles of the week
`top_all_time` : For getting best article of all time

Hope this helps.

Let me know if you’ve any other doubts.

Regards,
Nishu Jain
nishu@mediumapi.com

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun