Skip to main content
POST
Scrape a webpage with custom options

Authorizations

x-api-key
string
header
required

API Key required for all endpoints

Body

application/json
url
string
required

Target URL

Example:

"https://example.com"

device
enum<string>
default:desktop

Device type to emulate. Defaults to desktop.

Available options:
desktop,
mobile
Example:

"desktop"

blockAds
boolean
default:true

Whether to block ads

Example:

true

renderJS
boolean
default:true

Whether to render JavaScript

Example:

true

proxyCountry
string

Proxy country code to route the request

Example:

"us"

format
enum<string>[]

Format(s) of the scraped result. Comma-separated or array. Defaults to html.

Available options:
html,
markdown,
json,
markdown-llm,
html-llm,
text,
text-llm
Example:

"html,markdown"

fileOutput
boolean
default:false

Whether to get response in file format

Example:

false

stealth
boolean
default:false

Enable stealth mode to bypass basic bot detection (removes webdriver signals, patches navigator properties)

Example:

false

waitTime
number
default:0

Seconds to wait after page load before capturing content. Helps bypass lazy-loaded content and bot checks.

Example:

2.5

extractionMode
enum<string>
default:default

Extraction mode (only used if format=json)

Available options:
default,
cssSchema,
xpathSchema
Example:

"default"

extractionSchema
object

Extraction schema (optional in default mode, required in css/xpath)

aiPrompt
object

Ask AI to extract or analyze the scraped page. Always runs against the Markdown of the page regardless of the format field. Adds +6 credits on top of the base scraping cost.

Response

Successfully scraped webpage

timestamp
number
required

Timestamp of the request in milliseconds

Example:

1783943217189

apiStatus
enum<string>
required

API status message

Available options:
success,
failure
Example:

"success"

apiCode
number
required

API status code

Example:

200

meta
object
required

Metadata about the request

data
required

Scraped data (URL or inline content depending on output)

Example:

"https://example.com/9bulgk075ed9m3vhua5vcrp0.html"

aiResult
object

AI extraction/analysis result. Shape depends on aiPrompt.type. Omitted when aiPrompt was not provided.