Search events on ticketmaster.com. query is a keyword or a search URL. The response is { results, pagination }. Each row is one event card.
GET https://api.piloterr.com/v2/ticketmaster/search?query=jazz
Header: x-api-key.
page on this API starts at 1. On ticketmaster.com the page query is zero-based, so the second page of this API is page=1 in pagination.next. Example: https://www.ticketmaster.com/search?q=jazz&page=1.
An event URL belongs on /v2/ticketmaster/event. On search it returns 400.
A search card can be a Ticketweb partner event, or a short Ticketmaster link such as https://www.ticketmaster.com/event/Z7r9jZ1AAZIv7. The card is still valid. Those short links have no slug. The event endpoint resolves a URL by the words in the slug, so pass a slugged URL when you need the venue address.
query is required. Example: jazz. A search URL also works: https://www.ticketmaster.com/search?q=jazz. If that URL already has page=1, this API reports page 2, because the site counts from zero.
page is optional and defaults to 1. Example: 2.
id is the host event id when the site sends one. Partner rows can use a shorter id, for example 5028044, while url ends in a discovery id.
title is the event name. url is the event link on ticketmaster.com or ticketweb.com. start_date and onsale_date are UTC timestamps, or null. timezone is an IANA name such as America/Phoenix.
venue_name, venue_city, venue_state, and venue_country describe the venue. artists is a list of names. image is an artist image URL or null.
cancelled, postponed, rescheduled, sold_out, limited_availability, and tba are booleans when the site sends them. event_change_status is a short code such as none. ticketing_status is a code such as UNKNOWN.
pagination.per_page is 20. pagination.page is the 1-based page you asked for. pagination.total_results and pagination.total_pages come from the site total. For jazz the live total was 3970 events and 199 pages.
pagination.next is a URL while page is below total_pages. On the last page next is null. Event ids on one page do not repeat, and page 2 does not repeat page 1.
Pass page=2, or call this endpoint again with the keyword. pagination.next is the site URL, and its page value is one less than the next API page.
- A sports bar in Phoenix searches
jazz and keeps rows whose venue_city is Phoenix.
- A resale desk skips cards with
sold_out or cancelled true, then sends a slugged url to the event endpoint.
- A tour accountant walks
page until next is null and counts onsale_date values in the coming month.
- 400: empty
query, a host other than ticketmaster.com, an event URL, or page below 1.
- 404: no events, or
page is past total_pages.
- 401: missing API key.