> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keenable.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Every page is listed in https://docs.keenable.ai/llms.txt. To pick a product for a job, read https://docs.keenable.ai/choose.md
> Setup steps for agents, covering the SDKs, the MCP server and the CLI: https://docs.keenable.ai/skill.md
> Keenable search and fetch work without an API key. To add them to code, use the official SDK for the project's language: https://docs.keenable.ai/sdks.md
> Without a key, call POST https://api.keenable.ai/v1/search/public or POST https://api.keenable.ai/v1/fetch/public with an X-Keenable-Title header that names your app.
> With a key, send it in the X-API-Key header and read it from the KEENABLE_API_KEY environment variable. Never ask a user to paste a key into chat. Every access method: https://docs.keenable.ai/auth.md
> To search and then read a page with a key, call POST https://api.keenable.ai/v1/search, then POST https://api.keenable.ai/v1/fetch with the result URLs. Check the fetch's HTTP status first, then each entry in results: a page that can't be read has error instead of content. A complete program, the request bodies and the response shapes are at the top of https://docs.keenable.ai/llms.txt
> To get an API key without the console, use device login: https://docs.keenable.ai/authentication.md#device-login
> MCP server: https://api.keenable.ai/mcp (no key, or X-API-Key; keyless Codex uses https://api.keenable.ai/mcp-public), or https://api.keenable.ai/mcp-oauth for OAuth sign-in. These docs are an MCP server at https://docs.keenable.ai/mcp and the OpenAPI spec is at https://docs.keenable.ai/api-reference/openapi.json
> Keenable searches and fetches public web pages. If a question needs no web information, skip the call.
> On 402 with an API key (code insufficient_credits), stop and ask a human to add credits; don't retry. On 429, wait the number of seconds in Retry-After, then retry. Before you ship, follow https://docs.keenable.ai/production.md
> Every error, with its cause and fix, is in https://docs.keenable.ai/errors.md and moving from another search API is covered in https://docs.keenable.ai/migrate.md
> Before you compare Keenable with another search API, read https://docs.keenable.ai/guides/evaluate-search-apis.md

# Fetch without a key API reference

> Try page fetch in the playground with POST /v1/fetch/public: no API key, the same body and response as POST /v1/fetch, limited per IP address.

Fetch a page here with no API key. Leave `X-API-Key` empty, fill in `X-Keenable-Title` with your app's name and a URL in `urls`, then select **Send**.

