Skip to main content

Cookies

Our API provides extended Cookies support for reCAPTCHA V2.

You can provide your cookies using the format below as the value of json_cookies parameter. We will set the cookies on our OCR server's browser.

After the captcha was solved succesfully, we will return all the cookies set for domains: google.com and the domain of your target website from pageurl parameter value.

You should use json=1 parameter in your request to res.php endpoint to get the cookies.

Cookies format:

    {
"json_cookies": [
{
"name": "my-cookie-name-1",
"value": "my-cookie-val-1",
"domain": "example.com",
"hostOnly": true,
"path": "\/",
"secure": true,
"httpOnly": false,
"session": false,
"expirationDate": 1665434653,
"sameSite": "strict"
},
{
"name": "my-cookie-name-2",
"value": "my-cookie-val-2",
"domain": ".google.com",
"hostOnly": false,
"path": "\/",
"secure": true,
"httpOnly": false,
"session": false,
"expirationDate": 1668015805.8028,
"sameSite": "no_restriction"
}
]
}

The following properties are required for each cookie:

  • domain (String) - the domain for cookie
  • name (String) - the cookie name
  • value (String) - the cookie value
  • secure (Boolean) - should we set secure attribute?