Web Analytics
Privacy-friendly, cookie-free pageview analytics for an application. It is a read-only aggregation over the request traffic already logged at the edge — there is no tracking script, no cookie, and no per-visitor identity. Unique visitors are counted as distinct source IP addresses.
Nothing to enable per app: the Analytics page (and this endpoint) light up as soon as your plan carries the web_analytics entitlement. Without it the request returns 403. An endpoint with request capture off logs nothing, so it adds nothing.
What counts: a pageview is a 2xx GET of a page. Bots (crawlers, headless browsers, link previews) are left out of every figure and shown only as the Bot bucket of devices; assets (scripts, styles, images, fonts…), redirects, 304s and errors are left out. A full-stack app counts its front-end pages, not its backend paths; a managed app counts page GETs outside its backend paths; a function returns no pageviews. timeseries counts pageviews (hourly for 24h, daily otherwise).
Query parameters
24h, 7d, 30d, or 90d. Default 7d; any other value is read as 7d.Response (200 OK)
Only page requests count: successful GETs (status below 400) whose path is not a static asset (.js, .css, images, fonts, .json, .map, …). The breakdowns are lists of {name, count} pairs, largest first.
24h, 7d, 30d or 90d.name is the path, count its pageviews.name is the two-letter country code (Unknown when the location isn't known), count its pageviews.name is Desktop, Mobile, Tablet, Bot or Unknown.name is the bucket (hourly YYYY-MM-DD HH:00:00 for 24h, daily YYYY-MM-DD otherwise, UTC), count its pageviews. Buckets with no pageviews are left out.An app with no endpoint answers zeros and empty lists ([]).
Errors
web_analytics entitlement (or application hosting), or there is no active account.