Turn a web page or document into clean markdown or structured JSON.

1 credit per pageSee Credits & pricing and Quickstart.

Reads a public web page or document within a single timeout deadline and returns clean markdown or structured json. usage.credits reports the price charged (1 credit per returned page).

Authorizations

Authorizationstringheaderrequired

Send your API key in Authorization: Bearer <key>. Keys start with ck_ and are created at app.crawlapi.dev/keys.

x-api-keystringheader

Alternative header for your API key (ck_...).

Body

application/json

Send a JSON object with url, optional format, and optional timeout.

urlstring<uri>required

Public http or https URL to read. Private addresses and embedded credentials return UNSAFE_URL.

formatstringdefault markdown

Output format: markdown returns clean page text; json returns structured objects, tables, JSON-LD, and embedded state.

Valuesmarkdownjson
timeoutintegerdefault 300001000–60000

Overall deadline in milliseconds for the request. Defaults to 30000.

Response headers

See Rate limits for RateLimit header parsing and 429 backoff, and Timeouts for deadline sizing.

HeaderTypeDescription
X-Request-IdstringUnique request identifier (req_...). Quote this value to support.
RateLimit-PolicystringAccount rate-limit policy sent on authenticated responses: "minute" sets q requests per minute (w=60), "concurrency" sets q in-flight requests at once.
RateLimitstringRemaining quota when the response leaves: "minute";r= requests that can start now and t= seconds until the next token refills (omitted when your full per-minute allowance is available); "concurrency";r= free in-flight slots.
Retry-AfterintegerWhole seconds to wait before retrying.
AllowstringHTTP methods accepted on this route.
WWW-AuthenticatestringAuthentication scheme expected for this endpoint.

Success response

200 · application/json

Every success returns success: true, request_id, data (either markdown or json, never both), and usage. For all 12 normalized data.json.structured shapes, see Structured JSON.

successtruerequired

Always true on success.

request_idstringrequired

Unique request identifier, echoed in the x-request-id header.

datamarkdown | jsonrequired

Extracted page content: metadata, links, and either markdown or json.

format: "markdown"3 fields
metadataobjectrequired

Page metadata and completion flags.

Child fields7 fields
titlestringrequired

Page title.

descriptionstringrequired

Meta description.

languagestring | nullrequired

Declared page language, or null when undeclared.

statusintegerrequired

HTTP status code returned by the target site.

final_urlstringrequired

Final URL after redirects, stripped of tracking parameters (or the canonical URL for X posts and YouTube videos).

truncatedboolean

Present and true when the response was truncated (for example at the 2 MiB output cap). Omitted when false.

login_requiredboolean

Present and true when the target is a sign-in wall returned as its own text (0 credits). Omitted when false.

markdownstringrequired

Extracted page text in markdown, up to 2 MiB. Present when format is markdown.

format: "json"3 fields
metadataobjectrequired

Page metadata and completion flags.

Child fields7 fields
titlestringrequired

Page title.

descriptionstringrequired

Meta description.

languagestring | nullrequired

Declared page language, or null when undeclared.

statusintegerrequired

HTTP status code returned by the target site.

final_urlstringrequired

Final URL after redirects, stripped of tracking parameters (or the canonical URL for X posts and YouTube videos).

truncatedboolean

Present and true when the response was truncated (for example at the 2 MiB output cap). Omitted when false.

login_requiredboolean

Present and true when the target is a sign-in wall returned as its own text (0 credits). Omitted when false.

jsonobjectrequired

Extracted structured data. Present when format is json.

Child fields4 fields
structuredobject

Normalized object the page declares itself to be (most specific schema.org type, X post, or YouTube video). Omitted when the page declares none.

Child fields14 fields
typestringrequired

Most specific declared object type; the object sits under the matching property.

Valuesrecipejobeventsoftware_appcreative_worklocal_businessproductarticlefaqvideolistingpost
sourcestringrequired

Primary declaration source (jsonld, microdata, opengraph, x, youtube); blank fields are filled from other sources declaring the same object.

Valuesjsonldmicrodataopengraphxyoutube
productobject

Declared product.

Child fields10 fields
namestring

Product name.

pricenumber

Declared price as a number.

currencystring

Three-letter ISO currency code, upper-cased.

availabilitystring

Schema.org availability term, such as InStock.

skustring

Declared stock-keeping unit (SKU).

gtinstring

Declared Global Trade Item Number (GTIN).

brandstring

Declared brand name.

imagesstring[]

Product image URLs.

ratingobject

Declared aggregate rating.

Child fields2 fields
valuenumber

Average rating value.

countinteger

Number of ratings or reviews averaged.

urlstring

Canonical product URL.

articleobject

Declared article.

Child fields6 fields
titlestring

Article headline or title.

authorstring

Declared author name(s).

publishedstring

Publication date or timestamp.

updatedstring

Last-modified date or timestamp.

sitestring

Publisher or site name.

