Rate Limits and Quotas
API rate limits are the number of requests that you can make to the API within a specific time frame. The rate limits are set to ensure that the API is available to all users and to prevent abuse. If you exceed the rate limit, you will receive an error response with the status code 429 Too Many Requests.
TIP
The rate limits for the APITube News API are based on the plan you are subscribed to. You can view the rate limits for each plan below.
Rate limits
| Plan | Rate limit |
|---|---|
| Free | 30 requests per 30 minutes and 1 page of results |
| Basic | 1500 requests per 15 minutes |
| Professional | 3000 requests per 15 minutes |
| Corporate | 5000 requests per 15 minutes |
SSE Stream Connections
Each plan has a limit on the number of concurrent SSE stream connections:
| Plan | Max SSE Connections |
|---|---|
| Free | 1 |
| Basic | 2 |
| Professional | 10 |
| Corporate | 50 |
If you exceed the limit, the API will return a 429 error with code ER0360.
Monitoring Rate Limits
APITube News API uses HTTP headers to provide information about your current rate limit status. The following headers are included in every API response:
| Header | Description |
|---|---|
X-RateLimit-Limit | The maximum number of requests you can make in the current time window |
X-RateLimit-Remaining | The number of requests remaining in the current time window |
X-RateLimit-Reset | The number of seconds remaining until the rate limit resets |
Example:
X-RateLimit-Limit: 1500
X-RateLimit-Remaining: 1499
X-RateLimit-Reset: 32