How To Get The MetaData Of Any Steemit Post - The Easy / Lazy Way

in #utopian8 years ago (edited)

As a developer, I've been struggling with finding the best way to get the meta data related to a post on Steemit: from creation, up to more advanced props, like beneficiaries, payment type, voters and so on and so forth.

You can obviously do this by using one of the blockchain API calls, by issuing a JSON 2.0 RPC call, or just by using one of the Python, JavaScript or PHP libraries.

But there is also a very easy way to do this, one that doesn't involve using third party software and which works instantly.

You only need to add ".json" at the end of an URL. The trick is that the URL must be taken from the user's blog feed, which has a specific order of the URL structure (tag, author nickname, post slug).

So here's what you get if you add ".json" to my previous post:

You get pretty much everything you need, and you didn't have to use any third party library.

Kinda neat!


I'm a serial entrepreneur, blogger and ultrarunner. You can find me mainly on my blog at Dragos Roua where I write about productivity, business, relationships and running. Here on Steemit you may stay updated by following me @dragosroua.


Dragos Roua


Wanna know when you're getting paid?

I know the feeling. That's why I created steem.supply, an easy to use and accurate tool for calculating your Steemit rewards

It's free to use, but if you think this is a useful addition, I'd appreciate your witness vote.

Thank you!

Psst: new to Steemit? Start Here

Sort:  

Less is more. 🤖

As any Unix / Linux user would know, obviously...

This is cool. So I get to see all those info I would need expertise of other complex apps for. Thanks for the info @dragosroua. Easy, stress-free and without cost.

That a great tip for lazy guys like me

@dragosroua
That's simply awesome. JSON is easy to read anyways. Thanks a lot.

Geek-tastic :)))

Now you just need to edit it to add the metadata of this post.
And edit again, to add the refreshed metadata..and edit again to.....
:)))

I am learning Python, JavaScript or PHP. Thanks Easy, stress-free and without cost. Information is very useful.

True such a great easy way👏 Thanks dude

Very intetesting one sir i will try it sir

Wow great,I think this is what have been looking for.thanks for sharing dragos

Coin Marketplace

STEEM 0.12
TRX 0.34
JST 0.033
BTC 123187.90
ETH 4538.42
SBD 0.78