## Data Access Path

Recommended reading order, not a record of completed steps. Optional steps can be skipped.

1. [Get & Use an API Key](/en/docs/authentication)
2. [Make Your First Query](/en/docs/quickstart)
3. [Keyword & Semantic Search](/en/docs/search)
4. [Users, Topics, Tags & Categories](/en/docs/browse) (optional)
5. [Read Content & History](/en/docs/documents)
6. [Download Images & Attachments](/en/docs/attachments) (optional)
7. [Limits, Retries & Troubleshooting](/en/docs/production) ← current page

**Before You Start**：Validate search and reads before connecting a continuously running application.

# Limits, Retries & Troubleshooting

## Diagnose Failed Requests

Record the HTTP status, response `code`, request ID if available, and request conditions without secrets. The table gives a starting point; endpoint-specific guides define exact error codes and recovery behavior.

| HTTP | Check first | Next action |
| --- | --- | --- |
| 400 | Required fields, enums, time windows, cursor and filter combinations | Fix the request using [Search](/en/docs/search) or [Browse](/en/docs/browse); do not retry unchanged |
| 401 | Consumer API Key validity and Bearer format | Check [key setup](/en/docs/authentication); never log the key |
| 403 | Platform, field or collection grants | Ask your administrator to inspect [subscriptions](/en/docs/portal); a new key does not expand access |
| 404 | Whale document ID or platform author ID | Verify IDs; [user profiles](/en/docs/browse#read-users-and-their-content) may be absent without an authorized observation in the window |
| 409 | On-demand collection results not yet persisted | Follow [result polling](/en/docs/live-query#poll-and-read-results) with bounded retries, not duplicate query creation |
| 410 | Change-feed cursor outside retention | Re-establish a baseline using [change-feed recovery](/en/docs/change-feed#error-handling) |
| 429 | Rate/concurrency limit versus daily quota | Inspect `code` and `Retry-After`; reduce concurrency or wait for quota reset |
| 502 / 503 / 504 | Temporary gateway or dependency failure | Retry safe reads with bounded backoff; check creation results before retrying writes |

A successful `batch-get` HTTP response can contain per-document `error` entries. Likewise, asynchronous collection returning `queued` does not mean data is readable.

## Diagnose Empty Results

1. Confirm the environment, subscription and platform. Empty results do not prove the content is absent from the platform.
2. Simplify filters and distinguish publication time from first-ingest time. [Browse and user endpoints](/en/docs/browse) default to the last 24 hours of first-ingest time, with a maximum 31-day window per request.
3. A user profile is the author observation attached to the newest ingested authorized content in the window, not a live complete platform profile.
4. Check [on-demand collection grants](/en/docs/live-query) before requesting fresh data; do not automatically create paid collection tasks just because search is empty.

## Recommended Defaults

| Setting | Recommended default |
| --- | --- |
| Connect timeout | 3 seconds |
| Search timeout | 15 seconds |
| Document timeout | 10 seconds |
| Maximum retries | 3 |
| Backoff | Exponential with jitter, starting at 500 ms |
| Batch detail | At most 50 `document_id` values |

For safe reads, retry only network failures and `429`, `502`, `503`, or `504`, with a bounded budget. Do not automatically retry `400`, `401`, or `403`. Task/subscription creation needs result verification and the endpoint's idempotency rules, not blind read-style retries.

## Handle Limits

For `429`, wait for the greater of `Retry-After` and exponential backoff, then add random jitter. Reuse HTTP connections and enforce local concurrency. For `quota_exceeded`, rapid retries cannot restore the daily quota; wait for the UTC reset or request a quota change.

## Query Scope and Pagination

Start with explicit platforms and a narrow time window. Search or browse first, use `batch-get` for list hydration, and fetch full content, transcripts, or snapshots only when needed.

For cursor-enabled endpoints, use the returned cursor and keep the required query conditions unchanged. Never fabricate cursors or database offsets. Vector and hybrid search have no cursor and are not full-export APIs. Per-document versions and snapshots are capped lists (maximum 500); to read history in bulk use [Read by Time Window](/en/docs/documents#read-by-time-window). See [search pagination](/en/docs/search#pagination).

## Compatibility

`document_id`, `source_platform`, and documented enums are stable contract fields; `dataset_id` is internal and clients should not rely on it. Clients must ignore unknown response fields because Whale may add backward-compatible fields. Breaking semantic changes require a new API version and migration window.

## Check and Continue

**Completion Check**：Configure timeouts, rate-limit backoff, and retries; choose synchronization, live collection, or SDK/MCP integration.

Previous step：[Download Images & Attachments](/en/docs/attachments)

**Onboarding Path Complete**. After meeting the checks above, choose a guide for your next task.

**Optional Tasks**

- [Synchronize Data Changes](/en/docs/change-feed)
- [Bulk Data Exports](/en/docs/exports)
- [Collect Data on Demand](/en/docs/live-query)
- [Scheduled Collection & Keyword Monitoring](/en/docs/collection-subscriptions)
- [Query SDKs (Python & Go)](/en/docs/sdk)
- [MCP Integration](/en/docs/mcp)
- [Applications & Subscriptions](/en/docs/portal)
- [Platform Coverage](/en/docs/platforms)