Export a visitor’s data
Everything held about one visitor, as JSON, for a privacy access request: identity, sessions, raw events, and payments, customer rows and subscriptions linked to the visitor or its identified email. Needs the admin role and an access token with visitors:write.
Related: Identify a visitor from your server and List visitors in Visitors.
Request
Path parameters
websitestringrequiredWebsite id or domain, e.g. example.com
1–253 characters
visitorIdstringrequired1–64 characters
Headers
AuthorizationstringrequiredBearer followed by an account token or an OAuth access token with the visitors:write scope.
Response
The visitor’s data.
{
"status": "string",
"data": {
"exportedAt": "2026-01-01T00:00:00.000Z",
"website": {
"id": "string",
"domain": "string"
},
"visitor": {
"id": "string",
"siteId": "string",
"visitorId": "string",
"firstSeenAt": "2026-01-01T00:00:00.000Z",
"lastSeenAt": "2026-01-01T00:00:00.000Z",
"identity": {
"userId": "string",
"name": "string",
"email": "string",
"image": "string",
"properties": "string",
"identifiedAt": "2026-01-01T00:00:00.000Z",
"verified": {
"userId": "string",
"email": "string",
"at": "2026-01-01T00:00:00.000Z"
}
},
"firstTouch": {
"channel": "direct",
"source": "string",
"referrer": "string",
"referrerHost": "string",
"utmSource": "string",
"utmMedium": "string",
"utmCampaign": "string",
"utmTerm": "string",
"utmContent": "string",
"ref": "string",
"landingPage": "string",
"clickIds": "string"
},
"geo": {
"country": "string",
"region": "string",
"city": "string"
},
"device": {
"browser": "string",
"browserVersion": "string",
"os": "string",
"osVersion": "string",
"device": "desktop"
},
"totals": {
"sessions": 0,
"pageviews": 0,
"goals": 0,
"payments": "string",
"revenue": "string"
}
},
"sessions": [
{
"id": "string",
"siteId": "string",
"sessionId": "string",
"visitorId": "string",
"startedAt": "2026-01-01T00:00:00.000Z",
"lastActivityAt": "2026-01-01T00:00:00.000Z",
"durationSec": 0,
"pageviews": 0,
"isBounce": true,
"entryPage": "string",
"exitPage": "string",
"hostname": "string",
"visitNumber": 0,
"attribution": {
"channel": "direct",
"source": "string",
"referrer": "string",
"referrerHost": "string",
"utmSource": "string",
"utmMedium": "string",
"utmCampaign": "string",
"utmTerm": "string",
"utmContent": "string",
"ref": "string",
"landingPage": "string",
"clickIds": "string"
},
"geo": {
"country": "string",
"region": "string",
"city": "string"
},
"device": {
"browser": "string",
"browserVersion": "string",
"os": "string",
"osVersion": "string",
"device": "desktop"
},
"revenue": "string",
"recording": {
"url": "string",
"offsetSec": 0
}
}
],
"events": [],
"eventsTruncated": true,
"payments": [],
"customers": [],
"subscriptions": []
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.exportedAt | string (date-time) | |
| data.website | object | |
| data.website.id | string | |
| data.website.domain | string | |
| data.visitor | object | |
| data.visitor.id | string | |
| data.visitor.siteId | string | |
| data.visitor.visitorId | string | |
| data.visitor.firstSeenAt | string (date-time) | |
| data.visitor.lastSeenAt | string (date-time) | |
| data.visitor.identity | object | null | null | |
| data.visitor.identity.userId | string | null | null | |
| data.visitor.identity.name | string | null | null | |
| data.visitor.identity.email | string | null | null | |
| data.visitor.identity.image | string | null | null | |
| data.visitor.identity.properties | object<string, string> | |
| data.visitor.identity.identifiedAt | string (date-time) | null | null | |
| data.visitor.identity.verified | object | null | null | |
| data.visitor.identity.verified.userId | string | null | null | |
| data.visitor.identity.verified.email | string | null | null | |
| data.visitor.identity.verified.at | string (date-time) | |
| data.visitor.firstTouch | object | null | null | |
| data.visitor.firstTouch.channel | string | null | null | |
| data.visitor.firstTouch.source | string | null | null | |
| data.visitor.firstTouch.referrer | string | null | null | |
| data.visitor.firstTouch.referrerHost | string | null | null | |
| data.visitor.firstTouch.utmSource | string | null | null | |
| data.visitor.firstTouch.utmMedium | string | null | null | |
| data.visitor.firstTouch.utmCampaign | string | null | null | |
| data.visitor.firstTouch.utmTerm | string | null | null | |
| data.visitor.firstTouch.utmContent | string | null | null | |
| data.visitor.firstTouch.ref | string | null | null | |
| data.visitor.firstTouch.landingPage | string | null | null | |
| data.visitor.firstTouch.clickIds | object<string, string> | |
| data.visitor.geo | object | |
| data.visitor.geo.country | string | null | null | |
| data.visitor.geo.region | string | null | null | |
| data.visitor.geo.city | string | null | null | |
| data.visitor.device | object | |
| data.visitor.device.browser | string | null | null | |
| data.visitor.device.browserVersion | string | null | null | |
| data.visitor.device.os | string | null | null | |
| data.visitor.device.osVersion | string | null | null | |
| data.visitor.device.device | string | null | null | |
| data.visitor.totals | object | |
| data.visitor.totals.sessions | integer | |
| data.visitor.totals.pageviews | integer | |
| data.visitor.totals.goals | integer | |
| data.visitor.totals.payments | integer | null | null | |
| data.visitor.totals.revenue | integer | null | null | |
| data.sessions | object[] | |
| data.sessions[].id | string | |
| data.sessions[].siteId | string | |
| data.sessions[].sessionId | string | |
| data.sessions[].visitorId | string | |
| data.sessions[].startedAt | string (date-time) | |
| data.sessions[].lastActivityAt | string (date-time) | |
| data.sessions[].durationSec | integer | |
| data.sessions[].pageviews | integer | |
| data.sessions[].isBounce | boolean | |
| data.sessions[].entryPage | string | null | null | |
| data.sessions[].exitPage | string | null | null | |
| data.sessions[].hostname | string | null | null | |
| data.sessions[].visitNumber | integer | |
| data.sessions[].attribution | object | |
| data.sessions[].attribution.channel | string | null | null | |
| data.sessions[].attribution.source | string | null | null | |
| data.sessions[].attribution.referrer | string | null | null | |
| data.sessions[].attribution.referrerHost | string | null | null | |
| data.sessions[].attribution.utmSource | string | null | null | |
| data.sessions[].attribution.utmMedium | string | null | null | |
| data.sessions[].attribution.utmCampaign | string | null | null | |
| data.sessions[].attribution.utmTerm | string | null | null | |
| data.sessions[].attribution.utmContent | string | null | null | |
| data.sessions[].attribution.ref | string | null | null | |
| data.sessions[].attribution.landingPage | string | null | null | |
| data.sessions[].attribution.clickIds | object<string, string> | |
| data.sessions[].geo | object | |
| data.sessions[].geo.country | string | null | null | |
| data.sessions[].geo.region | string | null | null | |
| data.sessions[].geo.city | string | null | null | |
| data.sessions[].device | object | |
| data.sessions[].device.browser | string | null | null | |
| data.sessions[].device.browserVersion | string | null | null | |
| data.sessions[].device.os | string | null | null | |
| data.sessions[].device.osVersion | string | null | null | |
| data.sessions[].device.device | string | null | null | |
| data.sessions[].revenue | integer | null | null | |
| data.sessions[].recording | object | null | null | |
| data.sessions[].recording.url | string | |
| data.sessions[].recording.offsetSec | integer | |
| data.events | (object<string, any>)[] | |
| data.eventsTruncated | boolean | |
| data.payments | (object<string, any>)[] | |
| data.customers | (object<string, any>)[] | |
| data.subscriptions | (object<string, any>)[] |