Get visitor data
GET https://datafa.st/api/v1/visitors/{datafast_visitor_id}
Retrieve identity, activity, and prediction data for a specific
datafast_visitor_id. Requires Bearer Token authentication.Response
- Success (200 OK): Returns a detailed visitor data object.
- Errors: See API Introduction. A 400 occurs if the visitor is a bot.
Response fields
See the example response for the structure. Key objects:
identity: Geo-location, device, browser, OS, and first-session parameters derived from the latest pageview.activity: Visit/pageview counts, timing, last URL, completed goals, and a list of visited pages.activity.completedGoals: Canonical goal timeline. Includes manually tracked goals and automatic payment-provider goals, sorted by time. Each goal has anorigin:manualorpayment_provider.profile: Latest Identify profile for this visitor, includinguserId, custom metadata, andidentifiedAt. Present only when the visitor has been identified.prediction: Conversion prediction details (rate, USD value, score, confidence). Null if visitor is already a customer or you haven't set up revenue attribution.
Automatic payment-provider goals include
payment, free_trial, and subscription lifecycle goals such as trial_started, subscription_started, subscription_renewed, and subscription_ended.Use
prediction to get more sales: Show a lead magnet or coupon to low-converting visitors, or create urgency or exclusivity to high-potential visitors.