Skip to main content
Fetch is Linkup’s real-time page content extractor. Given a URL, the /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

In agentic pipelines, set renderJs to true by default. Many modern sites are client-side rendered; switch to false only after confirming the specific site renders server-side.
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. data is 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.
  • instructions without schema returns a 400.
  • schema must be a JSON Schema object (type "object"). An array or other root type returns a 400.
  • mode, renderJs, includeRawHtml, and extractImages are 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 uses schema and instructions.
Structured output adds a model pass after the scrape, so the call is slower than markdown-only Fetch and costs $0.001 more. See pricing.

Constraints

Fetch supports HTML and PDF. Other binary URLs (ZIP, image, video) return a 400 error.
Fetch does not authenticate. Pages behind a login wall return what an anonymous visitor would see.
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 on mode 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.
Successful response:
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.
Successful response (abbreviated). 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.