Each performer should have their own “landing page” which includes information about that performer and shows any upcoming Events for that performer. Because the Ticket Evolution catalog includes over 45000 Performers, these pages are dynamically created and usually use the slug property of the Performer to create the URL. In the case of the Arizona Diamondbacks the slug is arizona-diamondbacks and your URL might look something like www.myawesometicketsite.com/arizona-diamondbacks-tickets


To generate such a page you should retrieve the Performer slug from the URL, which in the example of www.myawesometicketsite.com/arizona-diamondbacks-tickets would be arizona-diamondbacks. Then two API requests are made, the first one being Performers / Show in order to retrieve information about the performer.


curl -i \
-X GET \
-H "X-Signature: Eha/EE1EbP8mYqmf72AYOq0ee641Y/Q6EoRgDGv1+zM=" \
-H "X-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
--url 'https://api.ticketevolution.com/v9/performers/arizona-diamondbacks?'



$response = $client->showPerformer([
    'performer_id' => 'arizona-diamondbacks',
]);





@performer = @connection.performers.show('arizona-diamondbacks')





{
    "id": 15556,
    "name": "Arizona Diamondbacks",
    "keywords": "",
    "popularity_score": "0.643222",
    "url": "/performers/15556",
    "slug_url": "/performers/arizona-diamondbacks",
    "updated_at": "2014-05-08T13:08:46Z",
    "upcoming_events": {
        "first": "2017-06-18T13:35:00Z",
        "last": "2017-10-01T14:15:00Z"
    },
    "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"
    },
    "slug": "arizona-diamondbacks",
    "venue": {
        "id": 110,
        "slug": "chase-field",
        "name": "Chase Field",
        "url": "/venue/110",
        "slug_url": "/venue/chase-field",
        "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",
            "created_at": "2012-04-12T03:35:30Z"
        }
    },
    "category": {
        "id": "3",
        "name": "MLB",
        "slug": "mlb",
        "url": "/categories/3",
        "slug_url": "/categories/mlb",
        "parent": {
            "id": "2",
            "name": "Baseball",
            "slug": "baseball",
            "url": "/categories/2",
            "slug_url": "/categories/baseball",
            "parent": {
                "id": "1",
                "name": "Sports",
                "slug": "sports",
                "url": "/categories/1",
                "slug_url": "/categories/sports",
                "parent": null
            }
        }
    },
    "opponents": [],
    "venues": []
}


After making the Performer / Show API request the id of the Performer (15556 in this example) can be used to display upcoming Events using the Events / Index endpoint.


curl -i \
-X GET \
-H "X-Signature: oy8oDMMfSjCoz6R3oWsE5/2CsKYlypgnHbL9YtDLUAo=" \
-H "X-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
--url 'https://api.ticketevolution.com/v9/events?page=1&per_page=2&performer_id=15556'



$response = $client->listEvents([
    'performer_id' => (int)15556,
]);





@event = @connection.events.list({
    'performer_id' => 15556
})





