Steemit REST API documentation - Part 1

Words
176
Reading
1 min
Listen
Play
10y

This is a first simple tutorial on using some of the methods of the SteemJS npm package via a REST API.

SteemJS is a Javascript API for the Steem Blockchain developed and maintained by fabien@fabien. See original posts by fabien@fabien at:  

REST API Methods


 Get Trending Tags

https://api.steemjs.com/getTrendingTags?afterTag=funny&limit=100

afterTag: tag name

limit: tags count

Get Block Header

https://api.steemjs.com/getBlockHeader?blockNum=68456

blockNum: block number

Get Block

https://api.steemjs.com/getBlock?blockNum=214

blockNum: block number

Get State

https://api.steemjs.com/getState?path=/trending/funny

or you can use a scope

https://api.steemjs.com/getState?path=/trending/funny&scope=content

path: specify path

scope: eg: content

Get Trending Categories

https://api.steemjs.com/getTrendingCategories?after=joomla&limit=100

after: category name

limit: categories count

Get Config

https://api.steemjs.com/getConfig

Get Dynamic Global Properties

https://api.steemjs.com/getDynamicGlobalProperties

Get Chain Properties

https://api.steemjs.com/getChainProperties

Get Feed History

https://api.steemjs.com/getFeedHistory

Get Current Median History Price

https://api.steemjs.com/getCurrentMedianHistoryPrice

Get Witness Schedule

https://api.steemjs.com/getWitnessSchedule

Get Hardfork Version

https://api.steemjs.com/getHardforkVersion

Get Next Scheduled Hardfork

https://api.steemjs.com/getNextScheduledHardfork

Get Accounts

https://api.steemjs.com/getAccounts?names[]=ned&names[]=joomla-tips

names[]: account name

Lookup Account Names

https://api.steemjs.com/lookupAccountNames?accountNames[]=dollarvigilante&accountNames[]=joomla-tips

accountNames[]: account name

Get Account Count

https://api.steemjs.com/getAccountCount

Get Conversion Requests

https://api.steemjs.com/getConversionRequests?accountName=dollarvigilante

accountName: account name

Get Order Book

https://api.steemjs.com/getOrderBook?limit=100

limit: orders count

Get Account Votes

https://api.steemjs.com/getAccountVotes?voter=ned

voter: voter name

Get Content

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

author: author name

permlink: post permlink

Steemit REST API documentation - Part 1 | Ecency