翻篇收录说明
翻篇网页快照

Keenable API reference - Keenable

https://docs.keenable.ai/api-reference

最近抓取:2026-12-03 05:47:26(北京时间)

最近内容变化:2026-12-03 05:47:26(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Call Keenable search and fetch over HTTP at api.keenable.ai, with the X-API-Key header or the keyless /public paths. Endpoints, limits and billing.

正文摘录

Call the search and fetch endpoints directly when you’re building something the CLI, the MCP server and the integrations don’t cover. Those tools all call one or both of these two endpoints. Base URL Every path on this page is relative to this base URL: https://api.keenable.ai Authentication You can call the API in three ways. Each way uses its own path. With an API key, in the X-API-Key header: curl -X POST "https://api.keenable.ai/v1/search" \ -H "X-API-Key: keen_<your_key>" \ -H "Content-Type: application/json" \ -d '{ "query": "typescript best practices" }' Authorization: Bearer keen_<your_key> works too. If you send both headers, the API uses X-API-Key. See Authentication for obtaining and rotating a key, and for the error responses both endpoints share. Without one, on the /public twin of each endpoint: curl -X POST "https://api.keenable.ai/v1/search/public" \ -H "X-Keenable-Title: My App" \ -H "Content-Type: application/json" \ -d '{ "query": "typescript best practices" }' X-Keenable-Title names the application making the call, and Keenable attributes keyless traffic by it. The public endpoints require it. If you leave it out, the API returns 400 with Missing app identifier. The API truncates values longer than 256 characters. If you can’t set a header, pass the same value in the ?keenable_title= query parameter. Paying per request, on the /v1/x402/* paths, with no key and no account: each call pays $0.01 in USDC on Base over the x402 protocol. See Pay per request for the payment flow and a client example. Parameters and response shapes are identical across all three, with two exceptions for fetch. POST /v1/fetch/public reads up to 10 URLs per call, and each URL counts as one request toward the keyless limit. /v1/x402/fetch takes only GET, with the query parameters of the deprecated GET /v1/fetch, and returns one page instead of results. Otherwise, to move between them, change the path and swap one header. If no key is configured, the CLI, the MCP server and every integration fall back to the keyless tier. Endpoints EndpointMethodPathKeyless pathPay-per-request pathReturnsSearchPOST, GET/v1/search/v1/search/public/v1/x402/searchRanked results with URLs, titles, and snippetsFetchPOST/v1/fetch/v1/fetch/public, up to 10 URLs per call/v1/x402/fetch (GET)Up to 20 pages per call, each as markdown, a prompt’s answer or typed JSONSELECTPOSTNoneNone/v1/x402/selectA table from one read-only SQL query over live web resultsBilling (beta)GET/v1/billing/v1/billing, key optionalNonePrices and, with a key, your balanceUsage (beta)GET/v1/usageNoneNoneRequests and credits per API key and UTC dayKey identityGET/v1/auth/userNoneNoneThe user who created the key and the organization it belongs toMonitorsGET, POST, PATCH, DELETE/v1/monitors and the paths under itNoneNoneMonitors, their runs, and the new pages they foundTime MachinePOST/v1/time-machine/search, /v1/time-machine/fetch and /v1/time-machine/versionsNoneNoneSearch results, pages and page versions as Keenable captured them at a past moment On the pay-per-request paths, search takes GET and POST, fetch takes GET, and SELECT takes POST. SELECT has no keyed REST path: with an account, use the SELECT MCP server. See Pay per request. GET /v1/fetch and GET /v1/fetch/public are deprecated and stop working on 1 March 2027. Use POST. See Fetch (GET, deprecated). Monitors needs an API key: it has no keyless or pay-per-request path. See Monitors for how monitors work and their limits. The Monitors reference has a page per operation: create, list, get, update, delete, run now, list runs, get a run, list results, list a page monitor’s versions, list deliveries, count and bulk actions. Time Machine is in Early Access and must be turned on for your organization. Its search, fetch and versions take only POST. See Time Machine. To move from Tavily, Exa, the Brave Search API, Perplexity, SerpApi or Serper, Linkup or another search API, see Migrate to Keenable. Each page maps their parameters and response fields to these endpoints. Each endpoint page has the full request and response shape, examples in the official TypeScript, Python, Go and Rust SDKs plus curl, and a playground you can call with your own key. Three pages show curl only, because the SDKs have no method for them: the deprecated GET /v1/fetch (the SDKs fetch with POST), Usage, and Time Machine, which also has no playground. For a field or term such as acquired_at, a card or a SKU, see the Glossary. Limits and billing If you send an API key, Keenable limits your requests per organization rather than per IP address, and they draw on your balance. See Rate limits for the numbers. If you don’t send a key, Keenable limits your requests per IP address, separately for each endpoint, at 1,000 requests per hour and 10 per second. Keyless requests cost nothing. Keenable still logs them, with the query or URL, your IP address and your X-Keenable-Title value (see Authentication). See Data and privacy and Security and privacy for what Keenable keeps. Keyless responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset for the hourly limit, and a 429 adds Retry-After. You share that pool with everyone else on your egress address, so other traffic can use up your headroom. Use a key for anything past a first look. Pay-per-request calls don’t draw on your balance either. You pay for each one on its own, and they have their own limits. Errors Every error body from these endpoints has a stable code, a one-sentence fix, retryable, and a docs_url that links to the matching section of Errors. A retryable error adds retry_after_seconds and a matching Retry-After header. Branch on code, not on the text of error or message. See Error codes for every code, grouped by type, with whether retrying helps and what to do. Retry rules says when to send a failed request again.