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.
Join in the discussion - add comment below:
Thanks, the topfeeds endpoint gives me what I wanted. I appreciate the response.
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:
Hope this helps.
Let me know if you’ve any other doubts.
Regards,
Nishu Jain
nishu@mediumapi.com