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.
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
Array of URLs to fetch (1-10). All fetched in parallel.
Why these URLs are being fetched. Used to optimize content extraction.
Output format: markdown (default) or html
Extract all outbound links from each page
Extract all image URLs from each page
Return page-head metadata (canonical URL, title, description, etc.)
Cache freshness tolerance in seconds. Omit for unlimited tolerance.
Per-URL timeout in milliseconds
CSS selectors (1-20) to scope extracted content to
CSS selectors (1-20) for elements to remove before extraction