Fetch a page
This sample fetches one page without a key and prints its title and the first 300 characters of its content:Example output · results vary
Cost
Each fetch is billed by where the page came from. Keyless calls cost no credits. Rate limits cap them instead.
Prices are per organization. Read what a call cost from the
usage object in the response. See Credits for the allowance and how usage is reported.
Key parameters
This request fetches a page live and returns only the answer to a prompt. It calls the HTTP API directly, because SDK 0.1.x does not send
live, prompt or max_chars yet.
content holds one sentence instead of the full page:
Example output · results vary
Gotchas
Over raw HTTP,published_at is Unix seconds on Fetch but an ISO 8601 string on Search. Parse the two differently if your code reads both responses.
Next steps
- Fetch API reference: every request parameter and response field.
- Search: find the pages to fetch.
- SDKs: install the Python, TypeScript or Go client.
- Errors: what each status code means and how to fix it.