jlobos / instagram-web-api

🤳 Instagram Private Web API client for Node
https://npmjs.com/instagram-web-api
MIT License
1.12k stars 185 forks source link

Rate limit for requests? #164

Open sbr2567 opened 4 years ago

sbr2567 commented 4 years ago

I'm trying to retrieve thousands of user profiles through a users follower count, but can't figure out how to avoid instagram's rate limit which returns a 429 status code.

I tested it and it caps at 150 requests in 1.5 minutes. That's with a 0.6 second timeout delay between which iteration in the loop. It ended up retrieving around 3,000 cases of users with 20 users per request. Instagram straight up locked my account after that point (wasn't a personal account or anything) to where I couldn't access any page.

How should I avoid exceeding the rate limit? Set my timeout delay to 5 seconds? Use a rotating proxy? i'm quite lost for what options I have currently.

Cheers.

codexJoin commented 4 years ago

Usa a proxy, or wait 4 minutes after 150 requests.

benkauffman commented 3 years ago

@codexJoin where did you pull the 4 min sleep after 150 requests from? I’ve been trying to get exact Instagram api rate limits, but can’t seem to find them published anywhere 🤦‍♂️

raginisahu commented 3 years ago

Hey,

Did you find anysolution ?

I'm facing same issue.

Thanks in advance

raginisahu commented 3 years ago

I'm using roating proxy but after the three request i'm getting an error.

image