Open in ChatGPT

Rate Limits

API Direct enforces concurrency limits to ensure fair usage and reliable performance for all users.

Concurrency Limit

Each user is limited to 10 concurrent requests per endpoint. This means you can have up to 10 in-flight requests to the same endpoint at the same time. Requests to different endpoints are counted separately.

For example, you can simultaneously make: - 10 requests to /v1/reddit/posts - 10 requests to /v1/twitter/posts - 10 requests to /v1/linkedin/posts

429 Response

If you exceed the concurrency limit, you’ll receive a 429 status code:

{
  "error": "Too many concurrent requests for this endpoint. If you need higher concurrency limits, contact support@apidirect.io",
  "code": "concurrency_limit_exceeded",
  "limit": 10,
  "current": 10
}

Best Practices

Use sequential requests - For most use cases, sending requests one at a time is sufficient given the 1-2 second response times.

Queue your requests - If you need to make many requests, implement a queue that limits concurrency to 10 per endpoint.

Use the pages parameter - Endpoints like Twitter, YouTube, Instagram, and TikTok support fetching multiple pages in a single request, reducing the total number of API calls needed.

Spread across endpoints - Concurrency limits are per-endpoint, so requests to different endpoints don’t count against each other.

Need Higher Limits?

If you need higher concurrency limits for your use case, contact us at support@apidirect.io.