Skip to content
Website API / Visitors

Get a visitor

GEThttps://<your Reveata origin>/api/v1/websites/{website}/visitors/{visitorId}

One visitor profile: identity, totals, first touch, recent sessions, goals completed and payments.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

visitorIdstringrequired

1–64 characters

Headers

Authorizationstringrequired

Bearer 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

FieldTypeDescription
status"ok"
dataobject
data.visitorobject
data.visitor.idstring
data.visitor.siteIdstring
data.visitor.visitorIdstring
data.visitor.firstSeenAtstring (date-time)
data.visitor.lastSeenAtstring (date-time)
data.visitor.identityobject | null | null
data.visitor.identity.userIdstring | null | null
data.visitor.identity.namestring | null | null
data.visitor.identity.emailstring | null | null
data.visitor.identity.imagestring | null | null
data.visitor.identity.propertiesobject<string, string>
data.visitor.firstTouchobject | null | null
data.visitor.firstTouch.channelstring | null | null
data.visitor.firstTouch.sourcestring | null | null
data.visitor.firstTouch.referrerstring | null | null
data.visitor.firstTouch.referrerHoststring | null | null
data.visitor.firstTouch.utmSourcestring | null | null
data.visitor.firstTouch.utmMediumstring | null | null
data.visitor.firstTouch.utmCampaignstring | null | null
data.visitor.firstTouch.utmTermstring | null | null
data.visitor.firstTouch.utmContentstring | null | null
data.visitor.firstTouch.refstring | null | null
data.visitor.firstTouch.landingPagestring | null | null
data.visitor.firstTouch.clickIdsobject<string, string>
data.visitor.geoobject
data.visitor.geo.countrystring | null | null
data.visitor.geo.regionstring | null | null
data.visitor.geo.citystring | null | null
data.visitor.deviceobject
data.visitor.device.browserstring | null | null
data.visitor.device.browserVersionstring | null | null
data.visitor.device.osstring | null | null
data.visitor.device.osVersionstring | null | null
data.visitor.device.devicestring | null | null
data.visitor.totalsobject
data.visitor.totals.sessionsinteger
data.visitor.totals.pageviewsinteger
data.visitor.totals.goalsinteger
data.visitor.totals.paymentsinteger | null | null
data.visitor.totals.revenueinteger | null | null
data.currencystring
data.sessionsobject[]
data.sessions[].idstring
data.sessions[].siteIdstring
data.sessions[].sessionIdstring
data.sessions[].visitorIdstring
data.sessions[].startedAtstring (date-time)
data.sessions[].lastActivityAtstring (date-time)
data.sessions[].durationSecinteger
data.sessions[].pageviewsinteger
data.sessions[].isBounceboolean
data.sessions[].entryPagestring | null | null
data.sessions[].exitPagestring | null | null
data.sessions[].hostnamestring | null | null
data.sessions[].visitNumberinteger
data.sessions[].attributionobject
data.sessions[].attribution.channelstring | null | null
data.sessions[].attribution.sourcestring | null | null
data.sessions[].attribution.referrerstring | null | null
data.sessions[].attribution.referrerHoststring | null | null
data.sessions[].attribution.utmSourcestring | null | null
data.sessions[].attribution.utmMediumstring | null | null
data.sessions[].attribution.utmCampaignstring | null | null
data.sessions[].attribution.utmTermstring | null | null
data.sessions[].attribution.utmContentstring | null | null
data.sessions[].attribution.refstring | null | null
data.sessions[].attribution.landingPagestring | null | null
data.sessions[].attribution.clickIdsobject<string, string>
data.sessions[].geoobject
data.sessions[].geo.countrystring | null | null
data.sessions[].geo.regionstring | null | null
data.sessions[].geo.citystring | null | null
data.sessions[].deviceobject
data.sessions[].device.browserstring | null | null
data.sessions[].device.browserVersionstring | null | null
data.sessions[].device.osstring | null | null
data.sessions[].device.osVersionstring | null | null
data.sessions[].device.devicestring | null | null
data.sessions[].revenueinteger | null | null
data.sessions[].recordingobject | null | null
data.sessions[].recording.urlstring
data.sessions[].recording.offsetSecinteger
data.goalsobject[]
data.goals[].namestring
data.goals[].labelstring | null | null
data.goals[].countinteger
data.goals[].lastAtstring (date-time)
data.paymentsobject[]
data.payments[].idstring
data.payments[].siteIdstring
data.payments[].providerstring
data.payments[].transactionIdstring
data.payments[].typestring
data.payments[].amountinteger
data.payments[].currencystring
data.payments[].convertedAmountinteger | null | null
data.payments[].convertedCurrencystring
data.payments[].exchangeRatenumber | null | null
data.payments[].conversionstring
data.payments[].conversionErrorstring | null | null
data.payments[].customerIdstring | null | null
data.payments[].customerExternalIdstring | null | null
data.payments[].emailstring | null | null
data.payments[].customerNamestring | null | null
data.payments[].visitorIdstring | null | null
data.payments[].sessionIdstring | null | null
data.payments[].attributionobject | null | null
data.payments[].attribution.channelstring | null | null
data.payments[].attribution.sourcestring | null | null
data.payments[].attribution.referrerstring | null | null
data.payments[].attribution.referrerHoststring | null | null
data.payments[].attribution.utmSourcestring | null | null
data.payments[].attribution.utmMediumstring | null | null
data.payments[].attribution.utmCampaignstring | null | null
data.payments[].attribution.utmTermstring | null | null
data.payments[].attribution.utmContentstring | null | null
data.payments[].attribution.refstring | null | null
data.payments[].attribution.landingPagestring | null | null
data.payments[].attribution.clickIdsobject<string, string>
data.payments[].attributionModelstring | null | null
data.payments[].matchedBystring | null | null
data.payments[].integrationIdstring | null | null
data.payments[].subscriptionIdstring | null | null
data.payments[].originalTransactionIdstring | null | null
data.payments[].unverifiedboolean
data.payments[].paidAtstring (date-time)
data.payments[].createdAtstring (date-time)
data.payments[].recordingobject | null | null
data.payments[].recording.urlstring
data.payments[].recording.offsetSecinteger