Download Markdown

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.

Production Checklist

By the end of this page your program will have sensible timeouts, retries and concurrency, and you’ll know where to start when something goes wrong.

Recommended settings

SettingRecommended
Connect timeout3 seconds
Search timeout15 seconds
Document read timeout10 seconds
Max retries3
BackoffExponential with random jitter, starting at 500 ms
Batch readsUp to 50 document_ids per batch

Also:

  • Limit local concurrency and reuse HTTP connections.
  • For list pages, search or browse first, then fill in details with batch reads. Read full bodies, subtitles and history only on detail pages and in exports.
  • When starting out, specify platforms and use short time ranges.

When to retry

SituationRetry?
Network failures, 429, 502, 503, 504Yes, a limited number of times with backoff
400, 401, 402, 403No; fix the request or access first
503 vector_search_disabledNo; use mode: keyword
429 quota_exceededShort retries won’t help; wait for the 00:00 UTC reset

On 429, wait:

wait = max(Retry-After, exponential_backoff) + random_jitter

Note: Don’t apply read retries to creating live queries, subscriptions or exports. First check whether the earlier attempt succeeded, and retry live query creation with the same Idempotency-Key.

When a request fails

Note the status code, the response code, the X-Request-ID header and the request parameters (without the key). Then check by status:

StatusCheck first
400Parameters, time ranges, cursors and filter combinations
401Whether the key is valid and Authorization: Bearer is well formed
402Whether the organization has enough credits
403Whether the platform, field or feature is within access. A new key doesn’t widen it
404Whether the document_id or user ID is correct
409Whether a live query’s results just aren’t ready; keep waiting rather than recreating
410Whether a change feed cursor is past retention
429Rate limit or daily quota; check code and Retry-After
503Temporarily unavailable; retry with backoff

Every code is explained in Error codes.

Find the request in the console’s request log by X-Request-ID. See investigate with the request log.

Two more things:

  • A 200 from a batch read doesn’t mean every document succeeded; check each error.
  • A 202 from a live query means accepted, not that data is readable.

When results are empty

  1. Check the base URL, the application’s access and the platforms. Empty results don’t mean the platform has no such content.
  2. Loosen keywords or filters. Distinguish publish time from ingest time: browse looks at the last 24 hours of ingest by default.
  3. Search covers the last 30 days of publish time by default; pass a time range for older content.
  4. For new data, use a live query. Don’t create live queries automatically just because a search was empty; they use credits.

Compatibility

  • document_id, source_platform and enum values are stable.
  • Responses may gain new fields; ignore fields you don’t recognize.
  • Removing fields or changing meanings comes with a new API version and a migration window.
  • Don’t depend on dataset_id; it’s internal.

Completion check: Configure timeouts, backoff and safe retries, and use call logs for diagnostics; choose synchronization, live queries, monitoring or exports as needed.

Onboarding path read. After meeting the checks above, choose your next task.