> ## 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

# Search without a key API reference

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

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

`POST /v1/search/public` takes the same body as [`POST /v1/search`](https://docs.keenable.ai/api-reference/search) and returns the same results. 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`.
* Keenable limits keyless calls per IP address. Limits apply and may change. See [Rate limits](https://docs.keenable.ai/rate-limits.md).
* Free. The response has no `usage`.

Every parameter, filter and error is described on the [Search API reference](https://docs.keenable.ai/api-reference/search.md). 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/search/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/search/public:
    post:
      tags:
        - Search
      summary: Search the web without a key
      description: >-
        Keyless twin of /v1/search: the same parameters and the same response,
        with no API key. Free and rate-limited per IP address: 10 requests per
        second and 1,000 per hour, and GET and POST on /v1/search/public share
        the limit. Name your app in the X-Keenable-Title header or the
        keenable_title query parameter. The webql and realtime_content modes
        need a key (403 mode_requires_api_key). The response has no `usage`.
      operationId: search_post_public
      parameters:
        - $ref: '#/components/parameters/XKeenableTitle'
        - $ref: '#/components/parameters/keenable_title'
        - $ref: '#/components/parameters/XKeenableSessionId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
            example:
              query: post-training quantization LLM
              max_results: 2
              published_after: '2026-01-01'
      responses:
        '200':
          description: Search results. The response has no `usage`.
          headers:
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            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'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
              example:
                query: post-training quantization LLM
                mode: pro
                results:
                  - title: >-
                      Quantization of Large Models with Weight Outliers and
                      Sparsity
                    url: https://arxiv.org/abs/2611.00286
                    description: ''
                    snippet: >-
                      We study post-training quantization of large language
                      models whose weights contain outliers...
                    published_at: '2026-10-30T00:00:00Z'
                    acquired_at: '2026-11-03T08:57:22Z'
                  - title: A Survey of Low-Bit Quantization for LLMs
                    url: https://example.org/papers/low-bit-quantization-survey
                    description: ''
                    snippet: >-
                      This survey compares GPTQ, AWQ and SmoothQuant at 4 and 8
                      bits...
                    published_at: '2026-06-12T00:00:00Z'
                    acquired_at: '2026-11-20T14:02:10Z'
        '400':
          description: >-
            Invalid request. `code` says which: missing_app_title (no
            X-Keenable-Title header or keenable_title query parameter),
            missing_parameter, invalid_parameter (with `param`),
            unknown_parameter (with `allowed`) or invalid_request. Correct the
            request; retrying unchanged returns the same error.
          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: >-
            Tell the cases apart by `error`. "Upstream forbidden" happens only
            when the query is a URL, which is fetched instead of searched: the
            target server refused the fetch (responded 401, 403, or a vendor
            block code such as LinkedIn's 999), a bot-wall or access restriction
            on the target rather than a problem with your credentials.
            Deterministic: retrying will not help. "Forbidden" means the request
            itself is not allowed, for example a revoked API key or a search
            mode your access does not include; see `message`.
          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'
        '404':
          description: >-
            Only when the query is a URL, which is fetched instead of searched:
            the target page does not exist — the target server responded 404.
          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'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '422':
          description: >-
            Search failed upstream with an unexpected status (`Search failed
            (<status>)`, code search_failed_upstream). This one is retryable:
            wait for `Retry-After` (2 seconds) and retry, at most 2 more times
            (the official SDKs do this by default); if it keeps failing, report
            the request_id. Also returned, with a target_error code that is not
            retryable (such as target_paywalled, content_not_extracted or
            target_http_error), when `query` is a URL whose content Keenable
            cannot extract; fetch another source or search with words.
          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'
        '429':
          $ref: '#/components/responses/PublicRateLimitExceeded'
        '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'
        '502':
          description: >-
            Only when the query is a URL, which is fetched instead of searched:
            the fetcher could not get the target page: a DNS/TLS/connection
            failure, an unreachable host, or the target answered with a 5xx
            error. Unlike 422, no page content came back; unlike 403, the target
            did not refuse the fetch. Often transient; a retry is reasonable.
          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'
        '504':
          description: >-
            Only when the query is a URL, which is fetched instead of searched:
            the upstream fetch to the target page timed out.
          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'
        '529':
          description: >-
            Search is briefly overloaded (code search_overloaded, retryable).
            Wait for `Retry-After` (1 second), then retry.
          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 results = await client.search("fastest inference providers 2026", { maxResults: 3 });
              console.log(results.toContext());
            }

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


            client = Keenable()  # keyless: no API key needed to try it

            results = client.search("fastest inference providers 2026",
            max_results=3)

            print(results.to_context())
        - 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\tresults, err := client.Search(context.Background(), \"fastest inference providers 2026\",\n\t\t&keenable.SearchOptions{MaxResults: 3})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Println(results.ToContext(nil))\n}\n"
        - lang: rust
          label: Rust
          source: |
            use keenable::{Client, SearchOptions};

            #[tokio::main]
            async fn main() -> Result<(), keenable::Error> {
                let client = Client::new()?; // keyless: no API key needed to try it
                let results = client
                    .search_with(
                        "fastest inference providers 2026",
                        &SearchOptions {
                            max_results: Some(3),
                            ..Default::default()
                        },
                    )
                    .await?;
                println!("{}", results.to_context());
                Ok(())
            }
        - lang: bash
          label: curl
          source: |
            curl -X POST https://api.keenable.ai/v1/search/public \
              -H "Content-Type: application/json" \
              -H "X-Keenable-Title: My App" \
              -d '{"query": "fastest inference providers 2026", "max_results": 3}'
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.
  schemas:
    SearchRequest:
      type: object
      required:
        - query
      properties:
        query:
          type: string
          description: >-
            What to search for, in plain language. Required and not blank. It
            must contain search terms; operators such as `site:` alone return
            `400`, except that a query with only `site:` operators searches for
            the site name and adds a `warning`. If `query` is a single `http` or
            `https` URL, it is not searched: Keenable fetches that page and
            returns it as the only result, with a `warning`. With an API key it
            is billed as that fetch. With `exclude_domains` set, a URL query is
            searched like any other query instead.
          example: post-training quantization LLM
        mode:
          $ref: '#/components/schemas/SearchMode'
        acquired_after:
          type: string
          description: >-
            Filter: pages acquired after this date (YYYY-MM-DD, ISO 8601, or
            relative like "7d")
          example: 30d
        acquired_before:
          type: string
          description: >-
            Keep pages Keenable indexed at or before this point. A bare
            `YYYY-MM-DD` includes that whole day; pass a timestamp to cut at an
            exact instant. Same formats as `published_after`.
          example: '2026-01-01'
        published_after:
          type: string
          description: >-
            Keep pages published at or after this point, a lower bound on
            publish time. Use this, not `query_time`, to get recent results.
            Pages with no known publish date are left out. Takes a date
            (`YYYY-MM-DD`, which includes that whole day), an ISO 8601 timestamp
            (UTC if it has no offset), or a relative delta counted back from the
            request time: `<number><unit>` with units `min`, `h`, `d`, `w`
            (weeks), `mo` (30 days) or `y` (365 days), such as `7d`.
          example: '2026-01-01'
        published_before:
          type: string
          description: >-
            Keep pages published at or before this point. A bare `YYYY-MM-DD`
            includes that whole day; pass a timestamp to cut at an exact
            instant. Same formats as `published_after`.
          example: '2026-06-30'
        site:
          type: string
          description: >-
            Return results from one site only. Subdomains are included, and a
            path narrows further (`github.com/microsoft`).
          example: arxiv.org
        exclude_domains:
          type: array
          items:
            type: string
          maxItems: 2000
          description: >-
            Never return results from these hosts. An empty array or null is the
            same as leaving it out. Each entry is a host name, which covers the
            host and every subdomain: "yahoo.com" also matches
            finance.yahoo.com. Results from every source are filtered, so fewer
            than max_results may come back. Common slips are cleaned up for you:
            surrounding whitespace, upper case, an http:// or https:// scheme, a
            port, a trailing "/" or a ?query or #fragment with no path, a
            trailing dot and a leading "www." are removed ("www." is kept when
            the rest is a public suffix, so "www.github.io" stays as is),
            internationalized names become punycode, and duplicates are dropped
            (so "https://WWW.UN.org/" becomes "un.org"). Rejected with 400
            invalid_filter, whose reason says how to fix the entry: a path
            ("un.org/press"; use the host "un.org"), a wildcard
            ("*.example.com"), any other scheme, user info ("user@host"), an IP
            address, an empty entry, an invalid host name, and a host that is
            not a registrable domain under a known public suffix ("localhost",
            "com", "co.uk"). To exclude a whole public suffix, write it with a
            leading dot or "*." (".gov", "*.co.uk"): it covers every host under
            it. Suffixes only in the private section of the Public Suffix List
            are accepted as hosts ("blogspot.com", "github.io"). At most 1,000
            distinct hosts after clean-up, and at most 2,000 entries as sent
            (each at most 2,048 bytes). Send a long list in a POST body. Every
            search endpoint that takes GET (/v1/search, /v1/x402/search,
            /v1/zeroclick/search) also reads it from the query string, for a
            short list: repeat the parameter
            (?exclude_domains=a.com&exclude_domains=b.com) or separate entries
            with commas (?exclude_domains=a.com,b.com). A GET is bounded by the
            URL size the server accepts, which fits roughly a few hundred hosts;
            a longer URL is refused before it reaches the API, with an HTTP
            error (typically 431) and no JSON body. Only the first 1,000 query
            parameters are read, so when exclude_domains appears past the
            1,000th parameter the request answers 400 invalid_request rather
            than dropping it. When it is set, a query that is a URL is searched
            like any other query rather than fetched directly, so the list
            applies to it.
          example:
            - blogs.un.org
          nullable: true
        query_time:
          type: string
          description: >-
            Leave empty for a normal search. An upper time bound for a
            point-in-time search: the web as it stood at this moment, with every
            page newer than it excluded. It sets no lower bound, so this is not
            a recency filter; for recent results use published_after. Accepts an
            ISO 8601 datetime (e.g. "2026-09-20T00:00:00Z"), a YYYY-MM-DD date,
            a Unix epoch, or an offset back from now ("7d" means as of 7 days
            ago, not the last 7 days). Units: min, h, d, w, mo, y.
          example: '2026-01-01T00:00:00Z'
        snippet_max_length:
          type: integer
          minimum: 180
          maximum: 10000
          description: >-
            Maximum length, in characters, of the snippet returned per result.
            When omitted, the search backend picks the length; when `query` is a
            URL, the snippet defaults to the first 4,000 characters of the page.
        max_results:
          type: integer
          minimum: 1
          maximum: 50
          description: >-
            Maximum number of results to return. When omitted, a default count
            (10) is used.
          default: 10
        disable_cards:
          type: boolean
          default: false
          description: >-
            Set to `true` to leave cards (results at
            `https://cards.keenable.ai/w/<id>` that Keenable writes for queries
            such as prices or company facts) out of the results; ordinary web
            pages take their place. Supported in every documented search mode; a
            mode that does not support it answers `400` with
            `invalid_parameter`.
        moderation:
          type: string
          nullable: true
          enum:
            - moderate
            - strict
            - ''
            - null
          description: >-
            Filters unsafe results. "moderate" and "strict" remove results that
            a safety model judges unsafe at that level; results are removed,
            never replaced, so a query can return fewer results or none. Omit
            it, or send null or an empty string, for no moderation. An empty
            string counts as not sent. Supported in "pro" and "realtime" modes;
            in another mode, for a query that is a URL and is fetched as is (no
            exclude_domains; a URL query with a non-empty exclude_domains list
            is searched and filtered), or on a time machine search, it answers
            400 invalid_parameter, as does any other value, including "off".
            Sending a non-empty value (or null) together with safety_mode
            answers 400 invalid_parameter; an empty moderation next to
            safety_mode is ignored and safety_mode applies.
        safety_mode:
          type: string
          enum:
            - 'off'
            - moderate
            - strict
          description: >-
            Deprecated: use moderation. Stops working on 2027-03-01: from then
            on, any request that sends it (any value) answers 400
            invalid_parameter ("safety_mode": was removed on 2027-03-01; send
            "moderation" instead). Works as before until then: "moderate" and
            "strict" filter like moderation, and "off" (or omitting it) returns
            unfiltered results. A request that sends it gets a
            deprecated_parameter entry in warnings and the Deprecation and
            Sunset response headers. Any other value, including null or an empty
            string, answers 400 invalid_parameter.
          deprecated: true
        objective:
          type: string
          maxLength: 1000
          description: >-
            Optional. Use for multi-step or ambiguous searches; omit for simple
            lookups. In one to three plain sentences, say what the search is
            for, what the query leaves out (who, where, when, which sources
            count) and what earlier searches found. Do not restate the question
            or include personal or confidential information. At most 1,000
            characters (Unicode code points, counted after trimming; trim before
            sending if your client validates this schema). The ranker scores
            results for the query together with the objective; retrieval reads
            only the query, so put the words that matter there. A query that is
            a URL (with no exclude_domains) is fetched as is, with nothing to
            rank, so the objective has no ranking effect there. It is validated,
            and logged except for zero-data-retention organizations. It does not
            change the price. Leading and trailing whitespace is trimmed and an
            empty string counts as not sent. A null value is rejected with 400.
        enable_wizards:
          type: boolean
          deprecated: true
          description: >-
            Deprecated and ignored: wizards were retired. Still accepted so
            older callers keep working; it changes nothing.
        session_id:
          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. Values
            over 128 characters are truncated.
    SearchResponse:
      type: object
      required:
        - query
        - mode
        - results
      properties:
        query:
          type: string
          description: Echo of the search query
        mode:
          type: string
          description: >-
            The mode the search ran in: the requested mode, or the organization
            default when mode was omitted. A query that is a URL still echoes
            the search mode here, while usage.sku names the fetch it was billed
            as (fetch, or fetch.live after a live read).
          example: pro
        results:
          type: array
          items:
            $ref: '#/components/schemas/SearchResult'
          description: Matching pages, best match first, at most `max_results` of them.
        warning:
          type: string
          description: >-
            Present when the request was not answered as a plain search: either
            the query was a URL, so the page was fetched directly (not when
            exclude_domains is set: the URL is then searched like any other
            query), or the query carried only a site: operator with no search
            terms, so the site name was used as the search term.
        warnings:
          type: array
          description: >-
            Present when the request used something deprecated. Each entry names
            what to change; the request was still served.
          items:
            $ref: '#/components/schemas/ApiWarning'
        usage:
          $ref: '#/components/schemas/Usage'
    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.
    SearchMode:
      type: string
      enum:
        - pro
        - realtime
      description: >-
        Search mode. "pro" returns higher-quality results and is slower.
        "realtime" is the fastest mode, for latency-sensitive calls. Both modes
        take the same parameters and have the same list price; an organization
        can have its own price for each, and GET /v1/billing lists the prices
        that apply to yours. A query that is a URL is not searched when
        exclude_domains is empty: it is answered with a fetch of that page,
        whatever the mode. With an API key it is billed as that fetch; keyless
        calls are free, and an x402 call pays the search price of its route.
        When mode is omitted, your organization's default mode is used, which is
        "pro" unless a different default is set for the organization (keyless
        and x402 calls always default to "pro"); the response's mode field
        echoes the mode that was selected.
    SearchResult:
      type: object
      required:
        - title
        - url
        - description
      properties:
        title:
          type: string
          description: >-
            Page title. When the page has none, the title is built from the
            URL's host and path, for example `example.com/files/report.pdf`.
          example: Quantization of Large Models with Weight Outliers and Sparsity
        url:
          type: string
          description: Page URL
          example: https://arxiv.org/abs/2611.00286
        description:
          type: string
          description: >-
            Always empty. Deprecated — the page description now feeds the
            snippet fallback.
          deprecated: true
        snippet:
          type: string
          description: >-
            Search snippet with query-relevant highlights; falls back to the
            page description
        published_at:
          type: string
          description: >-
            When the page was published, as an ISO 8601 timestamp in UTC. Left
            out when unknown.
          example: '2026-10-30T00:00:00Z'
        acquired_at:
          type: string
          description: When the page was indexed (ISO 8601)
          example: '2026-11-03T08:57:22Z'
    ApiWarning:
      type: object
      required:
        - code
        - path
        - message
      properties:
        code:
          type: string
          enum:
            - deprecated_parameter
            - deprecated_endpoint
          description: >-
            What kind of warning. deprecated_parameter: the request sent a
            parameter that stops working on a set date. deprecated_endpoint: the
            request was sent to an endpoint that stops working on a set date
            (the old /v1/time_machine paths).
        path:
          type: string
          description: >-
            JSON pointer to the request parameter the warning is about, for
            example /safety_mode, or / for a deprecated endpoint.
        message:
          type: string
          description: >-
            What to change and by when, for example "safety_mode is deprecated
            and stops working on 2027-03-01. Use moderation."
    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:
    Deprecation:
      description: >-
        Present when the request sent a deprecated parameter (currently
        `safety_mode`). The date the parameter was deprecated, as an RFC 9745
        structured date, for example `@1795392000`.
      schema:
        type: string
      example: '@1795392000'
    Sunset:
      description: >-
        Present when the request sent a deprecated parameter (currently
        `safety_mode`). The date it stops working, as an RFC 8594 HTTP date, for
        example `Mon, 01 Mar 2027 00:00:00 GMT`.
      schema:
        type: string
      example: Mon, 01 Mar 2027 00:00:00 GMT
    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:
    PayloadTooLarge:
      description: >-
        The JSON request body is larger than the server accepts. code
        request_too_large; send a smaller body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
    PublicRateLimitExceeded:
      description: >-
        A keyless limit was hit. `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; GET and POST on the same path share both limits, and
        /v1/search/public and /v1/fetch/public count separately),
        public_rate_limit_domain (keyless requests that target a restricted
        site, shared by every keyless caller), search_rate_limited or
        fetch_rate_limited (Keenable briefly limited further down the line, not
        your own limit), target_rate_limited (the site throttled the fetch; on
        search only when the query is a URL and `exclude_domains` is empty, so
        the page is fetched), or public_domain_requires_api_key (a restricted
        site that only keyed calls can read; not retryable, send an API key).
        Wait for `Retry-After`, then retry, or use an API key. 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.