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.
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-Titleheader, or thekeenable_titlequery parameter, names your app. Without either, the call returns400withmissing_app_title. - Keenable limits keyless calls per IP address. Limits apply and may change. See Rate limits.
- Free. The response has no
usage.
Headers
Query Parameters
Body
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.
"post-training quantization LLM"
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.
pro, realtime 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.
"2026-01-01"
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.
2000Leave 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.
"2026-01-01T00:00:00Z"
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.
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.
moderate, strict, , null 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.
off, moderate, strict 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.
1000Response
Search results. The response has no usage.
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.
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).