Custom Cookies
Add your own cookies to BrowserAPI and receive customised responses.
Custom cookies are an extremely powerful feature of BrowserAPI. For example, they can be successfully used to scrape personalized content on a e-commerce site.
BrowserAPI does not allow the use of custom cookies for authentication purposes.
Only the following cookies can be overwritten:
ADSHUFFLER
AWSALB
AWSALBCORS
AWSALBTG
AWSALBTGCORS
CF_CLEARANCE
CONSENT
CUSTOMER_CONTEXT
LANG
REF
REMOVAL
VISITS
VISIT_COUNT
Additional cookies may be added per domain by contacting our support.
Custom Cookies Example
When using JavaScript rendering, custom cookies should be passed in a list in the cookies
parameter. Each cookie object will have 3 properties: name, value and domain. Here is an example:
And this is the URL encoded value from the example above:
Warning! Please make sure that you passed the correct domain value in the cookie objects. We used "domain":"httpbin.org"
in the examples below because we want those cookies to be set on the httpbin.org domain.
Integration Examples
Important! The url
parameter has to be encoded.
( i.e. &url=https%3A%2F%2Fwww.webscrapingapi.com%2F )
Last updated