Skip to main content

Fetching Cookies for a Site

To retrieve the cookies associated with a specific site, send a GET request to the following endpoint:

https://api.platform.illow.io/open-api/v1/cookies/{siteId}
info

Replace {SITE_ID} with the actual site ID obtained previously.

This endpoint requires the following query parameters:

Query Parameters

PropertyTypeDescription
siteIdstringThe unique ID assigned to your site

Response

The API will provide one of the following HTTP status codes:

  • 200: Successfully retrieved the company site information along with its list of cookies.

Response Format: JSON

PropertyTypeDescription
companyIdstringUnique identifier for the company.
deletedbooleanIndicates whether the company is deleted.
domainstringThe domain associated with the company.
siteIdstringThe unique identifier for the site.
rescanPendingbooleanIndicates if a rescan is pending.
timestampnumber (Unix Timestamp)The timestamp when the cookie was modified or created.
pageViewsReachedbooleanIndicates if page views were reached.
cookiesArray of cookiesAn array of cookies associated with the company site.
  • 404: Site not found.
  • 500: Internal server error. The request has failed.

Example

The following example illustrates a successful response from a GET request for the specified site:

{
"companyId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"deleted": false,
"domain": "example.com",
"siteId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"rescanPending": true,
"cookies": [
{
"name": "CONSENT",
"domain": "youtube.com",
"expires": 9600,
"category": "Unclassified",
"description": "This cookie is used to store user consent preferences on YouTube.",
"isOptIn": false,
"wildcardMatch": false
}
],
"timestamp": 1693497897424,
"pageViewsReached": false
}