POST
cURL
Read one page in the formats you choose. For a guide with examples, see Scrape. To capture a page as an image, ask for the screenshot format: see Screenshot.

Authorizations

Authorization
string
header
required

Your API key from the dashboard. It starts with sr-.

Body

application/json
url
string
required

The page to read.

Example:

"https://example.com"

formats
(enum<string> | Screenshot · object | JSON · object | Question · object | Highlights · object)[]

The formats to return. Defaults to Markdown.

An output format: a name, or an object for the formats that take settings.

Available options:
markdown,
summary,
html,
rawHtml,
links,
images,
screenshot,
branding
onlyMainContent
boolean
default:true

Leave out the parts of the page around its main content. On by default.

includeTags
string[]

Only keep these elements: tag names, classes or ids, like h1, .article or #main.

excludeTags
string[]

Drop these elements: tag names, classes or ids.

waitFor
integer

Extra time to wait after the page loads, in milliseconds.

timeout
integer

How long the page may take, in milliseconds.

mobile
boolean

Load the page as a phone would.

location
object

Load the page from this country.

maxAge
integer

Accept a cached copy of the page up to this old, in milliseconds. 0 always loads a fresh copy.

headers
object

Extra HTTP headers to send to the page.

blockAds
boolean

Hide ads and cookie banners before the page is read.

actions
object[]

Browser steps to run before the page is read, such as wait, click and screenshot.

Response

The page, in the formats you asked for.

success
boolean
Example:

true

data
object

One page. Only the formats you asked for are present.

creditsUsed
integer

What this request cost.

warning
string