Twitter Rate Limiting for Rest API over 3G for Mobile
Twitter have a 150 requests per hour limit for their unauthenticated REST API, I am displaying 2 of the latest tweets in my iPhone application and I don't want to authenticate any users, the problem arises when I fetch tweets over 3G when I get a "Rate limit exceeded" error, what are my options ?
I understand that Twitter calculates this limit based on the public IP of the device, which for mobiles can be shared with many other devices, causing this p开发者_运维知识库roblem.
If you check out Adele's new iPhone app, it has a news section that pulls in tweets, while my app showed rate exceeded, this list updated. The only idea I have is they are fetching these results on the backend, saving the results or caching them and serving them through their server rather then querying Twitter directly from the application.
Not sure you have options. You have to authenticate them.
Most 3G networks allocate dynamic IP addresses that are most likely randomly shared. On my network, MTN, you can't get 3 consecutive successful requests without getting rate limit errors.
I suggest you authenticate them.
精彩评论