Cookies
⚠️ Endpoint is not yet implemented. Coming soon.
GET
Retrieve cookies. The query has the following shape:
Request
[ { "account_id": "<string>", "website_id": "<string>" }]At least 1 object with the field account_id and website_id is required. Once the query is constructed, pass the URL encoded value in the query string parameter query.
Paging
All GET requests are subject to paging, please refer to Result Paging for details.
Response
The response has the following shape:
{ "results": [], "errors": [], "scrolling": {}}The results will contain zero or more of the following objects:
{ "account_id": "<string>", "category": "<enum{'unclassified', 'essential', 'performance', 'analytics;', 'advertising', 'social_networking'}>", "country": "<string>", "domain": "<string>", "de": "<string>", "en_uk": "<string>", "en_us": "<string>", "lifetime": "<string>", "fr": "<string>", "id": "<string>", "initiator": "<string>", "name": "<string>", "new": "<bool>", "party_provider_type": "<string>", "service": "<string>", "service_policy_link": "<string>", "source": "<string>", "tracker_type": "<enum{'http_cookie', 'html_local_storage', 'html_session_storage', 'server_cookie', 'pixel_tracker', 'indexed_db'}>", "url": "<string>", "value": "<string>", "website_id": "<string>"}account_idis the unique identifier of the accountcategoryis the cookie categorycountryis the country that sourced the cookie, based on a geoip lookupdomainis the domain of the cookiedeis the description in Germanen_ukis the description in UK Englishen_usis the description in US Englishlifetimeis the length of time in seconds before the cookie is deleted from the browserfris the description in Frenchidis the unique identifier of the cookieinitiatoris the url that sourced the cookienameis the name of the cookienewis a flag indicating whether the cookie was found on the most recent scanparty_provider_typeis this a first-party or third-party cookieserviceis a value indicating the service that soured the cookieservice_policy_linkis a link to the service policy of the websitesourceis the source of the cookietracker_typeis one ofhttp_cookie,html_local_storage,html_session_storage,server_cookie,pixel_tracker,indexed_dburlis the url of the cookievalueis the cookie valuewebsite_idis the unique identifier of the website
Example 1
Get one cookie.
Request
GET https://api.termly.io/v1/websites/cookies?query=%5B%0A%20%20%7B%0A%20%20%20%20%22account_id%22%3A%20%22acct_1234%22%2C%0A%20%20%20%20%22website_id%22%3A%20%22web_1234%22%0A%20%20%7D%20%0A%5D
Query
[ { "account_id": "acct_1234", "website_id": "web_1234" }]Response
{ "results": [ { "account_id": "acct_1234", "category": null, "country": "United States", "domain": "https://example.com", "de": null, "en_uk": null, "en_us": "Tracks the widget", "lifetime": "12345", "fr": null, "id": "ck_1234", "initiator": null, "name": "ACME Tracker", "new": false, "party_provider_type": "third_party", "service": null, "service_policy_link": null, "source": null, "tracker_type": "http_cookie", "url": "https://example.com/cisforcookie", "value": "that's good enough for me", "website_id": "web_1234" } ], "errors": [], "paging": { "next_results": null, "previous_results": null }}Example 2
Get multiple cookies.
Request
GET https://api.termly.io/v1/websites/cookies?query=%5B%0A%20%20%7B%0A%20%20%20%20%22account_id%22%3A%20%22acct_1234%22%2C%0A%20%20%20%20%22website_id%22%3A%20%22web_1234%22%0A%20%20%7D%2C%20%0A%20%20%7B%0A%20%20%20%20%22account_id%22%3A%20%22acct_1234%22%2C%0A%20%20%20%20%22website_id%22%3A%20%22web_5678%22%0A%20%20%7D%20%0A%5D%0A
Query
[ { "account_id": "acct_1234", "website_id": "web_1234" }, { "account_id": "acct_1234", "website_id": "web_5678" }]Response
{ "results": [ { "account_id": "acct_1234", "category": null, "country": "United States", "domain": "https://example.com", "de": null, "en_uk": null, "en_us": "Tracks the widget", "lifetime": "12345", "fr": null, "id": "ck_1234", "initiator": null, "name": "ACME Tracker", "new": false, "party_provider_type": "third_party", "service": null, "service_policy_link": null, "source": null, "tracker_type": "http_cookie", "url": "https://example.com/cisforcookie", "value": "that's good enough for me", "website_id": "web_1234" }, { "account_id": "acct_1234", "category": null, "country": "United States", "domain": "https://example.com", "de": null, "en_uk": null, "en_us": "Tracks the widget", "lifetime": "12345", "fr": null, "id": "ck_1234", "initiator": null, "name": "ACME Tracker", "new": false, "party_provider_type": "third_party", "service": null, "service_policy_link": null, "source": null, "tracker_type": "http_cookie", "url": "https://example.com/cisforcookie", "value": "that's good enough for me", "website_id": "web_5678" } ], "errors": [], "paging": { "next_results": null, "previous_results": null }}Example 3
Get multiple cookies, one is not found.
Request
GET https://api.termly.io/v1/websites/cookies?query=%5B%0A%20%20%7B%0A%20%20%20%20%22account_id%22%3A%20%22acct_1234%22%2C%0A%20%20%20%20%22website_id%22%3A%20%22web_1234%22%0A%20%20%7D%2C%20%0A%20%20%7B%0A%20%20%20%20%22account_id%22%3A%20%22acct_1234%22%2C%0A%20%20%20%20%22website_id%22%3A%20%22web_5678%22%0A%20%20%7D%20%0A%5D
Query
[ { "account_id": "acct_1234", "website_id": "web_1234" }, { "account_id": "acct_1234", "website_id": "web_5678" }]Response
{ "results": [ { "account_id": "acct_1234", "category": null, "country": "United States", "domain": "https://example.com", "de": null, "en_uk": null, "en_us": "Tracks the widget", "lifetime": "12345", "fr": null, "id": "ck_1234", "initiator": null, "name": "ACME Tracker", "new": false, "party_provider_type": "third_party", "service": null, "service_policy_link": null, "source": null, "tracker_type": "http_cookie", "url": "https://example.com/cisforcookie", "value": "that's good enough for me", "website_id": "web_1234" } ], "errors": [ { "error": "object_not_found", "_idx": 1 } ], "paging": { "next_results": null, "previous_results": null }}