---
title: "Get visitor data"
method: GET
path: "/visit/visitor"
tags: ["Visit"]
---

# Get visitor data

`GET /visit/visitor`

Returns the activity feed for a visitor. Use this to retrieve visit data Kameleoon collected, such as triggered experiments, personalizations, or targeted segments.

## Query parameters

- `siteCode` string, required
- `currentVisit` boolean
- `maxNumberPreviousVisits` integer, required
- `visitorCode` string
- `mappingValue` string
- `all` boolean
- `staticData` boolean
- `page` boolean
- `conversion` boolean
- `targetingSegment` boolean
- `experiment` boolean
- `weather` boolean
- `customData` boolean
- `product` boolean
- `personalization` boolean
- `geolocation` boolean
- `prettyPrint` boolean

## Headers

- `user-agent` string, required

## Response `200`

Successful operation, youngest visits are rendered, of type JSON object {&quot;currentVisit&quot;: &lt;current visit&gt;, &quot;previousVisits&quot;: &lt;previous visits&gt;}, with &lt;current visit&gt; of type &lt;visit&gt;, &lt;previous visits&gt; of type JSON array of &lt;visit&gt; and with &lt;visit&gt; = JSON object (&quot;currentVisit&quot; optional key)

## Other responses

- `400` — Malformed URL query syntax.
- `401` — Authentication failed. Either the HTTP header value is malformed, or the token is missing or invalid (malformed, expired, or invalid signature).
- `403` — Access denied. Forbidden user-agent or restricted resource.
- `429` — Kameleoon rate-limited the request.
- `500` — An unexpected internal error occurred.

---

[API](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api.md) · [All operations](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kameleoon/openapi-definition-for-automation-api/revisions/09f2abcea0b5/schema)
