# Gewara — 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 live performances and concerts happening in China through Gewara's ticketing platform, viewing detailed information about shows including dates, venues, and availability. Get comprehensive performance details to discover and plan attendance at entertainment events across the country.

**Category:** Entertainment | **Website:** [www.gewara.com/](https://www.gewara.com/) | **Docs:** [parse.bot/marketplace/1ccce404-3efc-419c-ad63-19e135aa6dc0/gewara-com-api](https://parse.bot/marketplace/1ccce404-3efc-419c-ad63-19e135aa6dc0/gewara-com-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-gewara-com-api-1ccce404/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_performance_detail

Get detailed info about a specific performance by ID. Returns full details including description HTML, ticket notes, venue, pricing, and availability.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `performance_id` | string | Yes | Numeric performance ID from list_performances results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gewara-com-api-1ccce404/get_performance_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"performance_id":"<string>"}'
```

### list_performances

List performances filtered by category and city with pagination. Returns concerts, musicals, comedy shows, opera, and other live entertainment events ordered by platform default ranking.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | No | Category filter. Use 0 for all categories. |
| `city_id` | string | No | City ID for filtering results. 10 = Shanghai. |
| `page` | integer | No | Page number starting from 1. |
| `page_size` | integer | No | Results per page, 1-50. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gewara-com-api-1ccce404/list_performances \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","city_id":"<string>","page":"<integer>","page_size":"<integer>"}'
```
