# Shazam — 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 live concerts and music events happening near you by filtering results based on your location, preferred dates, and favorite genres using Shazam's comprehensive events map. Discover upcoming shows and performances tailored to your musical interests and schedule.

**Category:** Entertainment | **Website:** [www.shazam.com/events/map/today?boundingbox=40.66869%2C-73.98454%2C0.098%2C0.15043](https://www.shazam.com/events/map/today?boundingbox=40.66869%2C-73.98454%2C0.098%2C0.15043) | **Docs:** [parse.bot/marketplace/af984f6c-b57d-4ee4-8289-3740d4896102/shazam-com-api](https://parse.bot/marketplace/af984f6c-b57d-4ee4-8289-3740d4896102/shazam-com-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/shazam/`
**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

### Search events

Search for live concerts and music events within a geographic bounding box. Returns up to 50 events with full details including artist, venue, time, and ticket links. Results include a local_genres summary showing genre counts in the area, useful for discovering what genre slugs to filter by. The bounding box format is center_lat,center_lng,lat_span,lng_span.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `boundingbox` | string | No | Geographic bounding box as 'center_lat,center_lng,lat_span,lng_span' (4 comma-separated numbers). Example: '40.66869,-73.98454,0.098,0.15043' covers Brooklyn, NY. |
| `date_filter` | string | No | Time range filter for events. |
| `genre` | string | No | Genre slug to filter events (e.g. 'dance-17', 'electronic-7', 'hip-hop/rap-18', 'alternative-20', 'rock-21', 'pop-14', 'r&b/soul-15', 'jazz-11', 'latino-12', 'metal-1153', 'punk-1006', 'indie-rock-1004', 'comedy-3', 'hip-hop-1073'). Format is 'genre-name-id'. Available genres vary by area and are returned in local_genres. |
| `require_venue` | boolean | No | When true, only return events that have both venue_name and venue_address populated, filtering out events with missing venue information. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/shazam/search-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"boundingbox":"<string>","date_filter":"<string>","genre":"<string>","require_venue":"<boolean>"}'
```

## 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.