Usage
‘s browser service navigates intelligently on your behalf, rendering JavaScript, solving CAPTCHAs, and retrying failed requests. The service has a RESTful interface that acceptsGET requests at
https:///browser.
Webpages can be localized with geotargeting parameters. They’re
retrieved in real time by default or optionally queued for subsequent
retrieval. Up to 2 minutes is allotted per real-time API call to accommodate
CAPTCHA-solving, multiple retries, and other mitigations.
Authentication
You can access the service by including your secret API token in anAuthorization header:
Browsing parameters
Besides the geotargeting and scheduling parameters linked above, required and optional browsing parameters can be added in a standard query string. The keys and values supports are as follows:| Key | Required | Value |
|---|---|---|
url | ✅ | The URL of the page to browse; any unsafe characters require URL encoding |
difficulty | ⬜ | The difficulty pool to attempt to access the page from, high (coming soon), medium, or low; low is the default difficulty pool |
device | ⬜ | The name as returned by the devices endpoint of the device to emulate browsing on (these names are case insensitive but must include form- or URL-encoded spaces and punctuation marks); device emulation is unused by default |
ip | ⬜ | The type of IP address to browse from, residential, isp, or datacenter (coming soon); residential is the default IP type |
format | ⬜ | The HTML format to output to, rendered or raw (see the section below); rendered is the default format |
expiration | ⬜ | The maximum age of cached content in days to accept, where 0 will disable caching; 1 is the default number of days |
delay | ⬜ | The number of seconds to inject before snapshotting the browsed content, from .1 to 10 inclusive; no delay is injected by default |
subaccount | ⬜ | Any unique identifier of up to 255 characters (regardless of character encoding); will bill calls made from subaccounts separately |
Device emulation
Thedevice parameter lets you fetch device-specific content, rather than the default desktop
content. For a list of supported smartphone and tablet devices, make a request with your API token
and no parameters to https:///browser/devices:
Sticky sessions
To reuse a browser session across requests, set a cookie namedsession:

