# Bachtrack — 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 and discover classical music events, reviews, and festivals worldwide, then dive into detailed information about performances, critic reviews, and masterclasses. Stay updated with the latest classical music news and find specific events that match your interests.

**Category:** Entertainment | **Website:** [bachtrack.com/](https://bachtrack.com/) | **Docs:** [parse.bot/marketplace/2ed00118-0323-435c-82ad-70bfd8c99769/bachtrack-com-api](https://parse.bot/marketplace/2ed00118-0323-435c-82ad-70bfd8c99769/bachtrack-com-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-bachtrack-com-api-2ed00118/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_articles

Browse latest editorial articles (interviews, features) from Bachtrack. Returns an array of article titles and URLs.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bachtrack-com-api-2ed00118/get_articles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_event_detail

Get detailed information for a specific event by its URL. Extracts structured data from JSON-LD metadata including venue, location, program, performers, dates, and ticket links. The URL must be a full bachtrack.com event page URL obtained from search_events results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full event page URL from search_events results (e.g. https://bachtrack.com/concert-event/...) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bachtrack-com-api-2ed00118/get_event_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### get_news

Browse latest classical music news from Bachtrack. Returns an array of news titles and URLs.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bachtrack-com-api-2ed00118/get_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_review_detail

Get full content of a specific review by its URL. Returns the complete review text, author, date, and rating. The URL must be a full bachtrack.com review page URL obtained from search_reviews results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full review page URL from search_reviews results |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bachtrack-com-api-2ed00118/get_review_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### search_events

Search for upcoming classical music events (concerts, opera, dance) with optional filters. Returns paginated results in increments of 50. When no filters are specified, returns all event categories. Each event includes venue, performers, program, and ticket purchase links where available.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | integer | No | Category ID to filter events by type |
| `city` | string | No | City name to filter by (resolved via autocomplete) |
| `festival` | string | No | Festival name to filter by (resolved via autocomplete) |
| `performer` | string | No | Performer name to filter by (resolved via autocomplete) |
| `start_row` | integer | No | Starting row for pagination (increments of 50) |
| `venue` | string | No | Venue name to filter by (resolved via autocomplete) |
| `work` | string | No | Musical work name to filter by (resolved via autocomplete) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bachtrack-com-api-2ed00118/search_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<integer>","city":"<string>","festival":"<string>","performer":"<string>","start_row":"<integer>","venue":"<string>","work":"<string>"}'
```

### search_festivals

Browse upcoming music festivals with location and date information. Returns an array of festivals with title, URL, location (country), and date range.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bachtrack-com-api-2ed00118/search_festivals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_masterclasses

Search for upcoming music masterclasses. Returns events in the same format as search_events, including venue, performers, dates, and ticket links.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bachtrack-com-api-2ed00118/search_masterclasses \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_reviews

Search for concert, opera, and dance reviews. Returns paginated results with title, author, rating, teaser, and city for each review.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | integer | No | Category ID to filter reviews by type |
| `city` | string | No | City name to filter by |
| `start_row` | integer | No | Starting row for pagination |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bachtrack-com-api-2ed00118/search_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<integer>","city":"<string>","start_row":"<integer>"}'
```
