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

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


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

There are 5 sorts of requests. you could possibly have the ability to get all of the responses by utilizing HTTP GETmethodology.

Medium feed in JSON

You can capable of get the RSS feed of the final 10 Medium posts by utilizing the next hyperlinks (substitute 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 Knowledge

You can capable of get the Medium feed in JSON with the lacking a part of the Medium feed reminiscent of clapCount, voterCount, responseCount, readingTime. every lacking knowledge 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 knowledge.

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

Medium Custom-made Knowledge

JSON conversion of the Medium RSS feed is custom-made in accordance with the classes. Order the Medium put up’s tags in accordance with their use rely among the many newest 10 posts and the tagOrder return that tags’ order rank. Medium’s newest 10 posts have been divided by 3 and each 3 posts have been pushed in an array and people arrays have been pushed in a single array. There may be an algorithm that returns probably 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 Knowledge

This response accommodates the Medium custom-made knowledge with the injection of lacking stats reminiscent of 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 knowledge of a specific put up.

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

Request 💻 ➡ 🌎 :

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

Response 🌎➡💻 :

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

author avatar
roosho Senior Engineer (Technical Services)
I am Rakib Raihan RooSho, Jack of all IT Trades. You got it right. Good for nothing. I try a lot of things and fail more than that. That's how I learn. Whenever I succeed, I note that in my cookbook. Eventually, that became my blog. 
rooshohttps://www.roosho.com
I am Rakib Raihan RooSho, Jack of all IT Trades. You got it right. Good for nothing. I try a lot of things and fail more than that. That's how I learn. Whenever I succeed, I note that in my cookbook. Eventually, that became my blog. 

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here


Latest Articles

author avatar
roosho Senior Engineer (Technical Services)
I am Rakib Raihan RooSho, Jack of all IT Trades. You got it right. Good for nothing. I try a lot of things and fail more than that. That's how I learn. Whenever I succeed, I note that in my cookbook. Eventually, that became my blog.