yatsenkolesh / instagram-nodejs

Simple library for auth, get followers, search by hashtags and locations, like posts, follow, get user feed of instagram with nodejs
MIT License
318 stars 74 forks source link

Error.Rate Limited #52

Open Ehsan6713 opened 5 years ago

Ehsan6713 commented 5 years ago

I was GettingFollwers I Get This Error.Rate Limited.Can You Say Me How Can I solve This Error?

lain-d commented 5 years ago

instagram's http has a rate limit. If you go over it you will be blocked for about 24 hours.

Ehsan6713 commented 5 years ago

can you say more about this limits?how many request is limit?just for a user has limit,i meen if i use three user in a pc this limitation done for all this users?

lain-d commented 5 years ago

I don't think Instagram publishes their http rate limits publicly. It's for bot protection. Things that will trigger it would be a bunch of HTTP requests in a matter of milliseconds (something a normal human cannot do), or to be making hundreds of https requests all day long.

For reference, the instagram API is 200 calls per user per hour max.

In my use of this library, I've found that putting a time delay of 500-1000ms between instagram calls made it so I had no issues making about 200 requests in an hour.

I hope this helps.