GET
/
pageviews
/
{id}
curl --request GET \
  --url https://cookiechimp.com/api/v1/pageviews/{id} \
  --header 'X-API-KEY: <api-key>'
{
  "id": "pageview890",
  "session_id": "sess123",
  "url": "https://www.example.com/products/123",
  "consent_id": "consent321",
  "active_cookies": [
    "essential-cookie-1",
    "cookie1",
    "cookie2"
  ],
  "created_at": "2023-01-20T12:50:00Z"
}

Authorizations

X-API-KEY
string
headerrequired

Path Parameters

id
string
required

ID of the resource

Response

200 - application/json
id
string

Unique identifier for the pageview

session_id
string

ID of the session

url
string

URL of the pageview

consent_id
string | null

If the user has given consent, the ID of the consent that is associated with the pageview

active_cookies
string[]

List of active cookies in the pageview

created_at
string

Date and time when the pageview was created