Skip to content

Events

Events are time-bound destination content associated with a map and, when relevant, one or more POIs. Set BASE_URL as shown in the API overview before running these examples.

GET /events

Returns a filtered, cursor-paginated list of events for a map. The response contains events, next_cursor, and total; pass next_cursor back as cursor to request the next page.

ParameterInRequiredDescription
map_idQueryYesMap UUID.
fromQueryNoWindow start as an ISO 8601 timestamp. Defaults to now.
toQueryNoWindow end as an ISO 8601 timestamp. Defaults to 30 days after from.
event_typesQueryNoComma-separated event types: music, food_drink, art, festival, market, family, outdoors, sport, class_workshop, nightlife, other.
tagsQueryNoComma-separated free-text tags.
bboxQueryNoBounding box as west,south,east,north.
nearQueryNoPoint as lat,lng; use with radius_m.
radius_mQueryNoRadius in metres for near, from 1 to 200000. Defaults to 10000.
limitQueryNoPage size from 1 to 200. Defaults to 50.
cursorQueryNoOpaque cursor returned by the previous page.
Terminal window
curl --get "$BASE_URL/events" \
--data-urlencode "map_id=c2025939-af64-4371-a281-c6818b2cd96e" \
--data-urlencode "event_types=outdoors,family" \
--data-urlencode "limit=50"

GET /events/upcoming-by-poi

Returns upcoming events grouped by POI ID for a comma-separated set of POIs. Each key in the response object is a requested POI ID and its value is an ordered event array.

ParameterInRequiredDescription
poi_idsQueryYesComma-separated POI UUIDs.
fromQueryNoWindow start as an ISO 8601 timestamp.
toQueryNoWindow end as an ISO 8601 timestamp.
limit_per_poiQueryNoMaximum events per POI, from 1 to 20. Defaults to 5.
Terminal window
curl --get "$BASE_URL/events/upcoming-by-poi" \
--data-urlencode "poi_ids=b62841a3-7121-496d-888e-e36a6957bee7,55937890-2b93-4df3-b78a-189fd9d52b21" \
--data-urlencode "limit_per_poi=5"

GET /events/:id

Returns one event with all of its anchored POIs. When a Wander user calls this endpoint through an account session, the response can also include is_saved; third-party anonymous reads receive the event without that field.

ParameterInRequiredDescription
idPathYesEvent UUID.
Terminal window
curl "$BASE_URL/events/5d8c7575-0cac-425a-86ee-db60e8f765a8"