# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/ticketmaster-mexico/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/ticketmaster-mexico/get-event-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/ticketmaster-mexico/get-regions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/ticketmaster-mexico/search-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","region":"<string>","sort":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.