Medium

免费增值
Verified
通过 Nishu Jain | 已更新 5 дней назад | Data
人气

9.7 / 10

延迟

906ms

服务等级

100%

Health Check

N/A

返回所有讨论

Latestposts endpoint receiving error response.

Rapid account: Alegarcia
alegarcia
2 года назад

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 года назад

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 года назад

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

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论