# Ticketmaster Mexico — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search for events across Mexico on Ticketmaster and retrieve detailed information including dates, venues, ticket availability, and artist lineups. Filter results by region, keyword, or category to find concerts, theater, sports, and family events.

**Category:** Entertainment | **Website:** [ticketmaster.com.mx/](https://ticketmaster.com.mx/) | **Docs:** [parse.bot/marketplace/e5d23119-5a2f-4742-8ec5-a7ecf0940d0b/ticketmaster-com-mx-api](https://parse.bot/marketplace/e5d23119-5a2f-4742-8ec5-a7ecf0940d0b/ticketmaster-com-mx-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-ticketmaster-com-mx-api-e5d23119/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_event_details

Retrieve details for a specific event by its Ticketmaster ID. Attempts to load the event page directly for full details (venue, sections, fees, ticket limits); if the page is access-protected, falls back to locating the event in search results using event_name. The `source` field in the response indicates which path succeeded ('event_page' for full details, 'search_results' for the fallback). Returns an EventDetail wrapping the event data and source indicator.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `event_id` | string | Yes | Ticketmaster event ID (e.g. '4318754') |
| `event_name` | string | Yes | Event or artist name used as a search fallback when the event page is access-protected |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ticketmaster-com-mx-api-e5d23119/get_event_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"event_id":"<string>","event_name":"<string>"}'
```

### get_regions

Returns the static mapping of region codes to region display names used for filtering events by geographic area on ticketmaster.com.mx. No network call is made; the mapping is built into the scraper.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ticketmaster-com-mx-api-e5d23119/get_regions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_events

Full-text search over Ticketmaster Mexico's global event catalog. `query` matches event titles and artist names; `sort` orders by date or relevance. Results span worldwide Ticketmaster inventory accessible from the .mx portal. Paginates via integer page number. Each event includes venue details, artist lineup, date information, and ticket availability status.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (1-indexed) |
| `query` | string | No | Search keyword (e.g. artist name, event name, genre) |
| `region` | string | No | Region code for filtering events by location |
| `sort` | string | No | Sort order for results |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ticketmaster-com-mx-api-e5d23119/search_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","region":"<string>","sort":"<string>"}'
```
