Scraper API

A Chromium-powered scraping endpoint running on a Raspberry Pi 5.

POST /scrape

{
  "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"
}

GET /health

Returns {"status":"ok","browserConnected":true}.