Steemit REST API documentation - Part 1
steemjs·@joomla-tips·
0.000 HBDSteemit REST API documentation - Part 1
<html> <p>This is a first simple tutorial on using some of the methods of the SteemJS 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: </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> Get Trending Tags</h3> <p><code>https://api.steemjs.com/getTrendingTags?afterTag=funny&limit=100</code></p> <p><strong>afterTag</strong><em>: </em>tag name</p> <p><strong>limit: </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&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&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&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&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&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>