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
Property | Type | Description |
---|---|---|
siteId | string | The 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
Property | Type | Description |
---|---|---|
companyId | string | Unique identifier for the company. |
deleted | boolean | Indicates whether the company is deleted. |
domain | string | The domain associated with the company. |
siteId | string | The unique identifier for the site. |
rescanPending | boolean | Indicates if a rescan is pending. |
timestamp | number (Unix Timestamp) | The timestamp when the cookie was modified or created. |
pageViewsReached | boolean | Indicates if page views were reached. |
cookies | Array of cookies | An 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
}