[Steem-JS] How would i go about just getting posts made with a certain app?

in #steem-dev7 years ago

In the documentation it's not very clear what kind of values you can pass in the query parameter, but from what i can find there's not much you can pass there.
But is there a way so it only grabs posts made on a certain app?
I tried out of thin air to just add a 'app' key with the app name as a value, but with no success.

Is this possible at all with steem-js?

Sort:  

Is this not even possible with steem-js, or even the regular api at all?

No, it's not possible with the json-rpc api's in steem at this time.

You'd have to index the content externally and then write your own API's to query like this.

ok, thanks for the response, it's a bummer though.

https://www.steemdocs.com/api/javascript/broadcast/comment.html

You can filter the json_metadata, it usually contains the app where the post got created.

how would i go about that though?
cause doing { json_metadata: JSON.stringify({app: "chainbb/0.2"}), limit: 10 }
doesn't do the trick.

thanks this was super useful

Congratulations @anarchony! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on any badge to view your own Board of Honnor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Coin Marketplace

STEEM 0.23
TRX 0.21
JST 0.036
BTC 98534.33
ETH 3364.06
USDT 1.00
SBD 3.16