Skip to main content
POST
/
v1
/
fetch
Fetch a Page
curl --request POST \
  --url https://api.browserbase.com/v1/fetch \
  --header 'Content-Type: application/json' \
  --header 'X-BB-API-Key: <api-key>' \
  --data '
{
  "url": "<string>",
  "allowRedirects": false,
  "allowInsecureSsl": false,
  "proxies": false
}
'
{
  "id": "<string>",
  "statusCode": 123,
  "headers": {},
  "content": "<string>",
  "contentType": "<string>",
  "encoding": "<string>"
}

Authorizations

X-BB-API-Key
string
header
required

Body

application/json
url
string<uri>
required

The URL to fetch

allowRedirects
boolean
default:false

Whether to follow HTTP redirects

allowInsecureSsl
boolean
default:false

Whether to bypass TLS certificate verification

proxies
boolean
default:false

Whether to enable proxy support for the request

Response

The request has succeeded.

id
string
required

Unique identifier for the fetch request

statusCode
integer
required

HTTP status code of the fetched response

headers
object
required

Response headers as key-value pairs

content
string
required

The response body content

contentType
string
required

The MIME type of the response

encoding
string
required

The character encoding of the response