Scrape & Screenshot API
Scrape
bash
POST /scrapeExtract page content with optional format conversion.
| Field | Type | Default | Description |
|---|---|---|---|
url | string | (required) | Target URL |
format | string | "text" | text, html, or markdown |
wait | number | 2000 | Wait time in ms after load |
profile | string | "windows" | Fingerprint profile |
bash
curl -X POST http://127.0.0.1:9090/scrape \
-H 'content-type: application/json' \
-d '{
"url": "https://example.com",
"format": "markdown",
"wait": 3000
}'json
{
"url": "https://example.com",
"content": "# Example Domain\n\nThis domain is for use in illustrative examples...",
"format": "markdown",
"status": 200
}Screenshot
bash
POST /screenshotCapture a screenshot of a page.
| Field | Type | Default | Description |
|---|---|---|---|
url | string | (required) | Target URL |
width | number | 1920 | Viewport width |
height | number | 1080 | Viewport height |
full_page | boolean | false | Capture full scrollable page |
format | string | "png" | png or jpeg |
profile | string | "windows" | Fingerprint profile |
bash
curl -X POST http://127.0.0.1:9090/screenshot \
-H 'content-type: application/json' \
-d '{
"url": "https://example.com",
"width": 1280,
"height": 720,
"full_page": true
}' --output screenshot.pngThe response body is the raw image bytes with Content-Type: image/png.
Navigate (Stateless)
bash
POST /navigateNavigate to a URL without creating a session. Returns page metadata.
bash
curl -X POST http://127.0.0.1:9090/navigate \
-H 'content-type: application/json' \
-d '{"url": "https://example.com"}'json
{
"url": "https://example.com",
"title": "Example Domain",
"status": 200
}Evaluate (Stateless)
bash
POST /evaluateExecute JavaScript on a page without creating a session.
bash
curl -X POST http://127.0.0.1:9090/evaluate \
-H 'content-type: application/json' \
-d '{
"url": "https://example.com",
"script": "document.querySelectorAll(\"a\").length"
}'json
{
"result": "1"
}