JSON API to get reward distribution of steem posts

in #python7 years ago (edited)

I have needed a simple web service to pull the distribution data of rewards on posts to use it at steem.rocks.

By saying distribution data, I mean

  • Author rewards
  • Curation rewards
  • Beneficiary rewards
  • Total rewards

Since I had this little estimator app, I have expanded its functionality to respond with JSON data for posts.

Example Query
http://estimator.steem.rocks/rewards.json?links=@emrebeyler/turkish-translation-of-electron-564-words-part-4
Response

image

It works with multiple posts, too.

Example query with two posts

http://estimator.steem.rocks/rewards.json?links=@emrebeyler/turkish-translation-of-electron-564-words-part-4,@emrebeyler/steem-python-for-dummies-11-lookups-discussion-queries
Response

image


As usual, the code is open-source. You can see at @emre/reward_estimator

Expect to see new developments on steem.rocks. :)

Sort:  

Calling @originalworks :)
img credz: pixabay.com
Nice, you got a 50.0% @reggaemuffin 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!

It's really nice seeing improvements in your website. One of my favourite tools.



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