Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter API Request Limit Problem

Tags:

java

twitter

I've written a small java program to download all friends' and followers' profile pictures from twitter. But i'm getting an error because only 150 requests per hour per IP address is allowed.

the exact error is:

twitter4j.TwitterException: 400:The request was invalid.  An accompanying error message will explain why. This is the status code will be returned during rate limiting.
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <request>/users/show/92715794.xml</request>
  <error>Rate limit exceeded. Clients may not make more than 150 requests per hour.</error>
</hash>

Is there a way around this problem...??? Please help...

like image 285
codemaniac Avatar asked Feb 13 '26 19:02

codemaniac


2 Answers

As a developer you can request whitelisting of your account, raising the limit to 20 000 requests / hours. Read more at http://apiwiki.twitter.com/Rate-limiting

like image 73
Løkling Avatar answered Feb 15 '26 07:02

Løkling


Is there a way around this problem...???

Yes. Slow down your process so that it only makes 150 requests per hour.

like image 26
Gilbert Le Blanc Avatar answered Feb 15 '26 08:02

Gilbert Le Blanc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!