Webpage and PDF Extraction
The Extract API fetches any webpage or PDF and parses it into clean Markdown or HTML, plus page metadata, without a headless browser or an HTML parser on your side. PDF tables keep their rows and columns, so filings and reports arrive ready for an LLM.
What You’ll Build
A one-call extractor that fetches a URL and parses it into clean Markdown—title, body, and page metadata in a single response. full_page.extraction_formats picks Markdown, HTML, or both, and timeout caps the whole request.
Try It Live
Run a live Extract API request from this page. Open the Try It panel below, paste your API key, drop in a URL, and send it against the live endpoint.
Prerequisites
Install the Python SDK. you.extract() needs version 3.7.0 or later.
Walkthrough
Python
TypeScript
Example Output
Pass a PDF URL to the same script to extract a document. Add "parse_effort": "lite" to the request for text-based PDFs to skip the per-page charge that the default standard adds.