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.

HTTPCheck firstNext action
400Required fields, enums, time windows, cursor and filter combinationsFix the request using Search or Browse; do not retry unchanged
401Consumer API Key validity and Bearer formatCheck key setup; never log the key
403Platform, field or collection grantsAsk your administrator to inspect subscriptions; a new key does not expand access
404Whale document ID or platform author IDVerify IDs; user profiles may be absent without an authorized observation in the window
409On-demand collection results not yet persistedFollow result polling with bounded retries, not duplicate query creation
410Change-feed cursor outside retentionRe-establish a baseline using change-feed recovery
429Rate/concurrency limit versus daily quotaInspect code and Retry-After; reduce concurrency or wait for quota reset
502 / 503 / 504Temporary gateway or dependency failureRetry 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 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 before requesting fresh data; do not automatically create paid collection tasks just because search is empty.
SettingRecommended default
Connect timeout3 seconds
Search timeout15 seconds
Document timeout10 seconds
Maximum retries3
BackoffExponential with jitter, starting at 500 ms
Batch detailAt 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.