https://api.visitors.now/v1/analytics/osReturns top operating systems ranked by visitors. Supports cursor-based pagination.
const res = await fetch("https://api.visitors.now/v1/analytics/os?period=7d", {
headers: { Authorization: `Bearer ${VISITORS_API_KEY}` },
});
const { data, nextCursor } = await res.json();Time period. Default: 30d.
Custom start date (ISO 8601).
Custom end date (ISO 8601).
Timezone. Default: UTC.
JSON-encoded filter object.
Pagination cursor from a previous response.
Number of results per page. Default: 50.
{
"items": [
{
"os": "macOS",
"people": 1245,
"views": 3421
},
{
"os": "Windows",
"people": 987,
"views": 2653
},
{
"os": "iOS",
"people": 654,
"views": 1432
}
// ...
],
"nextCursor": null
}