Skip to content

Get events by place

GET
/api/events/place/{place}

Get events and past events related to the specified place.

Parameters

Path Parameters

place*

Place identifier.

Type
integer
Required
Example1

Query Parameters

show_recurrent

Show recurrent events or not.

Type
boolean
Exampletrue

Responses

List of events related to the place.

application/json
JSON
{
  
"events": [
  
  
{
  
  
  
"id": 1,
  
  
  
"slug": "event-slug",
  
  
  
"status": "EventScheduled",
  
  
  
"title": "Event title",
  
  
  
"media": [
  
  
  
  
{
  
  
  
  
  
"name": "Image name",
  
  
  
  
  
"url": "6e599b27-5ed8-44c9-b954-53e9c6fa3c80.jpg",
  
  
  
  
  
"height": 400,
  
  
  
  
  
"width": 200,
  
  
  
  
  
"size": 50000,
  
  
  
  
  
"focalpoint": [
  
  
  
  
  
  
[
  
  
  
  
  
  
  
0,
  
  
  
  
  
  
  
0
  
  
  
  
  
  
]
  
  
  
  
  
]
  
  
  
  
}
  
  
  
],
  
  
  
"start_datetime": 1784109600,
  
  
  
"end_datetime": 1784131200,
  
  
  
"place": {
  
  
  
  
"type": "string",
  
  
  
  
"properties": "string"
  
  
  
}
  
  
}
  
],
  
"pastEvents": [
  
  
{
  
  
  
"id": 1,
  
  
  
"slug": "event-slug",
  
  
  
"status": "EventScheduled",
  
  
  
"title": "Event title",
  
  
  
"media": [
  
  
  
  
{
  
  
  
  
  
"name": "Image name",
  
  
  
  
  
"url": "6e599b27-5ed8-44c9-b954-53e9c6fa3c80.jpg",
  
  
  
  
  
"height": 400,
  
  
  
  
  
"width": 200,
  
  
  
  
  
"size": 50000,
  
  
  
  
  
"focalpoint": [
  
  
  
  
  
  
[
  
  
  
  
  
  
  
0,
  
  
  
  
  
  
  
0
  
  
  
  
  
  
]
  
  
  
  
  
]
  
  
  
  
}
  
  
  
],
  
  
  
"start_datetime": 1784109600,
  
  
  
"end_datetime": 1784131200,
  
  
  
"place": {
  
  
  
  
"type": "string",
  
  
  
  
"properties": "string"
  
  
  
}
  
  
}
  
],
  
"place": {
  
  
"id": 20,
  
  
"name": "Location name",
  
  
"address": "Address",
  
  
"ap_id": "AP_ID",
  
  
"postal_address": {
  
  
},
  
  
"latitude": 40.5574,
  
  
"longitude": 8.3263,
  
  
"createdAt": "2020-01-29T18:10:16.630Z",
  
  
"updatedAt": "2020-01-30T22:42:14.789Z"
  
}
}

Playground

Variables
Key
Value

Samples

Powered by VitePress OpenAPI