Scrape

Fetch and normalize page content. Returns markdown, raw HTML, or structured text.

POST /scrape

Captures webpage content and returns structured formats.

POST /scrape
{
  "url": "https://example.com",
  "formats": ["markdown", "html", "raw"]
}
200
{
  "success": true,
  "id": "job-123e4567-e89b-12d3-a456-426614174000",
  "url": "https://example.com",
  "status": "completed",
  "markdown": "# Example Domain\n...",
  "rawHtml": "<html>...</html>"
}

GET /scrape/{id}

Returns scrape job result by id.

curl https://fireflare-api.oladapo.workers.dev/scrape/job-123e4567-e89b-12d3-a456-426614174000
404
{
  "success": false,
  "error": "Job not found",
  "code": "JOB_NOT_FOUND"
}

This site uses Just the Docs, a documentation theme for Jekyll.