create account

Steemit REST API documentation - Part 1 by joomla-tips

View this thread on: hive.blogpeakd.comecency.com
· @joomla-tips · (edited)
Steemit REST API documentation - Part 1
<html>
<p>This is a first simple tutorial on using some of the methods of the SteemJS&nbsp;npm package via a REST API.</p>
<p>SteemJS is a Javascript API for the Steem Blockchain developed and maintained by @fabien. See original posts by @fabien at: &nbsp;</p>
<ul>
  <li><a href="https://steemit.com/steemjs/@fabien/steemjs-new-npm-package-for-javascript-lovers">SteemJS : the library for JavaScript lovers</a></li>
  <li><a href="https://steemit.com/steemjs/@fabien/steemjs">SteemJS: Explore Steem blockchain! New update with full database API methods coverage</a></li>
  <li><a href="https://steemit.com/steemjs/@fabien/steem-api-now-released">Steem API: Now Released!</a></li>
</ul>
<p><img src="https://dl.dropboxusercontent.com/u/552542683/SteemJS-intro.png" /></p>
<h2>REST API Methods</h2>
<h3><br></h3>
<h3>&nbsp;Get Trending Tags</h3>
<p><code>https://api.steemjs.com/getTrendingTags?afterTag=funny&amp;limit=100</code></p>
<p><strong>afterTag</strong><em>: </em>tag name</p>
<p><strong>limit:&nbsp;</strong>tags count</p>
<p><br></p>
<h3>Get Block Header</h3>
<p><code>https://api.steemjs.com/getBlockHeader?blockNum=68456</code></p>
<p><strong>blockNum</strong><em>: </em>block number</p>
<p><br></p>
<h3>Get Block</h3>
<p><code>https://api.steemjs.com/getBlock?blockNum=214</code></p>
<p><strong>blockNum</strong><em>: </em>block number</p>
<p><br></p>
<h3>Get State</h3>
<p><code>https://api.steemjs.com/getState?path=/trending/funny</code></p>
<p>or you can use a scope</p>
<p><code>https://api.steemjs.com/getState?path=/trending/funny&amp;scope=content</code></p>
<p><strong>path</strong><em>: </em>specify path</p>
<p><strong>scope</strong>: eg: content</p>
<p><br></p>
<h3>Get Trending Categories</h3>
<p><code>https://api.steemjs.com/getTrendingCategories?after=joomla&amp;limit=100</code></p>
<p><strong>after</strong><em>: </em>category name</p>
<p><strong>limit</strong>: categories count</p>
<p><br></p>
<h3>Get Config</h3>
<p><code>https://api.steemjs.com/getConfig</code></p>
<p><br></p>
<h3>Get Dynamic Global Properties</h3>
<p><code>https://api.steemjs.com/getDynamicGlobalProperties</code></p>
<p><br></p>
<h3>Get Chain Properties</h3>
<p><code>https://api.steemjs.com/getChainProperties</code></p>
<p><br></p>
<h3>Get Feed History</h3>
<p><code>https://api.steemjs.com/getFeedHistory</code></p>
<p><br></p>
<h3>Get Current Median History Price</h3>
<p><code>https://api.steemjs.com/getCurrentMedianHistoryPrice</code></p>
<p><br></p>
<h3>Get Witness Schedule</h3>
<p><code>https://api.steemjs.com/getWitnessSchedule</code></p>
<p><br></p>
<h3>Get Hardfork Version</h3>
<p><code>https://api.steemjs.com/getHardforkVersion</code></p>
<p><br></p>
<h3>Get Next Scheduled Hardfork</h3>
<p><code>https://api.steemjs.com/getNextScheduledHardfork</code></p>
<p><br></p>
<h3>Get Accounts</h3>
<p><code>https://api.steemjs.com/getAccounts?names[]=ned&amp;names[]=joomla-tips</code></p>
<p><strong>names[]</strong><em>: </em>account name</p>
<p><br></p>
<h3>Lookup Account Names</h3>
<p><code>https://api.steemjs.com/lookupAccountNames?accountNames[]=dollarvigilante&amp;accountNames[]=joomla-tips</code></p>
<p><strong>accountNames[]</strong><em>: </em>account name</p>
<p><br></p>
<h3>Get Account Count</h3>
<p><code>https://api.steemjs.com/getAccountCount</code></p>
<p><br></p>
<h3>Get Conversion Requests</h3>
<p><code>https://api.steemjs.com/getConversionRequests?accountName=dollarvigilante</code></p>
<p><strong>accountName</strong><em>: </em>account name</p>
<p><br></p>
<h3>Get Order Book</h3>
<p><code>https://api.steemjs.com/getOrderBook?limit=100</code></p>
<p><strong>limit</strong><em>: </em>orders count</p>
<p><br></p>
<h3>Get Account Votes</h3>
<p><code>https://api.steemjs.com/getAccountVotes?voter=ned</code></p>
<p><strong>voter</strong><em>: </em>voter name</p>
<p><br></p>
<h3>Get Content</h3>
<p><code>https://api.steemjs.com/getContent?author=dollarvigilante&amp;permlink=could-steem-be-the-gateway-drug-to-mainstream-cryptocurrency-usage-and-the-end-of-central-banks-and-government</code></p>
<p><strong>author</strong><em>: </em>author name</p>
<p><strong>permlink</strong>: post permlink</p>
<p><br></p>
<p><br></p>
<p><br></p>
</html>
👍  , , , , , , , , , , , ,
properties (23)
authorjoomla-tips
permlinksteemit-rest-api-documentation-part-1
categorysteemjs
json_metadata{"tags":["steemjs","steem-api","steem","programming"],"users":["fabien"],"links":["https://steemit.com/steemjs/@fabien/steemjs-new-npm-package-for-javascript-lovers","https://steemit.com/steemjs/@fabien/steemjs","https://steemit.com/steemjs/@fabien/steem-api-now-released"],"image":["https://dl.dropboxusercontent.com/u/552542683/SteemJS-intro.png"]}
created2016-08-13 17:09:39
last_update2016-08-13 17:11:48
depth0
children11
last_payout2016-09-13 05:41:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,183
author_reputation88,503,590,937
root_title"Steemit REST API documentation - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id785,287
net_rshares25,068,819,367
author_curate_reward""
vote details (13)
@neversmile12b1 ·
Awesome, how do you find out these apis? Could you please release part 2?
properties (22)
authorneversmile12b1
permlinkre-joomla-tips-steemit-rest-api-documentation-part-1-20180202t062258856z
categorysteemjs
json_metadata{"tags":["steemjs"],"app":"steemit/0.1"}
created2018-02-02 06:23:00
last_update2018-02-02 06:23:00
depth1
children0
last_payout2018-02-09 06:23:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length73
author_reputation4,313,287,532
root_title"Steemit REST API documentation - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id34,323,347
net_rshares0
@staticinstance ·
This is awesome, thanks!
properties (22)
authorstaticinstance
permlinkre-joomla-tips-steemit-rest-api-documentation-part-1-20170802t035307503z
categorysteemjs
json_metadata{"tags":["steemjs"],"app":"steemit/0.1"}
created2017-08-02 03:53:06
last_update2017-08-02 03:53:06
depth1
children0
last_payout2017-08-09 03:53:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length24
author_reputation23,856,326,319,736
root_title"Steemit REST API documentation - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id10,497,849
net_rshares0
@t3ran13 · (edited)
how can i get user blog posts list?
👍  
properties (23)
authort3ran13
permlinkre-joomla-tips-steemit-rest-api-documentation-part-1-20160905t082208740z
categorysteemjs
json_metadata{"tags":["steemjs"]}
created2016-09-05 08:22:09
last_update2016-09-05 17:33:42
depth1
children0
last_payout2016-09-13 05:41:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length35
author_reputation50,037,290,585,145
root_title"Steemit REST API documentation - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,131,596
net_rshares0
author_curate_reward""
vote details (1)
@the5kyliner ·
Is there any way on posting on steem via JS API?
properties (22)
authorthe5kyliner
permlinkre-joomla-tips-steemit-rest-api-documentation-part-1-20170921t200722720z
categorysteemjs
json_metadata{"tags":["steemjs"],"app":"steemit/0.1"}
created2017-09-21 20:06:51
last_update2017-09-21 20:06:51
depth1
children0
last_payout2017-09-28 20:06:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length48
author_reputation2,984,047,975,687
root_title"Steemit REST API documentation - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,554,956
net_rshares0
@tomoaki ·
will post request API be made ?
properties (22)
authortomoaki
permlinkre-joomla-tips-steemit-rest-api-documentation-part-1-20160822t102524004z
categorysteemjs
json_metadata{"tags":["steemjs"]}
created2016-08-22 10:25:24
last_update2016-08-22 10:25:24
depth1
children5
last_payout2016-09-13 05:41:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length31
author_reputation630,154,656
root_title"Steemit REST API documentation - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id932,643
net_rshares0
@joomla-tips ·
Unfortunately this is not publicly available yet but it will be in a few weeks. I will post a new updated article with more methods.
properties (22)
authorjoomla-tips
permlinkre-tomoaki-re-joomla-tips-steemit-rest-api-documentation-part-1-20160822t160107397z
categorysteemjs
json_metadata{"tags":["steemjs"]}
created2016-08-22 16:01:06
last_update2016-08-22 16:01:06
depth2
children4
last_payout2016-09-13 05:41:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length132
author_reputation88,503,590,937
root_title"Steemit REST API documentation - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id936,347
net_rshares0
@faddat ·
How can I get a category returned to me as JSON?
properties (22)
authorfaddat
permlinkre-joomla-tips-re-tomoaki-re-joomla-tips-steemit-rest-api-documentation-part-1-20160825t014838340z
categorysteemjs
json_metadata{"tags":["steemjs"]}
created2016-08-25 01:47:45
last_update2016-08-25 01:47:45
depth3
children0
last_payout2016-09-13 05:41:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length48
author_reputation36,581,868,473,026
root_title"Steemit REST API documentation - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id976,232
net_rshares0
@igloro ·
Still no ability to make post with API ?
properties (22)
authorigloro
permlinkre-joomla-tips-re-tomoaki-re-joomla-tips-steemit-rest-api-documentation-part-1-20180102t140810054z
categorysteemjs
json_metadata{"tags":["steemjs"],"app":"steemit/0.1"}
created2018-01-02 14:08:06
last_update2018-01-02 14:08:06
depth3
children0
last_payout2018-01-09 14:08:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length40
author_reputation11,402,779,056
root_title"Steemit REST API documentation - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id26,565,696
net_rshares0
@indominus ·
Did the post API ever get added?
properties (22)
authorindominus
permlinkre-joomla-tips-re-tomoaki-re-joomla-tips-steemit-rest-api-documentation-part-1-20170522t071510046z
categorysteemjs
json_metadata{"tags":["steemjs"],"app":"steemit/0.1"}
created2017-05-22 07:15:09
last_update2017-05-22 07:15:09
depth3
children1
last_payout2017-05-29 07:15:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length32
author_reputation6,059,351,799
root_title"Steemit REST API documentation - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,654,667
net_rshares0
@yurtsevt ·
Is this api currently active? I need a stable api for some testings, thank you.
👍  
properties (23)
authoryurtsevt
permlinkre-joomla-tips-steemit-rest-api-documentation-part-1-20170824t002419112z
categorysteemjs
json_metadata{"tags":["steemjs"],"app":"steemit/0.1"}
created2017-08-24 00:24:18
last_update2017-08-24 00:24:18
depth1
children0
last_payout2017-08-31 00:24:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length79
author_reputation1,521,137,589
root_title"Steemit REST API documentation - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,688,155
net_rshares0
author_curate_reward""
vote details (1)