imagestring

Lead image URL.

listingobject

Declared item listing.

Child fields2 fields
itemsobject[]

Listed items.

Child fields4 fields
namestring

Item name.

urlstring

Item URL.

pricenumber

Declared item price.

imagestring

Item image URL.

countinteger

Total number of items declared.

recipeobject

Declared recipe.

Child fields11 fields
namestring

Recipe title.

ingredientsstring[]

Ingredient lines.

stepsstring[]

Instruction steps.

prep_timestring

Preparation time, typically ISO 8601 duration.

cook_timestring

Cooking time, typically ISO 8601 duration.

total_timestring

Total time, typically ISO 8601 duration.

servingsstring

Declared yield or servings.

nutritionrecord<string, string>

Nutrition facts keyed by schema.org property name.

ratingobject

Declared aggregate rating.

Child fields2 fields
valuenumber

Average rating value.

countinteger

Number of ratings or reviews averaged.

authorstring

Recipe author.

imagestring

Lead recipe image URL.

software_appobject

Declared application or game.

Child fields7 fields
namestring

Application or game name.

osstring

Supported operating system(s).

categorystring

Application category.

pricenumber

Declared price.

currencystring

Three-letter ISO currency code, upper-cased.

ratingobject

Declared aggregate rating.

Child fields2 fields
valuenumber

Average rating value.

countinteger

Number of ratings or reviews averaged.

developerstring

Author, publisher, or developer name.

creative_workobject

Declared film, series, episode, book, album, song, or podcast.

Child fields10 fields
kindstring

Declared schema.org type, such as Movie, Book, or TVSeries.

namestring

Title of the work.

datestring

Publication, creation, or release date.

ratingobject

Declared aggregate rating.

Child fields2 fields
valuenumber

Average rating value.

countinteger

Number of ratings or reviews averaged.

genrestring

Declared genre(s).

directorsstring[]

Director names.

actorsstring[]

Actor names.

authorsstring[]

Author, creator, or artist names.

durationstring

Duration, typically ISO 8601 (for example PT2H22M).

imagestring

Cover or poster image URL.

eventobject

Declared event.

Child fields8 fields
namestring

Event name.

startstring

Event start date or timestamp.

endstring

Event end date or timestamp.

locationstring

Venue or address as one line of text.

organizerstring

Event organizer name.

pricenumber

Lowest or declared ticket price.

currencystring

Three-letter ISO currency code, upper-cased.

urlstring

Event URL.

jobobject

Declared job posting.

Child fields6 fields
titlestring

Job title.

companystring

Hiring organization name.

locationstring

Job location or remote type.

salarystring

Declared base or estimated salary.

postedstring

Date the job was posted.

employment_typestring

Employment type, such as FULL_TIME or CONTRACTOR.

faqobject[]

Declared questions and answers.

Child fields2 fields
questionstring

Question text.

answerstring

Accepted or suggested answer text.

local_businessobject

Declared business, shop, restaurant, or hotel.

Child fields5 fields
namestring

Business name.

addressstring

Street address as one line of text.

phonestring

Declared telephone number.

hoursstring

Declared opening hours.

ratingobject

Declared aggregate rating.

Child fields2 fields
valuenumber

Average rating value.

countinteger

Number of ratings or reviews averaged.

videoobject

Declared video.

Child fields9 fields
namestring

Video title.

durationstring

Video length as an ISO 8601 duration (PT3M33S); omitted for live streams.

uploadedstring

Upload or publication date.

thumbnailstring

Thumbnail image URL.

urlstring

Video URL.

descriptionstring

Video description with line breaks preserved.

channelobject

Channel that published the video.

Child fields2 fields
namestring

Channel or publisher name.

urlstring

Channel page URL.

viewsinteger

View count.

transcriptobject

Video transcript when captions are available.

Child fields5 fields
languagestring

Caption language name.

language_codestring

Caption language code.

generatedboolean

Present and true when captions are auto-generated. Omitted when manual.

textstring

Full transcript text.

segmentsobject[]

Timestamped caption segments in order.

Child fields3 fields
startnumberrequired

Segment start time in seconds.

durationnumberrequired

Segment duration in seconds.

textstringrequired

Caption text for this segment.

postobject

X post with author, text, counts, media, thread, quoted post, article, and the replies X shows publicly.

Child fields17 fields
authorstring

Author display name.

handlestring

Author X handle without the leading @.

urlstring

