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

Fetch API: any URL as clean markdown - Keenable

https://docs.keenable.ai/products/fetch

最近抓取:2026-12-03 23:19:33(北京时间)

最近内容变化:2026-12-03 23:19:33(北京时间)

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

访问原网页

页面简介

Turn any URL into clean markdown your model can read, or get only the part a prompt asks for. Try it with no API key. Code, cost per call and gotchas.

正文摘录

Fetch gives your agent any web page as clean markdown, with navigation and boilerplate stripped. Add a prompt to get back only the part you need. Fetch a page This sample fetches one page and prints its title and the first 300 characters of its content. The SDK tabs run with or without an API key. The SDKs’ fetch takes a list of URLs and calls POST /v1/fetch, or POST /v1/fetch/public without a key: You see the page title, then the start of the page as markdown: Example output · results varyKeenable.ai — Independent Web Search API for AI [Keenable raises $26M from Accel and Conviction. Techcrunch](https://techcrunch.com/2026/08/25/accel-backed-keenable-is-indexing-the-web-for-ai-agents/) [Pricing](https://keenable.ai/pricing) [About](https://keenable.ai/about) … Cost Each fetch is billed by where the page came from. Keyless calls are free. Rate limits cap them. RequestWhat you getSKUDefaultKeenable’s indexed copy of the pagefetchmax_age_hours of 0, or a page with no indexed copyThe page fetched live from the sourcefetch.live A fetch costs $4 per 1,000 at standard prices, and your organization can have its own. Read what a page cost from the usage object in its entry in results. See Balance and usage for the allowance and how usage is reported. Key parameters You call POST /v1/fetch with a JSON body. FieldWhat it doesExampleurlsThe pages to fetch, 1 to 20 URLs. Required. Without a key, 1 to 10.["https://keenable.ai"]content.max_charsMaximum characters of content per page. If a page is longer, content is cut at this length. Defaults to 50000 over HTTP, in the SDKs and in the CLI. The MCP tool fetch_page_content defaults to 20,000 split across the pages.10000retrieval.max_age_hoursHow old the indexed copy may be, in hours. 0 fetches the page live from the source. Use it when you need the current version of a page that changes often.0content.promptAn extraction instruction of at most 2000 characters. An LLM reads each page and content holds only its answer. A page too long to run a prompt over fails with an error."List all pricing tiers with their monthly prices" To cap the content, send content.max_chars. This request returns at most 2,000 characters of the page as markdown. The SDKs name it max_chars in Python and Rust, and maxChars in TypeScript: curl -X POST "https://api.keenable.ai/v1/fetch/public" \ -H "Content-Type: application/json" \ -H "X-Keenable-Title: Keenable docs" \ -d '{"urls": ["https://en.wikipedia.org/wiki/Web_scraping"], "content": {"max_chars": 2000}}' \ | jq -r '.results[0].content' When the page is longer, its entry in results has truncated set to true, and total_chars holds the full length. This request fetches a page live and returns only the answer to a prompt. The SDKs’ fetch takes prompt too, and max_age_hours=0 for a live read. See SDK methods. curlTypeScriptPythonGocurl -X POST "https://api.keenable.ai/v1/fetch/public" \ -H "Content-Type: application/json" \ -H "X-Keenable-Title: Keenable docs" \ -d '{ "urls": ["https://example.com"], "content": {"prompt": "Summarize this page in one sentence"}, "retrieval": {"max_age_hours": 0} }' content holds one sentence instead of the full page: Example output · results vary{ "results": [ { "url": "https://example.com/", "title": "Example Domain", "content": "This domain is designated strictly for use in documentation examples without requiring permission, and should not be used as a service for testing or monitoring purposes." } ] } Gotchas By default, Fetch returns Keenable’s indexed copy of the page. If Keenable has no indexed copy, it fetches the page live from the source and bills the call as fetch.live, even without max_age_hours. Read usage.sku in the page’s entry in results to see which SKU a call was billed as. Next steps Fetch (POST) API reference: every request field and response field, up to 20 pages in one call, with a prompt, a JSON Schema, links and images. Fetch (GET, deprecated): the deprecated GET /v1/fetch, for existing callers. Search: find the pages to fetch. Search, then fetch: decide when a snippet is enough and when to fetch. Fact-check with citations and Docs lookup for coding agents: a recipe and a guide that fetch with a prompt. SDKs: install the Python, TypeScript, Go or Rust client. Tool calling: give an LLM search and fetch as tools. Keenable crawlers: the user agents Keenable sends, and how a site owner verifies them. Errors: what each status code means and how to fix it. Moving from another page-content API: see the mappings for Firecrawl, Tavily, Exa, Parallel and Jina Reader. Related pages Production checklistShip Keenable search and fetch to production: keys, rate limits, retries with backoff, stopping on 402, timeouts, request IDs in logs and monitoring.cogneeGive cognee clean Markdown pages: Keenable is the web-fetch backend behind cognee’s URL ingestion and scheduled scraper.Fetch with a promptHow to pass a prompt to fetch so content holds only the facts you asked for, write prompts that return parseable output, and handle the 2,000-character limit.Live fetchHow to set max_age_hours to 0 so fetch reads a page from its source, not the indexed copy, when that’s worth it, and how a live read is billed as fetch.live.