{
    "current_page": 1,
    "per_page": 2,
    "total_entries": 93,
    "events": [{
        "id": 1075927,
        "url": "/events/1075927",
        "name": "Arizona Diamondbacks at Philadelphia Phillies",
        "state": "shown",
        "occurs_at": "2017-06-18T13:35:00Z",
        "occurs_at_local": "2017-06-18T13:35:00-04:00",
        "updated_at": "2017-06-18T12:00:33Z",
        "notes": null,
        "owned_by_office": false,
        "products_count": 0,
        "products_eticket_count": 0,
        "available_count": 42,
        "category": {
            "id": "3",
            "name": "MLB",
            "slug": "mlb",
            "url": "/categories/3",
            "slug_url": "/categories/mlb",
            "parent": {
                "id": "2",
                "name": "Baseball",
                "slug": "baseball",
                "url": "/categories/2",
                "slug_url": "/categories/baseball",
                "parent": {
                    "id": "1",
                    "name": "Sports",
                    "slug": "sports",
                    "url": "/categories/1",
                    "slug_url": "/categories/sports",
                    "parent": null
                }
            }
        },
        "popularity_score": 1475.87,
        "long_term_popularity_score": 0.691195,
        "stubhub_id": "9714868",
        "configuration": {
            "id": 2841,
            "url": "/configurations/2841",
            "name": "Baseball",
            "fanvenues_key": "6575",
            "ticket_utils_id": null,
            "seating_chart": {
                "medium": "https://s3.amazonaws.com/media.ticketevolution.com/configurations/static_maps/2841/medium.jpg?1429172102",
                "large": "https://s3.amazonaws.com/media.ticketevolution.com/configurations/static_maps/2841/large.jpg?1429172102"
            }
        },
        "venue": {
            "id": 2877,
            "slug": "citizens-bank-park",
            "url": "/venues/2877",
            "slug_url": "/venues/citizens-bank-park",
            "name": "Citizens Bank Park",
            "location": "Philadelphia, PA",
            "time_zone": "America/New_York"
        },
        "performances": [{
            "performer": {
                "id": 15556,
                "slug": "arizona-diamondbacks",
                "slug_url": "/performers/arizona-diamondbacks",
                "url": "/performers/15556",
                "name": "Arizona Diamondbacks"
            },
            "primary": false
        }, {
            "performer": {
                "id": 15548,
                "slug": "philadelphia-phillies",
                "slug_url": "/performers/philadelphia-phillies",
                "url": "/performers/15548",
                "name": "Philadelphia Phillies"
            },
            "primary": true
        }]
    }, {
        "id": 1076486,
        "url": "/events/1076486",
        "name": "Arizona Diamondbacks at Colorado Rockies",
        "state": "shown",
        "occurs_at": "2017-06-20T18:40:00Z",
        "occurs_at_local": "2017-06-20T18:40:00-06:00",
        "updated_at": "2017-06-18T12:00:46Z",
        "notes": null,
        "owned_by_office": false,
        "products_count": 213,
        "products_eticket_count": 213,
        "available_count": 576,
        "category": {
            "id": "3",
            "name": "MLB",
            "slug": "mlb",
            "url": "/categories/3",
            "slug_url": "/categories/mlb",
            "parent": {
                "id": "2",
                "name": "Baseball",
                "slug": "baseball",
                "url": "/categories/2",
                "slug_url": "/categories/baseball",
                "parent": {
                    "id": "1",
                    "name": "Sports",
                    "slug": "sports",
                    "url": "/categories/1",
                    "slug_url": "/categories/sports",
                    "parent": null
                }
            }
        },
        "popularity_score": 512.54,
        "long_term_popularity_score": 0.665749,
        "stubhub_id": "9715688",
        "configuration": {
            "id": 2962,
            "url": "/configurations/2962",
            "name": "Baseball",
            "fanvenues_key": "6620",
            "ticket_utils_id": null,
            "seating_chart": {
                "medium": "https://s3.amazonaws.com/media.ticketevolution.com/configurations/static_maps/2962/medium.jpg?1428732835",
                "large": "https://s3.amazonaws.com/media.ticketevolution.com/configurations/static_maps/2962/large.jpg?1428732835"
            }
        },
        "venue": {
            "id": 339,
            "slug": "coors-field",
            "url": "/venues/339",
            "slug_url": "/venues/coors-field",
            "name": "Coors Field",
            "location": "Denver, CO",
            "time_zone": "America/Denver"
        },
        "performances": [{
            "performer": {
                "id": 15556,
                "slug": "arizona-diamondbacks",
                "slug_url": "/performers/arizona-diamondbacks",
                "url": "/performers/15556",
                "name": "Arizona Diamondbacks"
            },
            "primary": false
        }, {
            "performer": {
                "id": 15557,
                "slug": "colorado-rockies",
                "slug_url": "/performers/colorado-rockies",
                "url": "/performers/15557",
                "name": "Colorado Rockies"
            },
            "primary": true
        }]
    }]
}