Get top countries / regions / cities
Query API
Get Top Locations
Top countries, regions and cities by visits.
GET
Get top countries / regions / cities
Returns the top geographic locations of visitors over the selected window.
Authorizations
Workspace API key (e.g. formo_xxx). Create one in the Formo dashboard under Team Settings > API Keys.
Query Parameters
Inclusive start date (YYYY-MM-DD). Defaults to 7 days before date_to.
Inclusive end date (YYYY-MM-DD). Defaults to today.
Maximum results to return (default 50, max 1000)
Required range:
1 <= x <= 1000Number of results to skip for pagination (default 0)
Required range:
0 <= x <= 100000Response
Top locations
Analytics endpoint response. The data array contains the rows; the exact row shape depends on the endpoint. meta carries column type information for rendering, rows is the row count, and statistics holds query timing metadata.