The Medium RSS Feed’s Lacking Half | by Sabesan Sathananthan | Geek Tradition


You possibly can ready to make use of the Superior Medium API that I developed as follows:

There are 5 kinds of requests. you would have the ability to get all of the responses by utilizing HTTP GETtechnique.

Medium feed in JSON

You possibly can in a position to get the RSS feed of the final 10 Medium posts by utilizing the next hyperlinks (exchange your username as a substitute of @username ).

medium.com/feed/@username 
or
username.medium.com/feed

The next request of the API provides the direct JSON conversion of that RSS Feed.

curl https://advanced-medium-api.herokuapp.com/medium/person/{userId}

Medium Superior Information

You possibly can in a position to get the Medium feed in JSON with the lacking a part of the Medium feed equivalent to clapCount, voterCount, responseCount, readingTime. every lacking information injected in each put up(objects) object.

The next request of the API provides the JSON conversion of the RSS feed with the injection of lacking information.

curl https://advanced-medium-api.herokuapp.com/superior/person/{userId}

Medium Custom-made Information

JSON conversion of the Medium RSS feed is custom-made in response to the classes. Order the Medium put up’s tags in response to their use rely among the many newest 10 posts and the tagOrder return that tags’ order rank. Medium’s newest 10 posts had been divided by 3 and each 3 posts had been pushed in an array and people arrays had been pushed in a single array. There’s an algorithm that returns essentially the most appropriate tag for the Medium put up among the many different tags of that Medium put up.

The next request of the API provides the custom-made model of the Medium feed in JSON

curl https://advanced-medium-api.herokuapp.com/custom-made/person/{userId}

Medium Custom-made Superior Information

This response accommodates the Medium custom-made information with the injection of lacking stats equivalent to clapCount, voterCount, responseCount, readingTime.

The next request of the API provides the custom-made model of the Medium feed in JSON with the lacking a part of the Medium feed.

curl https://advanced-medium-api.herokuapp.com/superior/custom-made/person/{userId}

Lacking information of a selected put up.

This response accommodates solely the lacking half (clapCount, voterCount, responseCount, readingTime) of Medium feed for a selected Medium put up.

Request 💻 ➡ 🌎 :

curl https://advanced-medium-api.herokuapp.com/medium/put up/{postId}

Response 🌎➡💻 :

{
"clapCount": 98,
"responseCount": 4,
"voterCount": 12,
"readingTime": 4
}

Leave a Reply

Your email address will not be published. Required fields are marked *