# Ticketmaster Search ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/ticketmaster/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/ticketmaster-search | ## Description Search Ticketmaster events by keyword. Returns event cards, including Ticketweb partner rows, and pagination. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/ticketmaster/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Jazz events ```json { "results": [ { "id": "19006507A7257EEA", "tba": false, "url": "https://www.ticketmaster.com/suns-vs-jazz-kids-day-phoenix-arizona-01-24-2027/event/19006507A7257EEA", "image": "https://s1.ticketm.net/dam/a/c62/0636ff21-e369-4b8c-bee4-214ea0a81c62_1339761_ARTIST_PAGE_3_2.jpg", "title": "Suns vs Jazz: Kids Day", "artists": [ "Phoenix Suns", "Utah Jazz" ], "sold_out": false, "timezone": "America/Phoenix", "cancelled": false, "postponed": false, "start_date": "2027-01-24T21:00:00Z", "venue_city": "Phoenix", "venue_name": "Mortgage Matchup Center", "onsale_date": "2026-08-17T15:00:00Z", "rescheduled": false, "venue_state": "AZ", "venue_country": "US", "ticketing_status": "UNKNOWN", "event_change_status": "none", "limited_availability": false } ], "pagination": { "next": "https://www.ticketmaster.com/search?q=jazz&page=1", "page": 1, "per_page": 20, "total_pages": 199, "total_results": 3970 } } ``` ## Documentation ## Overview 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. ## Parameters `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`. ## Response fields `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 `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. ## Use cases - 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. ## Error codes - 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.