Geek Culture
Published in

Geek Culture

The Medium RSS Feed’s Missing Part

retrieves the stats (clapCount, voterCount, responseCount, and readingTime) of Medium posts

Photo by Ryoji Iwata on Unsplash

Initial Intuition

Inspecting a Medium post page.
curl https://medium.com/p/unique_Id_of_the_post >> post.html
window.__APOLLO_STATE__ object

How to scrape data in Script Tag

Photo by Kike Salazar N on Unsplash

How to use the Advanced Medium API

Medium feed in JSON

medium.com/feed/@username 
or
username.medium.com/feed
curl https://advanced-medium-api.herokuapp.com/medium/user/{userId}

Medium Advanced Data

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

Medium Customized Data

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

Medium Customized Advanced Data

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

Missing data of a particular post.

curl https://advanced-medium-api.herokuapp.com/medium/post/{postId}
{
"clapCount": 98,
"responseCount": 4,
"voterCount": 12,
"readingTime": 4
}

Conclusion

--

--

A new tech publication by Start it up (https://medium.com/swlh).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sabesan Sathananthan

Software Engineer 👨‍💻 @SyscoLABSSL | Postgard🧑‍🎓 in CSE at UOM | Technical Writer ✍️ | sabesansathananthan.now.sh | Still makes silly mistakes daily.