Get visitor
GET https://datafa.st/api/v1/visitors/{visitorId}Retrieve the full profile for one visitor: identity, session activity, completed goals, payment events, Identify profile, and conversion prediction. Use the
visitorId returned by List visitors or stored in the datafast_visitor_id cookie.This is the endpoint to call when you need journey context for support, sales, or enrichment — not for bulk exports.
Visitor session metadata is available for normal tracker events collected after the session-count rollout; old or cookieless events may return
null or 0.Request
Path parameters
visitorIdstring
Alias for
datafast_visitor_id on endpoints that accept both names. Visitor UUID from List visitors or the browser cookie.Query parameters
websiteIdstring
Required with a
dft_ account token on Website API routes. Omit with a df_ website key. Example: ?websiteId=665f0b3c4d2e1a0012345678.Example request
GET /api/v1/visitors/a3ab2331-989f-4cfa-91c6-2461c9e3c6bd
Use the UUID from List visitors or the
datafast_visitor_id cookie.Response
Returns a JSON object with
status: "success" and endpoint-specific fields in data (and pagination when the endpoint is paginated).Response fields
data.visitorIdstring
Alias for
datafast_visitor_id on endpoints that accept both names.data.identityobject
Location, browser, operating system, device, viewport, and first-session parameters known for the visitor. Location, browser, OS, device, viewport, params, and ad click IDs.
data.activity.visitCountnumber
Number of visits.
data.activity.visitorFirstSeenAtstring|null
First-seen timestamp from the tracker cookie. Null for old or cookieless events.
data.activity.visitorSessionNumbernumber
Latest all-time session number from the tracker cookie.
1 is new, 2+ is returning. 0 when unavailable.data.activity.visitorTypenew|returning|nullDerived from
visitorSessionNumber. Null when session metadata is unavailable.data.activity.pageViewCountnumber
Number of pageviews.
data.activity.timeSinceFirstVisitnumber
Milliseconds since this visitor's first known visit.
data.activity.timeSinceCurrentVisitnumber
Milliseconds since this visitor's current/latest visit started.
data.activity.firstVisitAtstring|null
Timestamp of the first known visit.
data.activity.lastVisitAtstring|null
Timestamp of the latest known visit.
data.activity.currentUrlstring|null
Latest page URL seen for the visitor. Use it to understand where the visitor was last active before you inspect the full visitor profile.
data.activity.completedGoalsobject[]
Custom, payment, free trial, and subscription lifecycle goals.
data.activity.visitedPagesobject[]
Visited page timeline.
data.profileobject (optional)
User profile created by Identify. Present only after the visitor has been linked to your user ID. Identify profile with
userId, metadata, and identifiedAt. The field is omitted when no profile exists.data.predictionobject (optional)
Conversion prediction for the visitor when enough revenue attribution data exists. Conversion prediction. The field is omitted for customers or when predictions are unavailable.
Authentication
df_website API key: The website is inferred from the key. You do not need awebsiteIdquery parameter.dft_account token: Requiresanalytics:readpermission and?websiteId=on every request. The token must be allowed to access that website.
Read authentication and scopes for token creation, permission lists, and scoped tokens.
Errors
400 — Missing or invalid
visitorId (must be a UUID v4).404 — No pageviews found for this visitor on the authenticated website.
See API errors for the standard error envelope, auth failures, validation errors, permission errors, and rate limits.