# Bachtrack — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/bachtrack/`
**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 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.beta.paywithlocus.com/api/wrapped/credits/bachtrack/get-articles \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/bachtrack/get-event-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/bachtrack/get-news \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/bachtrack/get-review-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/bachtrack/search-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/bachtrack/search-festivals \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/bachtrack/search-masterclasses \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/bachtrack/search-reviews \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category":"<integer>","city":"<string>","start_row":"<integer>"}'
```

## Next steps

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