Skip to main content
Version: v2

Custom cookies

Cookies usage via ScrapingAnt API to send them as a parameter.

Request

You can send custom cookies to the target webpages. ScrapingAnt API only handles the name and value of custom cookies. If you want to set multiple cookies separate them with ;.

Cookies should be provided using the following format: cookie_name1=cookie_value1;cookie_name2=cookie_value2

Don't forget to urlencode cookies param, so for example above it will look like the following:

?url=...&cookies=cookie_name1%3Dcookie_value1%3Bcookie_name2%3Dcookie_value2
tip

We're highly recommending chaining the scraping requests with a cookies.

For example: to grab the cookies from the main/landing page of the target site and then pass those cookies while scraping of other pages.

Response

The response will contain cookies from the target website without any changes. Also, cookies can be received using JSON response endpoint.