07. Venue Landing Pages
Many sites also choose to build a landing page for each venue (there are over 13,000 venues available via our API).
These pages are generated very similarly to the Performer Landing Pages using the Venue slug
from the URL, which in the example of www.myawesometicketsite.com/venues/chase-field-tickets would be chase-field
. Then two API requests are made, the first one being Venues / Show in order to retrieve information about the performer.
/venues/chase-field using cURL
curl -i \
-X GET \
-H "X-Signature: Vmv9v4xDs/0QRNqLWmhT5sjqeoF08Kcxrjcbs9tvP6M=" \
-H "X-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
--url 'https://api.ticketevolution.com/v9/venues/chase-field?'
/venues/chase-field using ticketevolution-php
$response = $client->showVenue([
'venue_id' => 'chase-field',
]);
/venues/chase-field JSON response
{
"id": 110,
"name": "Chase Field",
"keywords": "",
"popularity_score": "0.734308",
"url": "/venues/110",
"slug_url": "/venues/chase-field",
"location": "Phoenix, AZ",
"country_code": "US",
"updated_at": "2014-05-08T13:11:31Z",
"address": {
"street_address": "401 East Jefferson Street",
"extended_address": null,
"locality": "Phoenix",
"region": "AZ",
"postal_code": "85004",
"country_code": "US",
"location": "Phoenix, AZ",
"latitude": 33.4528292,
"longitude": -112.0685027,
"label": null,
"created_at": "2012-04-12T03:35:30Z"
},
"upcoming_events": {
"first": "2017-06-23T18:40:00Z",
"last": "2018-01-01T00:00:00Z"
},
"slug": "chase-field",
"meta": {
"meta_description": null,
"meta_keywords": null,
"nofollow": false,
"noindex": false,
"canonical_url": null,
"page_title": null,
"header_title": null,
"paragraph_1": null,
"paragraph_2": null,
"paragraph_3": null,
"image": "/images/original/missing.png"
}
}
After making the Venues / Show API request the id
of the Venue (110 in this example) can be used to display upcoming Events using the Events / Index endpoint.
/events using cURL
/events using ticketevolution-php
/events JSON response
Previous: Performer Landing Pages
Next: Event Landing Pages