Skip to navigation

Rate Limits

View as MarkdownOpen in Claude

Default Rate Limits

Each endpoint has its own per-second limit. These are the defaults for self-serve accounts created through You.com Platform:

APIEndpointDefault limit
Web Search API/v1/search10 requests/second
Contents API/v1/contents10 requests/second
Answer API/v1/answer10 requests/second
Research API (including background mode)/v1/research10 requests/second
Finance Research API/v1/finance_research5 requests/second

Enterprise plans run on custom limits set in your contract. If you’re on an enterprise agreement, those limits apply instead of the defaults above.

Rate Limit Headers

A 429 from an api.you.com endpoint, such as the Answer API, can include X-RateLimit-* headers that describe the limit you just hit. Successful responses and 422 validation errors leave those headers off. Read them on the 429, after the limit has already been hit.

  • X-RateLimit-Limit—the allowance and the window in one string, such as 10 per 1 second
  • X-RateLimit-Remaining—requests left in the current window, such as 0
  • X-RateLimit-Reset—Unix time in seconds when the window resets

The 429 Response

When you exceed the limit, the API returns 429 Too Many Requests. An Answer API 429 includes X-RateLimit-Limit (a string such as 10 per 1 second), X-RateLimit-Remaining: 0, and X-RateLimit-Reset as a Unix timestamp in seconds (for example 1794232204), with this body:

{"errors":[{"title":"Rate limit exceeded"}]}

Answer API 429 responses don’t include Retry-After today. Honor Retry-After when a 429 includes one; otherwise wait until X-RateLimit-Reset, or use the backoff below. Other endpoints may omit the X-RateLimit-* headers.

Exponential Backoff

For retries, use exponential backoff with a cap so a sustained burst does not lock you out for a long time. This example retries up to five times, doubling the wait between attempts up to a 60-second ceiling:

import time
from youdotcom import You, errors
def exponential_backoff(attempt):
return min(2 ** attempt, 60) # Max 60 seconds
with You() as you:
for attempt in range(5):
try:
response = you.search(query="test")
break
except errors.YouError as e:
if e.status_code == 429 and attempt < 4:
wait_time = exponential_backoff(attempt)
time.sleep(wait_time)
else:
raise

Raising Your Limits

Higher limits come with a custom plan. Book a meeting with our team to set yours, or email api@you.com.