APIReferenceAnalytics
List scans of one code
Scan events of one code, newest first, inside the window. Same window and paging rules as GET /scans.
Authorization
apiKey AuthorizationBearer <token>
An API key from Settings, Developers: Authorization: Bearer kc_live_...
In: header
Path Parameters
id*string
Length
1 <= lengthQuery Parameters
limit?integer
Items per page, 1 to 100.
Range
1 <= value <= 100Default
50cursor?string
The next_cursor from the previous page. Omit for the first page.
from?string
ISO 8601 start, inclusive. Omit for the start of the plan's history.
Format
date-timeto?string
ISO 8601 end, exclusive. Omit for now.
Format
date-timeResponse Body
application/json
application/json
curl -X GET "https://example.com/codes/string/scans"{ "data": [ { "id": "string", "timestamp": "2019-08-24T14:15:22Z", "code": { "id": "string", "shortCode": "string" }, "country": "string", "region": "string", "city": "string", "latitude": 0, "longitude": 0, "gps": { "latitude": 0, "longitude": 0, "accuracy": 0 }, "deviceType": "string", "os": "string", "browser": "string", "language": "string", "referrer": "string", "timezone": "string", "destinationUrl": "string", "matchedRule": "string", "visitor": "string" } ], "next_cursor": "string", "window": { "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z", "clamped": true }}