# Bubilet — 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 events on Bubilet, view trending listings, check session details, and browse available tickets with real-time pricing. Find events by keyword, city, or upcoming date to plan your entertainment.

**Category:** Entertainment | **Website:** [bubilet.com.tr/](https://bubilet.com.tr/) | **Docs:** [parse.bot/marketplace/7d79b1bd-de95-453d-8d3f-3c9943fb2ace/bubilet-com-tr-api](https://parse.bot/marketplace/7d79b1bd-de95-453d-8d3f-3c9943fb2ace/bubilet-com-tr-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/bubilet/`
**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 sessions

Get all available sessions/dates for a specific event. Returns session details including venue, date, pricing, and ticket availability. Each session represents a unique date/venue combination for the event.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city_id` | integer | No | City ID. |
| `event_id` | integer | Yes | Event ID obtained from search_events or get_trending_events results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bubilet/get-event-sessions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"city_id":"<integer>","event_id":"<integer>"}'
```

### Get events this friday

Find events scheduled for the upcoming Friday in a specific city. Searches across multiple event categories (concerts, theatre, festivals, sports) and trending events, then filters to those with a session on the coming Friday. Returns the target Friday date and matching events.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city_id` | integer | No | City ID. Accepted values: 34=Istanbul, 6=Ankara, 35=Izmir, 7=Antalya, 16=Bursa, 26=Eskisehir. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bubilet/get-events-this-friday \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"city_id":"<integer>"}'
```

### Get session tickets

Get detailed ticket information for a specific session, including all ticket categories with prices, availability, and seat group details. Each ticket category represents a different seating zone or price tier.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city_id` | integer | No | City ID. |
| `event_session_id` | integer | Yes | Session ID obtained from get_event_sessions results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bubilet/get-session-tickets \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"city_id":"<integer>","event_session_id":"<integer>"}'
```

### Get trending events

Get trending/popular events for a specific city. Returns detailed event objects including sessions, pricing, stock, and performer information. Events are ordered by popularity/trending rank. Each event includes full session list with venue details, pricing, and availability.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city_id` | integer | No | City ID. Accepted values: 34=Istanbul, 6=Ankara, 35=Izmir, 7=Antalya, 16=Bursa, 26=Eskisehir. |
| `limit` | integer | No | Maximum number of trending events to return. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bubilet/get-trending-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"city_id":"<integer>","limit":"<integer>"}'
```

### Search events

Search for events by keyword and city. Returns matching events, venues, and performers. Each event includes id, name, slug, venue, session date, and detailed session list. The search term matches against event names, performers, and venues. An empty query returns all events for the city.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city_id` | integer | No | City ID. Accepted values: 34=Istanbul, 6=Ankara, 35=Izmir, 7=Antalya, 16=Bursa, 26=Eskisehir. |
| `query` | string | No | Search keyword (event name, artist, venue). Empty string returns all events. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bubilet/search-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"city_id":"<integer>","query":"<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.