Get list of visitors with summary information
Changed onRequest
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP bearer
Query parameters
Start date in format YYYY-MM-DD HH:MM:SS
End date in format YYYY-MM-DD HH:MM:SS
Project ID or slug
Environment ID (optional)
Include crawlers (default: false)
Maximum number of visitors to return (default: 50)
Number of visitors to skip (default: 0)
Filter to only include visitors with recorded activity (events/sessions). When true, excludes ghost visitors (default: true)
Geolocation country
Geolocation region
Geolocation city
First-touch channel
First-touch referrer hostname (use 'Direct' for null)
User id set by identify(): the same user on every device
Response
Successfully retrieved visitors
Example response
{
"visitors": [
{
"first_seen": "2024-01-01T00:00:00",
"last_seen": "2024-01-01T00:00:00"
}
]
}Changes
- breaking
the response property
visitors/items/environment_idbecame nullable for the status - breaking
the response property
visitors/items/environment_idbecame optional for the status
- breaking
- info
added the optional property
visitors/items/browserto the response with the status
3 more changes in this revision
- info