Get top countries
Query API
Get Top Locations
Top countries by visits.
GET
Get top countries
Returns the top countries of visitors over the selected window. The
location field is an ISO 3166-1 alpha-2 country code (for example, US, GB, DE).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 countries
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.