`POST /v1/fetch/public` takes the same body as [`POST /v1/fetch`](https://docs.keenable.ai/api-reference/fetch-post) and returns the same response. The differences:

* No API key. The `X-Keenable-Title` header, or the `keenable_title` query parameter, names your app. Without either, the call returns `400` with `missing_app_title`.
* Fewer URLs per call than with a key. [Fetch without a key](https://docs.keenable.ai/api-reference/fetch-post.md#without-a-key) gives the limit.
* Keenable limits keyless calls per IP address. Limits apply and may change. See [Rate limits](https://docs.keenable.ai/rate-limits.md).
* Free. Pages carry no `usage`.

A page that fails, such as one that returns `404`, comes back in `results[0].error` with a `200`, as on `POST /v1/fetch`. Some sites can't be read without a key. For those, `results[0].error` has the code `public_domain_requires_api_key`. Every field is described on the [Fetch API reference](https://docs.keenable.ai/api-reference/fetch-post.md), the common per-page error codes under its [Errors](https://docs.keenable.ai/api-reference/fetch-post.md#errors), and every code on [Errors](https://docs.keenable.ai/errors.md#error-codes). For the keyless paths, headers and limits in one place, see [Keyless access](https://docs.keenable.ai/guides/keyless-access.md).


## OpenAPI

````yaml POST /v1/fetch/public
openapi: 3.0.3
info:
  title: Keenable API
  version: 0.1.64
  description: Web search, page fetching, Time Machine and monitors API.
servers:
  - url: https://api.keenable.ai
    description: Production
security:
  - apiKey: []
paths:
  /v1/fetch/public:
    post:
      tags:
        - Fetch
      summary: Fetch a page without an API key
      description: >-
        Keyless POST /v1/fetch: the same body and response, with no API key, up
        to 10 URLs per call. Free and rate-limited per IP address: each URL
        counts as one call toward the per-second and hourly limits, and GET and
        POST on /v1/fetch/public share them. Name your app in the
        X-Keenable-Title header or the keenable_title query parameter. Results
        carry no `usage`.
      operationId: fetchPagesPublic
      parameters:
        - $ref: '#/components/parameters/XKeenableTitle'
        - $ref: '#/components/parameters/keenable_title'
        - $ref: '#/components/parameters/XKeenableSessionId'
        - $ref: '#/components/parameters/session_id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/FetchPostRequest'
                - properties:
                    urls:
                      maxItems: 10
                      description: >-
                        The pages to read: 1 to 10 absolute `http` or `https`
                        URLs, each up to 8,192 characters and each listed once.
                        Each URL counts as one request toward the keyless per-IP
                        rate limit. More than 10 URLs returns `400` with
                        `invalid_parameter` on `urls`.
      responses:
        '200':
          description: >-
            One result per URL. A URL that failed has `error` instead of page
            content, with the error's `status` and `code`: for example a site
            that keyless calls cannot read gives status 429 with code
            public_domain_requires_api_key (not retryable: send an API key to
            /v1/fetch), while the other URLs still return their pages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FetchPostResponse'
          headers:
            keenable-data-policy:
              description: >-
                Present only when the request ran under zero data retention,
                with the value `zdr`. A request runs under zero data retention
                when the calling organization's data retention policy is zero
                data retention, and also when the policy cannot be resolved, as
                for an API key without an organization. Absent under the default
                policy.
              schema:
                type: string
                enum:
                  - zdr
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '400':
          description: >-
            Invalid request. `code` says which: missing_app_title (no
            X-Keenable-Title header or keenable_title query parameter),
            invalid_parameter (with `param`; `urls` when more than 10 URLs are
            sent), missing_parameter, unknown_parameter or invalid_request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '403':
          description: >-
            A URL points to a private or internal address
            (private_url_not_allowed), or every URL's site refused the fetch
            (target_blocked). When only some sites refuse, those URLs fail in
            `results[i].error` and the call answers 200.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
        '429':
          $ref: '#/components/responses/PublicFetchBatchRateLimitExceeded'
        '500':
          description: >-
            Internal server error. code internal_error, retryable: wait
            retry_after_seconds and retry up to 3 times, then report the
            request_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
      security: []
      x-codeSamples:
        - lang: typescript
          label: TypeScript
          source: |
            import { Keenable } from "keenable";

            async function main() {
              const client = new Keenable(); // keyless: no API key needed to try it
              const response = await client.fetch(["https://keenable.ai"]);
              const page = response.results[0]; // results[i] is for urls[i]
              if (page.error) {
                console.log("failed:", page.error.code, page.error.message);
                return;
              }
              console.log(page.title);
              console.log(page.content.slice(0, 300));
            }

            main();
        - lang: python
          label: Python
          source: |
            from keenable import Keenable

            client = Keenable()  # keyless: no API key needed to try it
            response = client.fetch(["https://keenable.ai"])
            page = response.results[0]  # results[i] is for urls[i]
            if page.error:
                print("failed:", page.error.code, page.error.message)
            else:
                print(page.title)
                print(page.content[:300])
        - lang: go
          label: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/keenableai/keenable-sdk/go\"\n)\n\nfunc main() {\n\tclient, err := keenable.New(nil) // keyless: no API key needed to try it\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer client.Close()\n\n\tresp, err := client.Fetch(context.Background(), []string{\"https://keenable.ai\"})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tpage := resp.Results[0] // Results[i] is for urls[i]\n\tif page.Error != nil {\n\t\tlog.Fatal(\"failed: \", page.Error.Code, \" \", page.Error.Message)\n\t}\n\tfmt.Println(page.Title)\n\n\tcontent := []rune(page.Content)\n\tif len(content) > 300 {\n\t\tcontent = content[:300]\n\t}\n\tfmt.Println(string(content))\n}\n"
        - lang: rust
          label: Rust
          source: |
            use keenable::Client;

            #[tokio::main]
            async fn main() -> Result<(), keenable::Error> {
                let client = Client::new()?; // keyless: no API key needed to try it
                let response = client.fetch(["https://keenable.ai"]).await?;
                let page = &response.results[0]; // results[i] is for urls[i]
                if let Some(error) = &page.error {
                    println!(
                        "failed: {} {}",
                        error.code.as_deref().unwrap_or_default(),
                        error.message.as_deref().unwrap_or_default()
                    );
                    return Ok(());
                }
                println!("{}", page.title);

                let content: String = page.content.chars().take(300).collect();
                println!("{}", content);
                Ok(())
            }
        - lang: bash
          label: curl
          source: |
            curl -X POST https://api.keenable.ai/v1/fetch/public \
              -H "Content-Type: application/json" \
              -H "X-Keenable-Title: My App" \
              -d '{"urls": ["https://keenable.ai"]}'
components:
  parameters:
    XKeenableTitle:
      name: X-Keenable-Title
      in: header
      required: false
      schema:
        type: string
        maxLength: 256
      example: My App
      description: >-
        Name of the application making the call. Keyless calls need it, here or
        in the `keenable_title` query parameter; without either the API answers
        400 `missing_app_title`. The header wins if you send both. Values over
        256 characters are truncated.
    keenable_title:
      name: keenable_title
      in: query
      required: false
      schema:
        type: string
        maxLength: 256
      example: My App
      description: >-
        Same as the `X-Keenable-Title` header, for clients that cannot set
        headers. The header wins if you send both. Read from the query string
        only, never from a JSON body.
    XKeenableSessionId:
      name: X-Keenable-Session-Id
      in: header
      required: false
      schema:
        type: string
        maxLength: 128
      example: agent-run-42
      description: >-
        Your own ID for grouping related requests. Where the operation also
        takes `session_id`, the header wins if you send both. Values over 128
        characters are truncated.
    session_id:
      name: session_id
      in: query
      required: false
      schema:
        type: string
        maxLength: 128
      description: >-
        Your own ID for grouping related requests. Same as the
        `X-Keenable-Session-Id` header, which wins if you send both.
  schemas:
    FetchPostRequest:
      type: object
      required:
        - urls
      additionalProperties: false
      properties:
        urls:
          type: array
          minItems: 1
          maxItems: 20
          uniqueItems: true
          items:
            type: string
            format: uri
            maxLength: 8192
          description: >-
            The pages to read: 1 to 20 absolute `http` or `https` URLs, each up
            to 8,192 characters and each listed once. A call counts as one
            request toward your organization's rate limit, however many URLs it
            has. A URL whose host is a private or internal address, or a name
            such as `localhost`, fails the call with `403` and
            `private_url_not_allowed`.
        content:
          type: object
          additionalProperties: false
          description: What each result carries.
          properties:
            max_chars:
              type: integer
              minimum: 1
              default: 50000
              description: >-
                Maximum characters of content per page, counted in Unicode code
                points. There is no maximum.
            prompt:
              type: string
              minLength: 1
              maxLength: 2000
              description: >-
                Extraction instruction for every page: an LLM reads each page
                and `content` is only its output.
            schema:
              type: object
              description: >-
                A JSON Schema whose root has "type": "object", at most 20,000
                characters as compact JSON. Each page's typed answer comes back
                in `structured`, or `answer_error` says why it could not be
                produced.
            links:
              type: integer
              minimum: 1
              maximum: 1000
              description: >-
                Return up to this many links found on each page, in `links`.
                When omitted, results have no `links` field.
            images:
              type: integer
              minimum: 0
              maximum: 25
              description: >-
                Return up to this many images from each page, in `images`. When
                omitted, results have no `images` field.
        retrieval:
          type: object
          additionalProperties: false
          description: Which copy of each page to read.
          properties:
            max_age_hours:
              type: number
              description: >-
                How old Keenable's stored copy may be, in hours, fractions
                allowed: exactly -1, or a number from 0 to 720. An older copy is
                read again from the source. 0 reads every page live. -1 reads
                only the stored copy, of any age, and never the live page: a
                page with no stored copy fails. `content.prompt` and
                `content.schema` work with it; any other value below 0 is
                refused. When set (0 and -1 included), each result carries
                `stale`: true when an older copy was returned because a fresh
                read failed.
              oneOf:
                - enum:
                    - -1
                - minimum: 0
                  maximum: 720
    FetchPostResponse:
      type: object
      required:
        - results
      properties:
        results:
          type: array
          description: One entry per URL, in the order sent.
          items:
            oneOf:
              - $ref: '#/components/schemas/FetchPostPage'
              - $ref: '#/components/schemas/FetchPostPageError'
    ApiError:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: Error category (e.g. "Bad request", "Not found")
          example: Invalid parameter
        type:
          type: string
          enum:
            - invalid_request_error
            - authentication_error
            - permission_error
            - billing_error
            - rate_limit_error
            - target_error
            - api_error
          description: >-
            Closed category of the error, set together with code:
            invalid_request_error (fix the request), authentication_error
            (missing or rejected credentials), permission_error (valid
            credentials, not allowed), billing_error (credits or payment),
            rate_limit_error (slow down, retry after retry_after_seconds),
            target_error (the page being fetched failed, not Keenable) and
            api_error (our fault, retry). The mapping is per code, not per
            status. This set does not grow casually.
        message:
          type: string
          description: >-
            Human-readable detail about what went wrong. Always present; when
            nothing more specific applies it repeats `error`.
          example: '"max_results": must be an integer between 1 and 50'
        details:
          description: Structured details (validation errors, etc.)
        code:
          type: string
          enum:
            - admin_required
            - allowance_unavailable
            - api_key_required
            - auth_internal_error
            - auth_unavailable
            - authorization_pending
            - balance_check_unavailable
            - billing_account_not_found
            - card_expired
            - card_not_found
            - card_storage_unavailable
            - card_too_large
            - company_email_required
            - content_not_extracted
            - credentials_forbidden
            - device_code_already_used
            - device_code_client_mismatch
            - device_code_denied
            - device_code_expired
            - device_login_unavailable
            - dns_lookup_failed
            - domain_record_missing
            - domain_taken
            - fetch_mode_unavailable
            - fetch_rate_limited
            - fetcher_unavailable
            - forbidden
            - run_in_progress
            - idempotency_conflict
            - insufficient_credits
            - internal_error
            - internal_route_not_public
            - invalid_api_key
            - invalid_authorization_header
            - invalid_bearer_token
            - invalid_json
            - invalid_or_expired_promo_code
            - invalid_parameter
            - invalid_request
            - invalid_session_token
            - last_admin
            - mcp_host_not_allowed
            - mcp_message_too_complex
            - mcp_not_acceptable
            - mcp_origin_not_allowed
            - member_roles_not_enabled
            - method_not_allowed
            - missing_api_key
            - missing_app_title
            - missing_parameter
            - missing_session_token
            - mode_requires_api_key
            - monitor_limit_reached
            - monitor_option_not_supported
            - monitors_not_enabled
            - monitors_unavailable
            - no_active_organization
            - not_found
            - not_stored
            - page_not_found
            - paid_rate_limit_per_second
            - payment_facilitator_error
            - payment_rejected
            - payment_required
            - payment_settlement_failed
            - payment_verification_unavailable
            - payments_region_unavailable
            - payments_unavailable
            - private_url_not_allowed
            - promo_card_required
            - promo_card_reused
            - promo_code_not_active
            - promo_new_accounts_only
            - public_domain_requires_api_key
            - public_rate_limit_domain
            - public_rate_limit_hourly
            - public_rate_limit_per_second
            - query_rejected
            - rate_limit_per_second
            - rate_limited
            - remove_self
            - request_rejected
            - request_too_large
            - route_not_found
            - search_failed_upstream
            - search_overloaded
            - search_rate_limited
            - search_rejected_upstream
            - search_upstream_error
            - select_concurrency_limited
            - select_disabled
            - select_internal_error
            - select_query_failed
            - select_query_invalid
            - select_timeout
            - select_unavailable
            - service_not_configured
            - sign_in_required
            - slow_down
            - target_blocked
            - target_http_error
            - target_paywalled
            - target_rate_limited
            - target_timeout
            - target_unreachable
            - target_wrong_page
            - time_machine_not_enabled
            - endpoint_moved
            - time_machine_versions_unavailable
            - unauthenticated
            - unknown_parameter
            - unknown_tool
            - unprocessable
            - unsupported_content_encoding
            - unsupported_grant_type
            - user_code_not_found
            - user_code_used
            - version_not_found
            - zdr_prompt_unsupported
            - zdr_unsupported_profile
            - zeroclick_allowance_denied
            - zeroclick_request_id_missing
            - zeroclick_signature_expired
            - zeroclick_signature_invalid
            - zeroclick_signature_malformed
            - zeroclick_signature_missing
            - zeroclick_signing_key_unknown
          description: >-
            Stable machine-readable code, one per entry in the error catalog
            (docs/error-catalog.json). Every error response from the endpoints
            in this document carries one; branch on it (or on type) rather than
            on `error` or `message`. Rate limits: rate_limit_per_second (your
            organization), public_rate_limit_per_second and
            public_rate_limit_hourly (keyless, per IP), public_rate_limit_domain
            (keyless requests that target a restricted site, shared by all
            callers), paid_rate_limit_per_second (x402);
            public_domain_requires_api_key (keyless requests that target a
            restricted site need an API key; not retryable). Our own capacity:
            search_rate_limited, fetch_rate_limited, search_overloaded. Credits
            and payment: insufficient_credits, payment_required,
            payment_settlement_failed, payments_unavailable,
            payments_region_unavailable, payment_facilitator_error. Fetch
            target: target_unreachable, target_timeout, target_blocked,
            target_rate_limited, page_not_found, target_paywalled,
            target_wrong_page, content_not_extracted, target_http_error,
            private_url_not_allowed. Validation: missing_parameter,
            invalid_parameter, unknown_parameter, missing_app_title,
            invalid_request, request_too_large. Authentication: missing_api_key,
            invalid_api_key, invalid_bearer_token, credentials_forbidden,
            auth_unavailable. Fallbacks for anything else: forbidden, not_found,
            unprocessable, unauthenticated, rate_limited, request_rejected,
            internal_error. New codes may be added; existing ones are never
            renamed.
        fix:
          type: string
          description: >-
            One sentence on what to do next, including whether retrying helps.
            Set together with code. Never echoes the API key or the request
            body.
        keyless:
          type: string
          description: >-
            The keyless alternative: /v1/search/public and /v1/fetch/public work
            without a key, rate-limited per IP, and need the X-Keenable-Title
            header (or keenable_title query parameter) naming the app. Set only
            on 401s from /v1/search and /v1/fetch, which have a public
            equivalent; time_machine 401s leave it out.
        api_keys_url:
          type: string
          format: uri
          description: >-
            Where to create or copy an API key. Set on authentication errors and
            on payment_required.
        docs_url:
          type: string
          format: uri
          description: >-
            The section of https://docs.keenable.ai/errors that covers this
            code: the code with underscores replaced by hyphens, for example
            #invalid-api-key, #rate-limit-per-second or #target-paywalled. Set
            together with code.
        request_id:
          type: string
          description: >-
            Request id for support. Same value as the X-Request-Id response
            header, which every response carries.
        retryable:
          type: boolean
          description: >-
            Whether the same request can succeed if sent again unchanged. When
            true, wait retry_after_seconds (or Retry-After) first. When false,
            change the request or follow fix.
        retry_after_seconds:
          type: integer
          minimum: 1
          description: >-
            Seconds to wait before retrying; the same value as the Retry-After
            header. Set on retryable errors.
        retryAfter:
          type: integer
          description: >-
            Deprecated alias of retry_after_seconds, kept on 429s from Keenable
            rate limits for existing clients.
        limit:
          type: object
          description: 'On 429s from a Keenable rate limit: which limit was hit.'
          required:
            - scope
            - window
            - max
            - resets_at
          properties:
            scope:
              type: string
              enum:
                - organization
                - user
                - ip
                - payer
                - agent
                - site
              description: >-
                What the limit counts: your organization (all its keys), your
                signed-in user (session requests without an organization), your
                IP address (keyless), the paying wallet or agent (pay per
                request), or every keyless request that targets a restricted
                site.
            window:
              type: string
              enum:
                - second
                - minute
                - hour
            max:
              type: integer
              description: Requests allowed per window.
            resets_at:
              type: string
              format: date-time
              description: When you can send the next request.
        param:
          type: string
          description: 'On validation errors: the parameter (or header) that failed.'
        allowed:
          type: array
          items:
            type: string
          description: 'On unknown_parameter: the parameters the endpoint accepts.'
        did_you_mean:
          type: object
          additionalProperties:
            type: string
          description: >-
            On unknown_parameter, when an unknown name looks like a supported
            parameter: maps that name to the parameter to rename it to, for
            example {"count": "max_results"}. Left out when nothing is close.
        billing_url:
          type: string
          format: uri
          description: 'On insufficient_credits: where to buy credits.'
        auto_top_up_url:
          type: string
          format: uri
          description: >-
            On insufficient_credits: how to turn on auto top-up so the balance
            refills itself.
        pay_per_request:
          type: string
          description: >-
            On insufficient_credits, when pay-per-request is enabled: the x402
            alternative, which needs no key or credits.
        feature:
          type: string
          description: >-
            On time_machine_not_enabled: the feature the request needs
            (time_machine).
        field:
          type: string
          description: 'On invalid_filter: the rejected filter parameter (exclude_domains).'
        value:
          type: string
          description: >-
            On invalid_filter: what was rejected. One entry as sent (its first
            64 characters and "..." when it is over 2,048 bytes), "<n> entries"
            when the list has more than 2,000 entries as sent, or "more than
            1000 distinct hosts" when it names more than 1,000 distinct hosts
            after clean-up.
        reason:
          type: string
          description: >-
            On invalid_filter: why the entry or list was rejected and how to fix
            it. On payment_rejected and zeroclick_allowance_denied: why the
            payment or allowance was refused, as reported by the facilitator or
            ZeroClick.
        select_request_id:
          type: string
          description: >-
            On select_* refusals: the SELECT service's own request id, when it
            sent one. request_id is always Keenable's.
    FetchPostPage:
      allOf:
        - $ref: '#/components/schemas/FetchResponse'
        - type: object
          properties:
            image:
              type: string
              description: >-
                The page's main image URL, or null. Always present on POST
                /v1/fetch results.
              nullable: true
            favicon:
              type: string
              description: >-
                The site's icon URL, or null. Always present on POST /v1/fetch
                results.
              nullable: true
            images:
              type: array
              items:
                type: object
                properties:
                  url:
                    type: string
                  alt:
                    type: string
                    nullable: true
                required:
                  - url
                  - alt
              description: >-
                Images from the page. Present only when the request sent
                `content.images`.
            links:
              type: array
              items:
                type: object
                required:
                  - url
                  - text
                properties:
                  url:
                    type: string
                  text:
                    type: string
                    nullable: true
              description: >-
                Links found on the page. Present only when the request sent
                `content.links`.
            structured:
              description: The page's answer to `content.schema`, matching that schema.
            answer_error:
              type: object
              required:
                - code
                - message
              properties:
                code:
                  type: string
                message:
                  type: string
              description: Why `structured` could not be produced for this page.
            stale:
              type: boolean
              description: >-
                Present when `retrieval.max_age_hours` is set: true when an
                older stored copy was returned because a fresh read failed.
          required:
            - image
            - favicon
    FetchPostPageError:
      type: object
      required:
        - url
        - error
      properties:
        url:
          type: string
          description: The URL as sent.
        error:
          allOf:
            - $ref: '#/components/schemas/ApiError'
            - type: object
              required:
                - status
              properties:
                status:
                  type: integer
                  description: The HTTP status this page would have had on its own.
      description: >-
        A page that could not be read. It is accounted as a failed GET /v1/fetch
        of that URL would be.
    FetchResponse:
      type: object
      required:
        - url
        - content
        - description
        - truncated
        - total_chars
      properties:
        url:
          type: string
          description: Fetched URL (may differ from input after redirects)
          example: https://arxiv.org/abs/2611.00286
        title:
          type: string
          description: Page title
          example: Quantization of Large Models with Weight Outliers and Sparsity
        content:
          type: string
          description: >-
            The page's main text as markdown, capped by `max_chars`. With
            `prompt`, the extraction instead of the page.
        truncated:
          type: boolean
          description: >-
            True when the page was longer than `max_chars` and `content` was
            cut. Cut content ends with `...`, except when `max_chars` is 3 or
            less.
        total_chars:
          type: integer
          description: >-
            Length of the full extracted content in Unicode code points, before
            `max_chars` was applied. Equal to the length of `content` when
            `truncated` is false.
        description:
          type: string
          description: Always empty. Deprecated.
          deprecated: true
        author:
          type: string
          description: Author name as the page gives it. Left out when unknown.
        published_at:
          type: string
          format: date-time
          description: >-
            When the page was published, as an ISO 8601 timestamp in UTC, the
            same format search results use. Omitted when unknown. Earlier
            versions of the API returned this field as Unix seconds (an
            integer), so a client that must work with both can accept either.
          example: '2026-10-30T00:00:00Z'
        usage:
          $ref: '#/components/schemas/Usage'
    Usage:
      type: object
      description: >-
        What this request was billed. Present when the request is billed in
        credits, that is made with an API key or a signed-in session; absent on
        keyless, x402 and ZeroClick requests. A request that fails (any non-2xx
        status) takes no paid credits and its error body carries no usage,
        except a POST /v1/time-machine/fetch 400 that failed after pages were
        billed (see TimeMachineFetchError).
      required:
        - sku
        - amount
        - credits
        - paid
      properties:
        sku:
          type: string
          description: >-
            What was billed: search.<mode> for a search, named after the mode it
            ran in (search.pro by default, search.time_machine for a Time
            Machine search), and fetch, fetch.live or fetch.time_machine for a
            fetch. A search whose query is a URL is billed as the fetch it was
            answered with.
          example: search.pro
        amount:
          type: integer
          description: 'Billed units: 1 for a search or a fetch.'
          example: 1
        credits:
          type: number
          description: Credits charged to the organization for this request.
        paid:
          type: boolean
          description: >-
            true when the credits came from the purchased balance, false when
            they came from the plan's free credits.
        credits_remaining:
          type: number
          description: >-
            Credits the organization has left after this request: the plan's
            unused free credits for the current period plus the purchased
            balance. Negative when an organization allowed a negative balance is
            in debt. It is read from a balance that can lag behind the
            organization's other requests by a few seconds, so treat it as an
            estimate. Absent when the balance could not be read.
          example: 99120
        cost:
          allOf:
            - $ref: '#/components/schemas/Money'
          description: >-
            What this request cost, in US dollars: the credits actually charged,
            at $0.004 each. For a page of a batch fetch, that page's cost.
            Present with `balance`.
        balance:
          allOf:
            - $ref: '#/components/schemas/Money'
          description: >-
            An estimate of your organization's balance after this request, in US
            dollars: what is left of the free monthly allowance plus prepaid
            credits. Calls running in parallel may not be counted yet. It goes
            down as you use the API; when it reaches 0, billed calls return 402
            insufficient_credits, unless the organization is allowed a negative
            balance. On a fetch of several URLs, every successful billed page
            carries the same figure for the whole call. It counts the cost of
            every charged page, including pages that failed after being charged
            (those results carry no usage), so it can be lower than the real
            balance by up to the cost of the other pages; other calls running at
            the same time can still lower the real balance below it. Present on
            billed search and fetch responses with an API key or a signed-in
            session. GET /v1/billing gives the prices to work out how many more
            calls it covers.
    Money:
      type: object
      description: An amount of money.
      required:
        - amount
        - amount_decimal
        - currency
      properties:
        amount:
          type: number
          description: >-
            Amount in US dollars as a number, up to nine decimal places (a price
            per request is a fraction of a cent), for display. Most JSON parsers
            read it as a binary float, so adding many of them picks up rounding
            noise such as 0.30000000000000004; add amount_decimal instead. Exact
            to the nano-dollar up to about $9 million; a larger amount is the
            nearest number, within a few nano-dollars. Negative for an
            organization allowed a negative balance that is in debt.
          example: 0.004
        amount_decimal:
          type: string
          pattern: ^-?[0-9]+(\.[0-9]{1,9})?$
          description: >-
            The same amount as an exact decimal string in US dollars: up to nine
            decimal places, no trailing zeros, no exponent, a leading minus sign
            when negative. Read it into a decimal type (Python decimal.Decimal,
            Go big.Rat or a decimal library, JavaScript a decimal library or
            BigInt nano-dollars) to add amounts exactly, for example to check a
            bill against usage.
          example: '0.004'
        currency:
          type: string
          enum:
            - usd
          description: Lowercase ISO 4217 currency code.
  headers:
    RateLimitLimit:
      description: >-
        The most requests allowed in the window of the per-IP limit this
        response counted against: hourly on /v1/search/public and
        /v1/fetch/public, per minute on keyless GET /v1/billing. Sent on every
        keyless response once that limit has counted the request, errors and
        429s included. Absent on a 400 missing_app_title and a
        public_rate_limit_per_second 429 sent before the request was counted, on
        a body the API rejects before routing (malformed JSON, 413), and on
        keyed responses.
      schema:
        type: integer
      example: 1000
    RateLimitRemaining:
      description: Requests left in the current window of that per-IP limit.
      schema:
        type: integer
      example: 997
    RateLimitReset:
      description: >-
        When the current window of that per-IP limit resets, as an ISO 8601 UTC
        timestamp (not Unix seconds).
      schema:
        type: string
        format: date-time
      example: '2026-11-30T15:00:00.000Z'
    XRequestId:
      description: >-
        ID of this request, a UUID v7 the API sets on every response, errors
        included. The same value as request_id in an error body. Include it when
        you report a problem.
      schema:
        type: string
      example: 019ad4c2-7f3e-7b21-9c4d-2f1e8a6b0c35
    RetryAfter:
      description: >-
        Seconds to wait before retrying, as delta-seconds (never an HTTP date).
        The same value as retry_after_seconds in the body.
      schema:
        type: integer
        minimum: 1
      example: 1
  responses:
    PublicFetchBatchRateLimitExceeded:
      description: >-
        A keyless limit was hit for the whole request. `code` says which:
        public_rate_limit_per_second (10 requests per second from your IP
        address on this endpoint) or public_rate_limit_hourly (1,000 per hour
        from your IP address on this endpoint; each URL in the batch counts as
        one request, GET and POST on the same path share both limits, and
        /v1/search/public and /v1/fetch/public count separately). Wait for
        `Retry-After`, then retry, or use an API key. A per-URL refusal is not a
        429 for the call: public_domain_requires_api_key,
        public_rate_limit_domain, target_rate_limited and fetch_rate_limited
        come back in the 200 response, as `results[i].error` for that URL, even
        when every URL fails. The X-RateLimit headers describe the hourly per-IP
        window. They are absent on a public_rate_limit_per_second 429 sent
        before the request was counted, and present on every other 429 here.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication. Obtain one from the Keenable dashboard.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.