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

> Browse upcoming music events, parties, and concerts happening in your city by filtering through genres, categories, and dates to find exactly what you're looking for. Get detailed information about any event including full listings, descriptions, and availability on DICE.

**Category:** Entertainment | **Website:** [dice.fm/browse/new_york-5bbf4db0f06331478e9b2c59/music/party?from=2026-07-12&until=2026-07-12](https://dice.fm/browse/new_york-5bbf4db0f06331478e9b2c59/music/party?from=2026-07-12&until=2026-07-12) | **Docs:** [parse.bot/marketplace/79861a1e-adee-42da-b7f3-f505574a2eff/dice-fm-api](https://parse.bot/marketplace/79861a1e-adee-42da-b7f3-f505574a2eff/dice-fm-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-dice-fm-api-79861a1e/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### browse_events

Browse upcoming events on DICE filtered by city, event category, genre, and date range. Returns a list of events with venue, pricing, and scheduling details. Results are from the city's browse page, ordered chronologically. When a date range spans many events, the response indicates whether more results exist beyond the returned set.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Event category path. |
| `city` | string | No | City slug in the format '{perm_name}-{city_id}', e.g. 'new_york-5bbf4db0f06331478e9b2c59', 'london-5b22e2c8fc4800000182c2e7', 'paris-5b23e8a0e63cc224a4c36a2d'. Found in dice.fm browse page URLs. |
| `date_from` | string | No | Start date filter in ISO format YYYY-MM-DD. Omit for no start date constraint. |
| `date_until` | string | No | End date filter in ISO format YYYY-MM-DD. Omit for no end date constraint. |
| `genre` | string | No | Sub-genre filter appended to the category path. Examples for music/party: 'afro_house', 'disco', 'funk', 'house', 'karaoke', 'latin', 'pop', 'reggaeton', 'tech-house'. Available genres vary by category and city. |
| `limit` | integer | No | Maximum number of events to return. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dice-fm-api-79861a1e/browse_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","city":"<string>","date_from":"<string>","date_until":"<string>","genre":"<string>","limit":"<integer>"}'
```

### get_event_details

Get full details for a specific DICE event including description, lineup, age restrictions, promoter info, and all scheduling/pricing details. The event_slug is the perm_name from browse_events results or from a dice.fm event URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `event_slug` | string | Yes | Event URL slug (perm_name), e.g. '2wywg7-azure-day-party-july-12th-12th-jul-rooftop-at-arlo-williamsburg-new-york-city-tickets'. Available from browse_events results as the perm_name field. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dice-fm-api-79861a1e/get_event_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"event_slug":"<string>"}'
```
