BlockPost API
BlockPost introduces a simple suite of APIs for others to read from the bSocial (BitcoinSchema) network.
NOTE: The APIs are open and unlimited and no guarantees are given. If you want to build a serious business around
these API's, contact us at help@blockpost.network.
API endpoints
Get latest posts
https://blockpost.network/api/v1/posts/latest
This will return the 20 latest posts from the network. If you want to get the next 20, call the API endpoint
again, but now with the timestamp of the last post in the from query parameter.
https://blockpost.network/api/v1/posts/latest?from=1642495551.8885
You can also get only the id's of the posts, which can be used together with the posts/get endpoint to create
a way of loading the posts asynchronously.
https://blockpost.network/api/v1/posts/latestIds
Get child posts of a post
https://blockpost.network/api/v1/posts/children?id=cdaaf016855b7920399277769add32eacfcd92d8e257955fef58397bb907da21
This will get all the replies, or children, of the given post, from the transaction id in the id parameter.
Search posts
https://blockpost.network/api/v1/posts/search?term=blockpost
This will search all posts for blockpost. This endpoint also takes the from parameter, in the same way
as posts/latest.
You can also get only the transaction ids of your search term.
https://blockpost.network/api/v1/posts/searchIds?term=blockpost
Get a single post
https://blockpost.network/api/v1/posts/get?id=cdaaf016855b7920399277769add32eacfcd92d8e257955fef58397bb907da21
This gets the full post, from the transaction id in the id parameter.
Get likes
https://blockpost.network/api/v1/posts/likes?id=cdaaf016855b7920399277769add32eacfcd92d8e257955fef58397bb907da21
This gets all the likes of the post, given in the transaction id in the id parameter.
Get tips
https://blockpost.network/api/v1/posts/tips?id=cdaaf016855b7920399277769add32eacfcd92d8e257955fef58397bb907da21
This gets all the tips of the post, given in the transaction id in the id parameter.
Get an identity
https://blockpost.network/api/v1/bap/get?idKey=ce007938819c927a94af9f52524a65a205e9917fd4b099b61dbc869eade43278
Get the public profile of the identity given by the idKey.
bSocial / BitcoinSchema / BlockPost
For more information about the bSocial network and the BitcoinSchema protocol see:
https://blockpost.network/post/cdaaf016855b7920399277769add32eacfcd92d8e257955fef58397bb907da21