Skip to main content
GET
Cookies

Cookies

Read cookies out of a live browser session or load cookies into one. Useful for persisting login state across sessions or seeding a session from a saved profile.

Export Cookies

GET /v1/sessions/{id}/cookies?format=json|netscape
string
default:"json"
json returns a JSON array of cookie objects. netscape returns a Netscape-format cookies.txt body (Content-Type: text/plain).
Response (format=json)

Import Cookies

POST /v1/sessions/{id}/cookies/import
string
required
Serialized cookie data (a JSON array string, or Netscape cookies.txt content).
string
default:"json"
json or netscape.
boolean
default:"false"
When true, imported cookies are merged with the cookies already in the browser instead of being applied standalone.
Response

Errors