Canonical post URL (https://x.com/<handle>/status/<id>).

publishedstring

Publication timestamp in UTC.

textstring

Full post text with line breaks and expanded links.

likesinteger

Like count.

repostsinteger

Repost count.

repliesinteger

Reply count.

quotesinteger

Quote-post count.

bookmarksinteger

Bookmark count.

viewsinteger

View count.

mediastring[]

Image URLs attached to the post (video thumbnail for videos).

threadstring[]

Text of the author's own consecutive replies in order.

quotedobject

Quoted post, if the post quotes another.

articleobject

X article attached to the post, if present.

Child fields2 fields
titlestring

X article title.

markdownstring

X article body formatted as markdown.

commentsobject[]

Public replies X shows under the post and its thread to a visitor who is not signed in, in X's order.

in_reply_tostring

For a post in comments: URL of the post it answers.

tablesobject[]required

Extracted data tables from the page. Always present; empty when none are found.

Child fields3 fields
sourcestringrequired

Origin of the table: html for an HTML table, list for repeated page cards, embedded for a record array in page state or JSON-LD, document for a document.

Valueshtmllistembeddeddocument
headersstring[]required

Column headings, or empty if the table has none.

rowsstring[][]required

Table rows, each a list of cell strings.

jsonldany[]required

Raw JSON-LD blocks from the page. Always present; empty when none exist.

embeddedobject[]required

Embedded page state blobs parsed from the page, largest first. Always present; empty when none.

Child fields4 fields
sourcestringrequired

Where the blob came from: next-data, json-script, inline JS assignment, or document for a JSON response.

Valuesnext-datajson-scriptinlinedocument
keystring | nullrequired

Variable name or script id holding the blob, or null if unnamed.

bytesintegerrequired

Raw blob size in UTF-8 bytes.

valueanyrequired

Parsed JSON value (nested JSON strings decoded).

usageobjectrequired

Credits charged and remaining balance.

Child fields2 fields
creditsintegerrequired

Credits charged for this request: 1 for a page, or 0 for a sign-in wall.

remainingintegerrequired

Credit balance remaining after this request.

Error response

4xx / 5xx · application/json

Every failure returns success: false, request_id, and error. See Errors and retries for retry helpers and every error code.

successfalserequired

Always false on error responses.

request_idstringrequired

Unique request identifier, echoed in the x-request-id header.

errorobjectrequired

Structured reason for the failure and retry guidance.

Child fields8 fields
codestringrequired

Machine-readable error code. See Errors and retries.

ValuesUNSAFE_URLHOST_NOT_FOUNDNOT_FOUNDGONELOGIN_REQUIREDUNSUPPORTED_CONTENTSCANNED_PDFBLOCKEDNO_CONTENTTARGET_ERRORTIMEOUTENGINE_FAILEDINSUFFICIENT_CREDITSRATE_LIMITEDINVALID_REQUESTUNAUTHORIZEDACCOUNT_SUSPENDEDROUTE_NOT_FOUNDMETHOD_NOT_ALLOWEDINTERNAL
messagestringrequired

Human- and agent-readable summary.

retryablebooleanrequired

Whether retrying the same request may succeed. Always read this flag on the response rather than assuming from code.

doc_urlstringrequired

Link to this error code's documentation entry.

paramstring

Request field that failed validation on INVALID_REQUEST, when applicable.

required_creditsinteger

Credits required for this request on INSUFFICIENT_CREDITS.

target_statusinteger

HTTP status code returned by the target site, when it answered.

vendorstring

Protection service that refused the page, when identified.

HTTP status codes

StatusCodesMeaning
200SuccessPage or document returned as markdown or json.
400INVALID_REQUESTUNSAFE_URLMalformed JSON, invalid or unknown request field (INVALID_REQUEST), or non-public or disallowed target URL (UNSAFE_URL).
401UNAUTHORIZEDMissing, unknown, or revoked API key (UNAUTHORIZED).
402INSUFFICIENT_CREDITSAccount credit balance cannot cover this request (INSUFFICIENT_CREDITS).
403ACCOUNT_SUSPENDEDThe API key's account is suspended (ACCOUNT_SUSPENDED).
404ROUTE_NOT_FOUNDNOT_FOUNDTarget page does not exist (NOT_FOUND), or request path is not /v1/scrape (ROUTE_NOT_FOUND).
405METHOD_NOT_ALLOWEDHTTP method is not allowed on this route (METHOD_NOT_ALLOWED).
408TIMEOUTRequest reached its timeout deadline before finishing (TIMEOUT).
410GONETarget site reports the page has been permanently removed (GONE).
422HOST_NOT_FOUNDLOGIN_REQUIREDUNSUPPORTED_CONTENTSCANNED_PDFBLOCKEDNO_CONTENTTARGET_ERRORRequest was valid but the target could not produce usable content: BLOCKED, NO_CONTENT, HOST_NOT_FOUND, LOGIN_REQUIRED, UNSUPPORTED_CONTENT, SCANNED_PDF, or TARGET_ERROR.
429RATE_LIMITEDRate limit, concurrency limit, or temporary service load reached (RATE_LIMITED).
500ENGINE_FAILEDINTERNALService-side failure (ENGINE_FAILED or INTERNAL). Nothing was charged.
POST

/v1/scrape

Sends a live request from your browser (key stays in memory only). No key yet? Try 10 pages in the web playground.

esc
↑↓navigate↵openescclose
API Reference