rate limit in twitter api - api

I'm using twitter developer API for my project. I have created an account with my phone number and email address. As you know there are some rate limits in twitter API!
For using API I should create app and user tokens of that app.
My question is that if I create multiple apps for that single account and use them in my project, my rate limit is multiplied by number of apps or requests are aggregated so my rate limit doesn't change?

Yes. It is limited by account.
Rate limiting of the standard API is primarily on a per-user basis —
or more accurately described, per user access token. If a method
allows for 15 requests per rate limit window, then it allows 15
requests per window per access token.
See: https://developer.twitter.com/en/docs/basics/rate-limiting.html

Related

YouTube API Quota - Multiple accounts

Version 3 of the YouTube Data API has concrete quota numbers listed in the Google API Console where you register for your API Key. You can use 30,000 units/second/user and 1,000,000 per day. Projects that had enabled the YouTube Data API before April 20, 2016, have a default quota of 50M/day.
This means that once we breach this numbers, we'll receive in the header that the rate limits have been exceeded.
My question is, can you create multiple accounts, which will in theory DOUBLE the quota?
Or is it also IP restricted too meaning /user1/ & /user2/ requests won't actually change the quota?
It is my understanding that the quota is PER PROJECT, not per account. You could create 3 projects and each project would have the default quota. Then in your application you could attempt to use all 3 combined in order to post to the API with a higher throughput.

Is there a limit on instagram's api for oauth tokens

Sorry this question might seem a little dumb, but does instagram limit access to the access tokens they give you. I know on twitter you're limited to 100,000 access tokens, so does instagram do the same on their api? Lets say I have 150,000 users, will instagram's api allow those users to be authorized?
The official documentation does not say about any limits about access tokens. However they have limits per hour.
Global rate limits are applied inclusive of all API calls made by an app over the 1-hour sliding window, regardless of the particular endpoint. The limits are applied independently from each other; authenticated calls are not counted against the rate limit for unauthenticated calls and vice-versa.
So the answer is No, as of now.

Instagram api limit in large, public app

We've a large open system which offers the possibility to host a large number of apps. Every app has roughly 100 to 500 active users. The backend has the option to add a photo album page and I'd like to add Instagram as a feature. The app admin only has to add the username of his/her instagram account to make the connection. But with this number of apps and end users we reach the api limit with our developer account rather quickly. Is there some sort of workaround for this?
From my understanding the API limit is 5000 requests per hour per access_token or client_id. Since every user on your system should have their own access_token, and as long as the requests from your application uses each individual access token, you should be fine since that limit is going to be a per user limit.
Refer to Instagram End Point > Limits
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.

Is the Twitter Search API affected by the recent Twitter API changes?

I've been building an app which allows the user to search through recent (i.e. 6-9 days worth) public tweets on Twitter using the Twitter Search API.
Currently, the site is entirely public - that is, users do not need to sign in to Twitter (or even be Twitter users at all) to use my app.
However, the upcoming changes to the Twitter API have left me confused, particularly the fact it would appear that every request to Twitter's API will need to be authenticated.
My limited understanding of how Twitter's API works is that I need to authenticate my app using OAUTH, which in turn means that, if I want to continue accessing the Twitter Search API, users will need to sign in to my site before they can use the functionality related to the Search API - hence, only Twitter users will be able to use that section of my app.
Am I understanding this correctly, or is the Twitter Search API exempt from the changes? If I authenticate my app, does this mean the rate at which users can search Twitter status updates through my app is increased (or any other advantages over having non-authenticated apps)? Note that I am currently implementing a caching feature to cache related searches.
Thanks!
The changes to the Twitter API would affect your application depending on how your application works. These are the changes that you should be aware of:
All requests used to be anonymous. Now, all requests must be authenticated via OAuth.
With the old rate limits, according to my tests, you where able to make about one request per second per IP address. Now you can make 180 requests per 15 minute block per authenticated user (1 request every 5 seconds on average).
Not related, but still worth mentioning, the data that the new API returns is more similar to the data that the Streaming API returns. It's much more complete.
So, according to these changes, if your application uses some kind of a bot which polls the Search API, stores the results into a database, and then your users search within these stored results; you will have to implement OAuth with your own access token, which you can get by creating an application at dev.twitter.com.
But, if your application connects to the Search API every time that your users interact with it, and you think that you will have to make more than one request every 5 seconds on average, then you will have to ask your users to authenticate in order to get their access tokens for your requests.

Twitter API Limit

I have heard that Twitter limits the number of API calls a third party app can make per hour. I believe the limit is around 100. My question is, does that limit apply per user, or is it 100 calls per app? 100 for the entire application seems very low, but I wanted to make sure and I couldn't find my answer in the documentation I was reading. Thanks.
https://dev.twitter.com/docs/rate-limiting
The default rate limit for calls to
the REST API is 150 requests per hour.
The REST API does account- and
IP-based rate limiting. Authenticated
API calls are charged to the
authenticating user's limit while
unauthenticated API calls are deducted
from the calling IP address'
allotment.
The limit as of Oct. 8, 2009 is 150 requests per hour per ip/account. Sending tweets doesn't go against that limit.
However, you can get your ip(s) and account whitelisted, which gets you up to 20,000 requests per hour per ip/account. To do that, go to: http://twitter.com/help/request_whitelisting
Note: You MUST be in production to be whitelisted.
For those of us in beta (myself included) all is not lost as Twitter has an API to check how many requests/hour you have left for that ip/account (the api is called rate_limit_status).
(Sorry, I'd post more link but Stackoverflow won't let me...)
http://apiwiki.twitter.com/Rate-limiting contains lots of information, including this;
"The default rate limit for calls to the REST API is 150 requests per hour. The REST API does account- and IP-based rate limiting. Authenticated API calls are charged to the authenticating user's limit while unauthenticated API calls are deducted from the calling IP address' allotment."
The rates are significantly lower than what they used to be. There is no more white listing, and most API calls are now 15 per 15 minutes. In addition there is a cap of calls per hour at 100, and an additional ceiling for things like direct messages; they are also limited to 1000 per 24 hours.
It is 100 calls per IP or per user. and the Limit was recently increased to either 125 or 150.
If you have a Twitter Application that comes from a single IP, like a web application, you can get your IP/Account Whitelisted, allow for 10,000 calls per hour.
It's 100 calls per user, not per application.
link text
It's most likely 100 calls per IP per hour. I doubt there's a reliable way for them to track which application is making the request.