Get group geo breakdown
GET
/groups/{id}/geo
const url = 'https://localhost:3000/api/v1/groups/example/geo';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:3000/api/v1/groups/example/geo \ --header 'Authorization: <Authorization>'Returns event counts per country and per city across all triggers in a group
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Group ID (UUID)
Query Parameters
Section titled “Query Parameters”from
string
Start time (default: now-24h). Supports relative time: now-1h, now-24h
to
string
End time (default: now). Supports relative time
filter
string
JSON metadata filter
Responses
Section titled “Responses”Geographic breakdown of group events
Media typeapplication/json
object
cities
required
Array<object>
object
count
required
integer
lat
required
number
lon
required
number
name
required
string
countries
required
object
key
additional properties
integer format: int64
group_id
required
string format: uuid
Example
{ "cities": [ { "count": 42, "lat": 48.1173, "lon": -1.6778, "name": "Rennes" } ], "countries": { "FR": 120, "US": 45 }, "group_id": "550e8400-e29b-41d4-a716-446655440000"}Invalid request or filter format
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Unauthorized
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Group not found
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Internal error
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}