Command:
curl -X GET
-i https://retro.directory/api/v1/listing/<listing id>/event/<event id>
-H "Authorization: bearer <api-key>"
Response: HTTP 200 OK
{
"id": 110,
"name": "Event Name",
"description": "Event Description",
"info": "Further Event Information",
"type": 10,
"start": "2023-04-11",
"end": "2023-04-11",
"url": "https://website",
"bookingurl": "https://website/booking",
"telephone": "+01 234567897",
"address": "10 Retro Street, Retroshire",
"postcode": "02832",
"country": "GB",
"lat": 51.477928,
"lng": -0.001545,
"places": 25,
"showplaces": true,
"onlineonly": false,
"showowner": true,
"uselistingicon": true,
"refreshurl": "",
"social": {
"fb": "https://facebook.com/facebookgroup"
}
}
Fields:
- id: The Unique ID of this event
- name: The event title
- description: The event description
- info: Further information about the event.
- type: The event type, see event types for a list
- start: The event start date, in yyyy-mm-dd format
- end: The event end date, in yyyy-mm-dd format
- url: A website URL with more information about the event
- bookingurl: A website URL that takes you directly to ticket purchases
- telephone: Contact telephone number for more information
- address: Address for the event
- postcode: Postal / Zip code for the event address
- country: Event address country as an ISO 3166 Alpha-2 Code country code.
- lat: Geographic latitude of the event (for the map)
- lng: Geographic longitude of the event (for the map)
- places: Number of tickets/places available. 0=Sold out
- showplaces: Boolean, true/false, if the number of tickets/places should be displayed.
- onlineonly: Boolean, true/false, if true, the event is virtual/online - address/map is hidden.
- showowner: Boolean, true/false, if true, the parent listing is shown with the event.
- uselistingicon: Boolean, true/false, if true, the listing icon is used instead of the default one for the event type.
- refreshurl: A special URL that retro.directory can call to update the number of places/tickets. See Automatic Ticket/Places Counter.
- social: An object of links to social media. See Social Media Links for more information.