Skip to content
TORNLIFE More

Whats The most efficient way to fetch the whole bounty list?

Started by WeirdOz [4053827] on in API Development.

3 replies · 123 views · thread synced · 3 days ago · View on torn.com
About this thread

Posts archived: 4 / 4 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
4
Discussion span
→
People posting
4
Likes on archived posts
2
Posts by staff, officers and moderators
1
Authority score
73 / 100
Historical score
35 / 100
Story score
29 / 100
Engagement score
52 / 100

Most-liked replies

WeirdOz [4053827]

The title speaks for itself, the bounty list is so huge, it says in the metadata there is currently 5697 bounties in total. Each fetch returns 100 at most. So we need 57 calls just for the complete bounty list. 

I understand there is 100 api calls / min hard cap, but here are 2 questions:

-can I make that 57 calls at once?

-if so, should I? Unless there is a better way for this?

Omanpx [1906686]

Yes, you can. 

No, you shouldn't.

 

Absolute majority of bounties are $1 mission or random ones. Fetching the first 10 or so pages would get you more than enough. Not to mention that if you fetch the same list again in 2 minutes, it would be completely different as bounties get claimed and placed on a regular basis.

Raara [2229608]

Probably relatedly, is there a reason why this query doesn't filter based on the from?

 

https://api.torn.com/v2/torn?selections=bounties&from=1784721046&sort=DESC