Scrape
POST /scrape runs a synchronous scrape on a URL and returns content in the
requested formats. Messora’s native anti-bot engine handles protections
automatically.
Endpoint
Authentication
X-API-Key header required. See Authentication.
Parameters
string
required
Public URL to scrape. Internal URLs (RFC1918, loopback, cloud metadata) are rejected by the SSRF guard.
string[]
default:"[\"markdown\"]"
Desired output formats. Accepted values:
markdown, json, raw.object
JSON schema for structured extraction. Required when
formats includes json.string
Context prompt to guide structured extraction (used with
json_schema).boolean
default:"false"
If
true, render JavaScript before extraction (headless browser).boolean
default:"false"
If
true, extract only the main page content, removing navigation, footers, and sidebars.integer
default:"60"
Maximum wait time in seconds (1–180).
integer
Extra wait in milliseconds after load (useful with
render_js).string[]
Attribution tags for usage records (up to 10 tags).
Cost
Failures (
blocked_antibot, timeout, extraction_failed) do not consume credits.Example
Successful response
Structured extraction (JSON)
To extract structured data, includejson in formats and provide a json_schema: