Home Software Engineering The Medium RSS Feed’s Missing Part | by Sabesan Sathananthan | Geek Culture

The Medium RSS Feed’s Missing Part | by Sabesan Sathananthan | Geek Culture

0
The Medium RSS Feed’s Missing Part | by Sabesan Sathananthan | Geek Culture

[ad_1]

You could able to use the Advanced Medium API that I developed as follows:

There are 5 types of requests. you could be able to get all the responses by using HTTP GETmethod.

Medium feed in JSON

You could able to get the RSS feed of the last 10 Medium posts by using the following links (replace your username instead of @username ).

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

The following request of the API gives the direct JSON conversion of that RSS Feed.

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

Medium Advanced Data

You could able to get the Medium feed in JSON with the missing part of the Medium feed such as clapCount, voterCount, responseCount, readingTime. each missing data injected in every post(items) object.

The following request of the API gives the JSON conversion of the RSS feed with the injection of missing data.

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

Medium Customized Data

JSON conversion of the Medium RSS feed is customized according to the categories. Order the Medium post’s tags according to their use count among the latest 10 posts and the tagOrder return that tags’ order rank. Medium’s latest 10 posts were divided by 3 and every 3 posts were pushed in an array and those arrays were pushed in one array. There is an algorithm that returns the most suitable tag for the Medium post among the other tags of that Medium post.

The following request of the API gives the customized version of the Medium feed in JSON

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

Medium Customized Advanced Data

This response contains the Medium customized data with the injection of missing stats such as clapCount, voterCount, responseCount, readingTime.

The following request of the API gives the customized version of the Medium feed in JSON with the missing part of the Medium feed.

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

Missing data of a particular post.

This response contains only the missing part (clapCount, voterCount, responseCount, readingTime) of Medium feed for a particular Medium post.

Request 💻 ➡ 🌎 :

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

Response 🌎➡💻 :

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

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here