markdownify endpoint.
Request body
string
required
The URL of the page to fetch. Public URLs only — private and internal addresses are rejected.
array
required
One or more output formats. Each element is an object with a
type and optional per-format options.string
Override auto-detected content type. Common values:
"text/html", "application/pdf".array
Optional non-empty MIME allowlist. Omit it to allow every supported type;
"all" and "*" are not accepted.array
Optional processing configuration. Omit this field to use the 25-page PDF cap. You may also send
{"type":"pdf"} and omit maxPages; it defaults to 25. Set maxPages only to override the
default, using 1–500, or -1 for no page limit. PDF processing costs 1 credit per page
actually processed. See Configure PDF page limits
for examples.object
Fetch-time options. All fields are optional.
Example request
Example response
Multi-format request
Request any combination of formats in one call:Structured extraction during scrape
Use thejson format to run an LLM extraction on the same fetched page:
results.json.data.