How webpages like Statigram doesn't exceed Ins

2019-02-01 19:42发布

Well, pretty much what it says on the tin.

I'm really curious about how pages like Statigram do their search functionality without users authentication and not exceeding the limits?

If I'm correct, Instagram API allows 5000 calls per hour, so I believe it's very likely that they indeed have more traffic than 5000 requests per hour.

Maybe It's a dumb question and Statigram has a special deal with Instagram to use their API or maybe they don't use the API and they use some other method?

3条回答
啃猪蹄的小仙女
2楼-- · 2019-02-01 20:09

They must have some sort of arrangement with Instagram as @RunscopeAPITools mentions. You are able to post comments to Instagram from Statigram, which requires special permission.

查看更多
小情绪 Triste *
3楼-- · 2019-02-01 20:19

The only special request you have to send to Instagram is the request to post comments.

The API limit is 5000 requests per hour per access_token or client_id. Every user has their own access_token, so as long as the requests from the third party application uses each individual access token, they will be hard pressed to exceed 5000 per user per hour.

That works out to 83 requests per minute and any user interacting with your application is highly unlikely to hit that.

From the docs:

You are limited to 5000 requests per hour per access_token or client_id overall. Practically, this means you should (when possible) authenticate users so that limits are well outside the reach of a given user.

If you are not using user authentication, you will likely hit the limit with just your client_id.

查看更多
走好不送
4楼-- · 2019-02-01 20:27

Most likely they're using one of the following methods:

  • An arrangement with Instagram
  • Credential rotation
  • IP rotation
  • Heavy caching (especially across credentials or IPs)
  • Screenscraping

In cases like this, if you don't have a special arrangement, you're almost certainly violating the terms of service. If you think your service is useful enough that Instagram would be willing to whitelist you to make more requests, get in touch with them.

查看更多
登录 后发表回答