A Chromium-powered scraping endpoint running on a Raspberry Pi 5.
{
"url": "https://example.com", // required
"waitFor": "#some-element", // optional: CSS selector to wait for
"waitForTimeout": 2000, // optional: extra wait in ms after load
"timeout": 30000, // optional: total timeout ms (default 30s)
"returnType": "html" // optional: "html" | "text" | "both"
}
Every /scrape request must include these headers:
X-Api-Key: your-api-key X-Api-Secret: your-api-secret
Example:
curl -X POST https://home.xubees.com/scrape \
-H 'Content-Type: application/json' \
-H 'X-Api-Key: your-api-key' \
-H 'X-Api-Secret: your-api-secret' \
-d '{"url": "https://example.com", "returnType": "text"}'
Returns {"status":"ok","browserConnected":true}.
This page.