API reference
Rendered content extraction
Extract hydrated HTML, visible text, and resolved links after JavaScript has executed in the browser.
Request
POST /v1/extract/content
{
"url": "https://example.com/docs",
"selector": "main",
"include_links": true,
"wait_until": "domcontentloaded"
}Fields
| Field | Type | Required | Notes |
|---|---|---|---|
| url | string | Yes | Public http/https URL. |
| selector | string | No | Scope extraction to one element. |
| include_links | boolean | No | Return up to 200 resolved links. |
| wait_for_selector | string | No | Wait for dynamic content before extraction. |
| cookies | array | No | Set up to 50 browser cookies before navigation. |
| locale | string | No | Set Accept-Language, for example en-US. |
| timezone | string | No | IANA timezone such as America/New_York. |
| click_selector | string | No | Click an element before extraction. |
| scroll_to | number | bottom | No | Scroll before reading hydrated content. |
Response
{
"content": {
"url": "https://example.com/docs",
"title": "Docs",
"text": "Rendered visible text...",
"html": "<article>...</article>",
"links": [{"text":"API", "url":"https://example.com/api"}]
}
}