Skip to main content
POST
Web Parse
Upload a document as multipart form-data, or pass standard base64 in the JSON file field. Include a filename or MIME type identifying its format. The current adapter accepts files up to 2 MiB and parses up to 10 PDF pages. Inspect data.page.page_count, total_page_count, truncated, and any _warnings before treating a document as complete. Unknown page counts remain null. Use /web/scrape for a document hosted at a URL; the optional url here records source attribution only.
Preview coverage uses Firecrawl. Successful calls cost the catalog base price; failed calls refund that charge. Provider availability and the stated file/page limits apply.

Authorizations

x-api-key
string
header
required

Headers

Cache-Control
string
Idempotency-Key
string
X-Max-Credits
integer

Optional nonnegative integer cap on the maximum request hold. A live request whose hold exceeds this cap returns 422 CREDIT_BUDGET_EXCEEDED before spending. Metered holds use the requested limit; cache hits and successful idempotent replays cost zero.

Required range: x >= 0

Body

file
string<byte>
required

Standard padded base64 for a nonempty document up to 2 MiB. Use multipart form-data for binary upload.

Maximum string length: 2796204
filename
string

Document filename with a supported extension; no directory path. Required unless mime_type identifies the format.

mime_type
string
url
string

Optional source attribution only; this endpoint does not fetch URLs.

Response

Request completed. Interpret data using the selected resource contract.

success
boolean
required
platform
string
required
endpoint
string
required
credits_used
integer
required
Required range: x >= 0
credits_remaining
integer | null
required
request_id
string
required
cached
boolean
required
data
object
required

The selected operation determines the resource fields in this object. Source data can omit a metric or report it as null.