G
GlobalEventBase
Location API

List locations

Retrieve a list of locations filtered by type (e.g., Country, City).

GET
/api/locations

Query Parameters

type?string

Filter by location type (e.g., Country, City, AdministrativeArea).

page?integer

Page number for pagination.

Default1
Range1 <= value
size?integer

Number of items per page. Max 100.

Default20
Range1 <= value <= 100

Response Body

application/json

curl -X GET "https://globaleventbase.com/api/locations"
{
  "page": 0,
  "size": 0,
  "total": 0,
  "items": [
    {
      "id": "string",
      "type": "string",
      "identifier": "string",
      "iso2": "string",
      "raw_payload": {}
    }
  ]
}