Get a visitor
One visitor profile: identity, totals, first touch, recent sessions, goals completed and payments.
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 a site key, an account token or an OAuth access token with the analytics:read scope.
Response
The visitor.
{
"status": "string",
"data": {
"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"
},
"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"
}
},
"currency": "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
}
}
],
"goals": [
{
"name": "string",
"label": "string",
"count": 0,
"lastAt": "2026-01-01T00:00:00.000Z"
}
],
"payments": [
{
"id": "string",
"siteId": "string",
"provider": "stripe",
"transactionId": "string",
"type": "new",
"amount": 0,
"currency": "string",
"convertedAmount": "string",
"convertedCurrency": "string",
"exchangeRate": "string",
"conversion": "converted",
"conversionError": "string",
"customerId": "string",
"customerExternalId": "string",
"email": "string",
"customerName": "string",
"visitorId": "string",
"sessionId": "string",
"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"
},
"attributionModel": "last_touch",
"matchedBy": "metadata_visitor",
"integrationId": "string",
"subscriptionId": "string",
"originalTransactionId": "string",
"unverified": true,
"paidAt": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z",
"recording": {
"url": "string",
"offsetSec": 0
}
}
]
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| 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.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.currency | string | |
| 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.goals | object[] | |
| data.goals[].name | string | |
| data.goals[].label | string | null | null | |
| data.goals[].count | integer | |
| data.goals[].lastAt | string (date-time) | |
| data.payments | object[] | |
| data.payments[].id | string | |
| data.payments[].siteId | string | |
| data.payments[].provider | string | |
| data.payments[].transactionId | string | |
| data.payments[].type | string | |
| data.payments[].amount | integer | |
| data.payments[].currency | string | |
| data.payments[].convertedAmount | integer | null | null | |
| data.payments[].convertedCurrency | string | |
| data.payments[].exchangeRate | number | null | null | |
| data.payments[].conversion | string | |
| data.payments[].conversionError | string | null | null | |
| data.payments[].customerId | string | null | null | |
| data.payments[].customerExternalId | string | null | null | |
| data.payments[].email | string | null | null | |
| data.payments[].customerName | string | null | null | |
| data.payments[].visitorId | string | null | null | |
| data.payments[].sessionId | string | null | null | |
| data.payments[].attribution | object | null | null | |
| data.payments[].attribution.channel | string | null | null | |
| data.payments[].attribution.source | string | null | null | |
| data.payments[].attribution.referrer | string | null | null | |
| data.payments[].attribution.referrerHost | string | null | null | |
| data.payments[].attribution.utmSource | string | null | null | |
| data.payments[].attribution.utmMedium | string | null | null | |
| data.payments[].attribution.utmCampaign | string | null | null | |
| data.payments[].attribution.utmTerm | string | null | null | |
| data.payments[].attribution.utmContent | string | null | null | |
| data.payments[].attribution.ref | string | null | null | |
| data.payments[].attribution.landingPage | string | null | null | |
| data.payments[].attribution.clickIds | object<string, string> | |
| data.payments[].attributionModel | string | null | null | |
| data.payments[].matchedBy | string | null | null | |
| data.payments[].integrationId | string | null | null | |
| data.payments[].subscriptionId | string | null | null | |
| data.payments[].originalTransactionId | string | null | null | |
| data.payments[].unverified | boolean | |
| data.payments[].paidAt | string (date-time) | |
| data.payments[].createdAt | string (date-time) | |
| data.payments[].recording | object | null | null | |
| data.payments[].recording.url | string | |
| data.payments[].recording.offsetSec | integer |