Web analytics of a hostname, counted at the edge from the pages it serves: nothing is added to the site, and no cookie is set
GET/v1/orgs/{org}/analytics
API token or dashboard session
Web analytics of a hostname, counted at the edge from the pages it serves: nothing is added to the site, and no cookie is set. A visitor is counted once a day.
Path and query parameters
orgstringpathrequiredOrganisation slug
hostnamestringqueryOne of the workspace's hostnames. Its busiest when omitted
daysintegerqueryHow far back, 1 to 365. Defaults to 30
Responses
200Analytics404Problem
Fields of Analytics
countriesAnalyticsTop[]requiredkeystringrequiredA path, the hostname of another site, or a two-letter country code.
viewsintegerrequiredvisitorsintegerrequiredVisitors whose first page of the day this was.
daysAnalyticsDay[]requireddaystringrequired2026-10-09, in UTC.viewsintegerrequiredvisitors
curl "https://api.infraflow.app/v1/orgs/acme/analytics" \ -H "Authorization: Bearer $INFRAFLOW_TOKEN"
{
"countries": [
{
"key": "reports/2026/q3.csv",
"views": 1,
"visitors": 1
}
],
"days": [
{
"day": "string",
"views": 1,
"visitors": 1
}
],
"hostname": "www.example.com",
"hostnames": [
"string"
],
"paths": [
{
"key": "reports/2026/q3.csv",
"views": 1,
"visitors": 1
}
],
"referrers": [
{
"key": "reports/2026/q3.csv",
"views": 1,
"visitors": 1
}
],
"requests_last_day": 1,
"views": 1,
"visitors": 1
}