Error response format
All errors return both anerror field and a message field:
Status codes
| Code | Error | Description |
|---|---|---|
400 | Varies | Missing or invalid parameters. Check the error field for details. |
401 | Unauthorized | Missing or invalid API key. |
402 | Insufficient Credits | Account balance depleted. |
429 | Too Many Requests | Rate limit exceeded. |
500 | Internal server error | Something went wrong on our end. |
400 — Bad request
400 — Bad request
Causes: Missing
q parameter, invalid parameter values, malformed JSON array in q.Example messages:Missing required parameter: qInvalid value for depth parameter
401 — Unauthorized
401 — Unauthorized
402 — Insufficient credits
402 — Insufficient credits
Cause: Your account has no remaining credits.Message:
Your account has insufficient credits. Please add credits to continue.Fix: Add credits to your account.429 — Rate limit exceeded
429 — Rate limit exceeded
Cause: Too many requests in the current time window.Message:
Rate limit of N requests per second exceededFix: Back off and retry after the period specified in the Retry-After header. See rate limits for monitoring usage.500 — Internal server error
500 — Internal server error
Cause: An unexpected error on our side.Fix: Retry with exponential backoff. If it persists, contact support.
Handling errors in code
Check the HTTP status code before parsing the response body:Retry with exponential backoff
For transient errors (429, 500), retry with increasing delays:
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
Missing x-api-key header | Header not sent | Add -H "x-api-key: YOUR_KEY" to your request |
Invalid API key | Wrong or revoked key | Check the key in the API Console |
Missing required parameter: q | No query provided | Add ?q=your+query to the URL |
| Slow responses | Using depth=deep or metadata=full | Switch to depth=fast or metadata=basic if speed matters |
Empty results array | No matches for query/filters | Broaden your query or loosen filters |
Next steps
Rate limits
Rate limit headers and monitoring.
Authentication
API key management and security.

