Data Access Path · 7/7
Recommended reading order, not completion status. Optional steps can be skipped.
View all steps
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 or Browse; do not retry unchanged |
| 401 | Consumer API Key validity and Bearer format | Check key setup; never log the key |
| 403 | Platform, field or collection grants | Ask your administrator to inspect subscriptions; a new key does not expand access |
| 404 | Whale document ID or platform author ID | Verify IDs; user profiles may be absent without an authorized observation in the window |
| 409 | On-demand collection results not yet persisted | Follow result polling with bounded retries, not duplicate query creation |
| 410 | Change-feed cursor outside retention | Re-establish a baseline using change-feed recovery |
| 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
- Confirm the environment, subscription and platform. Empty results do not prove the content is absent from the platform.
- Simplify filters and distinguish publication time from first-ingest time. Browse and user endpoints default to the last 24 hours of first-ingest time, with a maximum 31-day window per request.
- A user profile is the author observation attached to the newest ingested authorized content in the window, not a live complete platform profile.
- Check on-demand collection grants 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. See 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.
Completion check: Configure timeouts, rate-limit backoff, and retries; choose synchronization, live collection, or SDK/MCP integration.
Onboarding path read. After meeting the checks above, choose your next task.