You are viewing a single comment's thread from:

RE: Steem for script kiddies: paginated get_account_history calls

in #steem2 years ago (edited)

Quick question: get_discussions_by_created is limited to 100 entries, unfortunately there is no start parameter for this function.

{"jsonrpc":"2.0", "method":"condenser_api.get_discussions_by_created", "params":[{"tag":"deutsch","limit":100, "truncate_body": 1}], "id":1}

Do you have any idea how I can get the next 100 entries?

Maybe there is another API function to read posts by_created. (I only use curl calls, no steem.js).

EDIT: Really hard, got the solution in this post which was written six years ago. Do you know the reason why these two parameters are not specified in the API documentation?

Sort:  

Wow. start_permlink and start_author - I had no idea about that, so thank you. I wonder if there is also a secret trick for account.notifications... Looks like, maybe, last_id.

curl -s --data '{"jsonrpc":"2.0", "method":"bridge.account_notifications", "params":{"account":"remlaps-lite","limit":1,"last_id":50126763}, "id":0}' https://api.steemit.com | jq -S .
{
"id": 0,
"jsonrpc": "2.0",
"result": [
{
"date": "2022-08-05T01:01:06",
"id": 50126762,
"msg": "@penny4thoughts voted on your post ($0.10)",
"score": 25,
"type": "vote",
"url": "@remlaps-lite/creativity-challenge-6-uber-s-canine-division"
}
]
}

@cmp2020 and I were just looking for something like that yesterday, but until I read your comment and the linked post, it hadn't occurred to me to check in github.

Coin Marketplace

STEEM 0.18
TRX 0.14
JST 0.030
BTC 59238.58
ETH 3176.28
USDT 1.00
SBD 2.45