get_countries
Retrieve visitor geography breakdown by country. Compare periods to assess growth and segment data by browser, OS, device type, UTM source, or referrer.
Instructions
Get visitor geography breakdown by country. Call twice with different periods (e.g. '2026-04-01..2026-04-07' vs '2026-04-08..2026-04-14') to compare growth across countries. Optional filters segment by browser, os, device type, UTM source, or referrer.
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": {
"site": "<site>"
},
"name": "get_countries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site domain or UUID | |
| limit | No | Max results (1-1000) | |
| period | No | Time period | 30d |
| filter_os | No | OS substring match (e.g. 'iOS') | |
| filter_browser | No | Browser substring match (e.g. 'Chrome') | |
| filter_utm_source | No | Exact UTM source (e.g. 'twitter') | |
| filter_device_type | No | Device type: 'desktop' | 'mobile' | 'tablet' | |
| filter_referrer_contains | No | Referrer substring (e.g. 'google') |