Open API to get Steemit view counts

I needed to access posts' view counts in a programmable way. After some digging I found that Steemit has a private API for that. (Page views are not actually stored at the chain.)


Chrome debug console capturing Steemit's page_view request.


API

In order to replicate same request you need to

  • Send a request to steemit.com and get a valid CSRF token.
  • Use that token and session, send another request to api/v1/page_view.

or

Just pass the Steemit Post URL to pageview.steem.rocks:

http://pageview.steem.rocks/?url=https://steemit.com/roadmap2018/@steemitblog/steemit-roadmap-2018-community-input-requested

This post has 4897 page views at the moment. :)

Source code

@emre/steemit-view-api

H2
H3
H4
Upload from PC
Video gallery
3 columns
2 columns
1 column
8 Comments