Skip to main content
POST
TypeScript
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 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.
  • Free. The response has no usage.
Every parameter, filter and error is described on the Search API reference. For the keyless paths, headers and limits in one place, see Keyless access.

Authorizations

X-API-Key
string
header
required

Headers

X-Keenable-Title
string

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.

Maximum string length: 256
X-Keenable-Session-Id
string

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.

Maximum string length: 128

Query Parameters

keenable_title
string

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.

Maximum string length: 256

Body

application/json
query
string
required

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
enum<string>

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.

Available options:
pro,
realtime
acquired_after
string

Filter: pages acquired after this date (YYYY-MM-DD, ISO 8601, or relative like "7d")

Example:

"30d"

acquired_before
string

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
string

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
string

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
string

Return results from one site only. Subdomains are included, and a path narrows further (github.com/microsoft).

Example:

"arxiv.org"

exclude_domains
string[] | null

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.

Maximum array length: 2000
Example:
query_time
string

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
integer

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.

Required range: 180 <= x <= 10000
max_results
integer
default:10

Maximum number of results to return. When omitted, a default count (10) is used.

Required range: 1 <= x <= 50
disable_cards
boolean
default:false

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
enum<string> | null

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.

Available options:
moderate,
strict,
,
null
safety_mode
enum<string>
deprecated

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.

Available options:
off,
moderate,
strict
objective
string

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.

Maximum string length: 1000
enable_wizards
boolean
deprecated

Deprecated and ignored: wizards were retired. Still accepted so older callers keep working; it changes nothing.

session_id
string

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.

Maximum string length: 128

Response

Search results. The response has no usage.

query
string
required

Echo of the search query

mode
string
required

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
object[]
required

Matching pages, best match first, at most max_results of them.

warning
string

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
object[]

Present when the request used something deprecated. Each entry names what to change; the request was still served.

usage
object

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).