Traffic
get_analyticsTraffic for one app: visitors, pages, sources, countries, devices, goals, revenue by source. range adds the previous period, funnels, live visitors, bots, crawlers, AI assistants, buyers, cohorts, speed, 404s and paths. breakdown + rank: top lists. filter narrows the visits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app": "<app>"
},
"name": "get_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app: its slug, name, domain (shop.app), URL or id. list_apps shows them all. | |
| days | No | The last N days, only when range isn't passed. With breakdown, compare or filter it rounds up to 24h, 7d, 30d or 90d | |
| rank | No | ||
| range | No | Replaces days for every number in the answer. Longer than 90 days: totals come from daily history; breakdowns, funnels and paths cover the last 90 days | |
| filter | No | Only visits matching all of these, with values as a breakdown shows them: { source: "Google", country: "DE", page: "/pricing", device: "mobile" }. Several values of one kind, separated by |, mean any of them: { country: "DE|FR" }; for pages, start with all: to need every page: { page: "all:/pricing|/docs" }. Narrows every visit number in the answer; detail.notFiltered lists the blocks that stay whole-app. | |
| compare | No | Also the previous period, for trends | |
| breakdown | No |