← Back to TinyFish
POST/

Fetch and extract content

Fetch web pages and extract clean content. Submit up to 10 URLs, returns structured content in markdown (default) or HTML. Supports link/image extraction, CSS selector scoping, per-URL timeouts, and conditional requests via ETag/Last-Modified.

TinyFish·$0 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "tinyfish/fetch", path: "/", body: { "urls": [] } }); console.log(output);

Body parameters

urlsrequired
array

Array of URLs to fetch (1-10). All fetched in parallel.

purpose
string

Why these URLs are being fetched. Used to optimize content extraction.

format
string

Output format: markdown (default) or html

links
boolean

Extract all outbound links from each page

image_links
boolean

Extract all image URLs from each page

page_metadata
boolean

Return page-head metadata (canonical URL, title, description, etc.)

ttl
integer

Cache freshness tolerance in seconds. Omit for unlimited tolerance.

per_url_timeout_ms
integer

Per-URL timeout in milliseconds

include_selectors
array

CSS selectors (1-20) to scope extracted content to

exclude_selectors
array

CSS selectors (1-20) for elements to remove before extraction

    Orthogonal - Giving AI agents the tools they need.