GET
/
pageviews
curl --request GET \
  --url https://cookiechimp.com/api/v1/pageviews \
  --header 'X-API-KEY: <api-key>'
{
  "data": [
    {
      "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"
    }
  ],
  "pagination": {
    "total": 100,
    "limit": 20,
    "offset": 0
  }
}

Authorizations

X-API-KEY
string
headerrequired

Query Parameters

limit
integer
default: 20

Number of resources to return

offset
integer
default: 0

Number of resources to skip

sort
string

Field to sort by

order
enum<string>

Sort order

Available options:
asc,
desc
session_id
string

ID of the session to filter by

user_id
string

ID of the user to filter by

consent_id
string

ID of the consent to filter by

url
string

URL of the pageview to filter by

Response

200 - application/json
data
object[]
pagination
object