Open API to get Steemit view counts

in #steemit7 years ago (edited)

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

Sort:  

Woot. Well said!

@not-a-bird, I knew you were curious about this. ^

good luck to try

Thanks for sharing bro ;)

Calling @originalworks :)
img credz: pixabay.com
Nice, you got a 62.0% @peaceandlove christmas upgoat, thanks to @omersurer
Want a christmas boost? Minnowbooster's got your back!

The @OriginalWorks bot has determined this post by @emrebeyler to be original material and upvoted it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

2 years old !BEER



Hey @emrebeyler, here is a little bit of BEER from @isnochys for you. Enjoy it!

Coin Marketplace

STEEM 0.18
TRX 0.15
JST 0.029
BTC 63607.88
ETH 2506.13
USDT 1.00
SBD 2.59