/fetch route returns a
clean markdown rendering of the page, optimized for LLM consumption. HTML and PDF documents are
supported. Optional JavaScript rendering is available for HTML pages, along with optional raw HTML
and extracted image URLs. "pro" delivers significantly higher success rates on
hard-to-retrieve pages.
Pass a JSON Schema in schema to also get typed JSON from that same page in data. Default
Fetch is unchanged: URL in, markdown out. Structured output is an optional extra on that
same request.
Parameters
When and how to use
mode, renderJs, includeRawHtml, extractImages,
schema, and instructions is covered on the
Fetch best practices
page.
Structured output
schema turns structured output on. instructions is optional: schema
without instructions is valid, and field descriptions do the work.
When schema is present:
- Existing response fields stay. Markdown is still returned.
datais an object matching the schema for fields found on the page. - Fields with no grounded value are omitted, even if the schema marks them
required. Values are not invented. instructionswithoutschemareturns a400.schemamust be a JSON Schema object (type"object"). An array or other root type returns a400.mode,renderJs,includeRawHtml, andextractImagesare independent of structured output.- Fetch reads this URL only. It does not follow links. For many rows across a listing page, use Extract.
- Search structured
output stays on
structuredOutputSchema. Fetch usesschemaandinstructions.
Constraints
HTML pages over 20 MB and PDFs over 100 MB return a
400 error. See the
rate-limits page for
request-rate limits.Pricing
Cost depends onmode and renderJs. Adding a schema for
structured output
adds a flat $0.001 on top of any combination.
Example
Get your API key
Create a Linkup account for free to get your API key.
rawHtml is present only when includeRawHtml is true. images is present
only when extractImages is true. markdown is always returned.
Structured output example
Structured output is live on
POST /v1/fetch. If your current SDK release
does not accept schema or instructions, send the same JSON body as the
curl example.markdown is still returned; data is
present because schema was set:
Next
Best practices
JavaScript rendering, structured output, pairing with Search.
For AI agents
Tool definition and integration prompt.
API reference
Full parameter spec and response schema.