# 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-bubilet-com-tr-api-7d79b1bd/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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/parse-bubilet-com-tr-api-7d79b1bd/get_event_sessions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-bubilet-com-tr-api-7d79b1bd/get_events_this_friday \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-bubilet-com-tr-api-7d79b1bd/get_session_tickets \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-bubilet-com-tr-api-7d79b1bd/get_trending_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-bubilet-com-tr-api-7d79b1bd/search_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"city_id":"<integer>","query":"<string>"}'
```
