Fetch a web page
Changed onFetches a single web page and returns clean extracted content (title, article text, metadata) as JSON, or LLM-ready markdown with format=context. The companion to /api/v1/search: search, pick a result, fetch it in full.
Request
- Base URLhttps://api.andiai.com
- URLhttps://api.andiai.com/api/v1/fetch
- AuthAPI key in header x-api-key
Query parameters
Full http(s) URL of the page to fetch.
Response format: json (structured, default) or context (LLM-ready markdown).
How thoroughly to retrieve the page: low favors speed, max spends the most time extracting content — useful for pages that are slow to load or render content client-side. Omit for the server's adaptive default. Invalid values return a 400 listing the valid tiers. Fetch failures (422, 503) are never billed, regardless of effort.
Maximum content characters to return (default 100000, maximum 200000).
Optional query string to scope extraction to. When set, the response includes query_extracts, query_snippet, and query_hash fields scoped to this query.
Response
Extracted page content
Changes
- breaking
for the
queryrequest parametermaxContentLength, default value100000was added - warning
for the
queryrequest parametermaxContentLength, the max was set to200000.00
- breaking