Platforms
GETPlatforms
Platform analytics are exposed as separate paginated resources. Cursors are opaque and totals are not returned by default.
Endpoints
GET https://trackfox.app/api/v1/platforms/browsers
GET https://trackfox.app/api/v1/platforms/devices
GET https://trackfox.app/api/v1/platforms/operating-systems
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| websiteId | string | Yes | The unique identifier of your website |
| period | string | No | Defaults to last30d |
| startDate | string | Only for period=custom |
Custom period start date |
| endDate | string | Only for period=custom |
Custom period end date |
| timezone | string | No | Defaults to UTC |
| limit | number | No | Defaults to 50, maximum 100 |
| cursor | string | No | Opaque cursor from the previous response |
Response
{
"data": [
{
"name": "Chrome",
"visitors": 55
}
],
"pagination": {
"limit": 50,
"hasMore": true,
"nextCursor": "NEXT_CURSOR"
}
}
Examples
curl "https://trackfox.app/api/v1/platforms/browsers?websiteId=site_123&period=last30d&limit=25" \
-H "Authorization: Bearer tf_your_api_token_here"
curl "https://trackfox.app/api/v1/platforms/browsers?websiteId=site_123&period=last30d&limit=25&cursor=NEXT_CURSOR" \
-H "Authorization: Bearer tf_your_api_token_here"
Need help? Contact us for assistance.
Suggest features? We'd love your feedback