I don’t want any of the premium API features, I just want higher rate for the friendships/show.json, what options do I have?
Premium API is for Tweet Search Only - unfortunately there is no way to get higher limits for friendships/show.json
So is there an unofficial solution for that?
No - the API gives you the best data. If you are checking the same user over and over, you can try to use https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids or followers ids and then match the IDs that way, instead of using friendships/show.json on individual pairs of users.
I want to check the relationship for up to 5 users with someone’s whole following list. any ideas?
So I am getting the following list for user a and then have to go through each user and check the relationship with 5 users
Yes, so it would make sense to crawl the set of ids and check the 5 users by id instead of making separate calls.
But if someone is following 500 people, you need 500 requests to get the ids of everyone in the list. and again only 15 allowed
So why here they’re saying “These rate limits apply to the standard API endpoints only, does not apply to premium APIs.”?
(The docs mention Premium API because there are search endpoints listed there too, but Premium API only has 2 endpoints - 30day and fullarchive tweet search. Premium API is not relevant here at all.)
But if someone is following 500 people, you need 500 requests to get the ids of everyone in the list. and again only 15 allowed
No, in this case, you make 1 call to https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids with a count=5000 parameter to get all ids in one go, and then in your code, check if this set of ids contains the 5 ids you’re interested in - no further API calls are necessary. If someone is following 10k users, you would need to make 2 API calls to get the entire set using pagination (working with cursors is linked in the docs).
1 Like
system
Closed
#10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.