Cookie details can be extracted through the Cookiebot data API by calling this URL:
https://consent.cookiebot.com/api/v1/{apikey}/json/domaingroup/{serial}/{culture}/domain/{domain}/cookies
{apikey}
The API key for your Cookiebot account is available in the Cookiebot Manager, under Settings on the Your scripts tab
{culture}
The ISO 639-1 language code matching one of the language variants created on the domain group.
If no matching culture exists in the domain group, the default language will be used.
Set to "default" if no specific culture is required.
{serial}
Domain Group ID, available in the Cookiebot Manager, under Settings on the Your scripts tab
{domain}
Domain name as registered in Cookiebot
A successful request will return a response with the following data:
{
"domain": "www.domain.com",
"urlpath": "/",
"utcscandate": "2022-03-03T09:45:00.5030000Z",
"culture": "en",
"cookies": [
{
"Name": "CookieConsent",
"NamePattern": "",
"Provider": "www.domain.com",
"Path": "/",
"Value": "{stamp:%27-1%27%2Cnecessary:true%2Cpreferences:true%2Cstatistics:true%2Cmarketing:true%2Cver:2147483647%2Cutc:1646127963403}",
"HTTPOnly": "0",
"Secure": "0",
"ThirdParty": "0",
"Persistent": "1",
"ExpireSeconds": "15897668",
"ExpireDays": "184",
"ExpireDescription": "6 months",
"TrackerTypeID": "1",
"TrackerTypeAbbr": "HTTP",
"TrackerTypeName": "HTTP Cookie",
"Category": "1",
"PurposeDescription": "Stores the user's cookie consent state for the current domain",
"FirstURL": "https://www.domain.com/",
"Initiator": "https://consent.cookiebot.eu/uc.js",
"InitiatorSource": "https://consent.cookiebot.eu/uc.js",
"InitiatorCodeBlockBegin": "39",
"InitiatorCodeBlockEnd": "39",
"InitiatorCodeLineSpecific": "39",
"InitiatorSourceDomain": "cookiebot.eu",
"InitiatorSourceDomainIP": "15.197.142.173",
"InitiatorSourceDomainCountryID": "ie",
"InitiatorSourceDomainCountryName": "Ireland",
"GDPRAdequateCountry": "1",
"PriorConsentEnabled": "1"
}
]
}- Domain
- Urlpath
- UtcScandate
- Culture
and for each cookie found in the scan:
- Name
- NamePattern
- Provider
- Path
- Value
- HTTPOnly
- Secure
- ThirdParty
- Persistent
- ExpireSeconds
- ExpireDays
- ExpireDescription
- TrackerTypeID
- TrackerTypeAbbr
- TrackerTypeName
- Category
- PurposeDescription
- FirstURL
- Initiator
- InitiatorSource
- InitiatorCodeBlockBegin
- InitiatorCodeBlockEnd
- InitiatorCodeLineSpecific
- InitiatorSourceDomain
- InitiatorSourceDomainIP
- InitiatorSourceDomainCountryID
- InitiatorSourceDomainCountryName
The data from this call can also be found on the 'Cookies' page in your Cookiebot account and is available for download: Can I download or export the cookie information?
Comments
0 comments
Please sign in to leave a comment.