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

> Access live betting odds, browse sports categories and upcoming matches, and search for specific events across multiple leagues in real-time. Get detailed event information including current odds for thousands of sports matchups to inform your betting decisions.

**Category:** Sports | **Website:** [unibet.com/](https://unibet.com/) | **Docs:** [parse.bot/marketplace/b534e827-b5b9-44a0-9075-f2c135cdddf3/unibet-com-api](https://parse.bot/marketplace/b534e827-b5b9-44a0-9075-f2c135cdddf3/unibet-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-unibet-com-api-b534e827/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_all_sports

Retrieve all available sports from the A-Z menu with display names and keys. Returns a flat list of sport categories plus static quick-access items.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-unibet-com-api-b534e827/get_all_sports \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_event_odds

Retrieve the full betting market and all available odds for a single sports event. Requires a valid contestKey (32-character hex string) obtainable from relatedContests arrays or contestKey fields in search_events, get_sports_home, get_live_events, or get_league_events responses. Event IDs are ephemeral and expire once an event concludes.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `event_id` | string | Yes | Contest key (32-character hex string) sourced from contestKey or relatedContests fields in other endpoint responses. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-unibet-com-api-b534e827/get_event_odds \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"event_id":"<string>"}'
```

### get_league_events

Retrieve events and sub-categories for a specific league or category using its Resource Name (RN). Returns upcoming fixtures grouped by date with odds. The league_rn is obtainable from get_sport_events quickBrowseItems[*].children[*].category.categoryRn.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `league_rn` | string | Yes | League resource name in colon-separated format (e.g. football:england:premier_league, tennis:atp:rome, basketball:usa:nba). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-unibet-com-api-b534e827/get_league_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"league_rn":"<string>"}'
```

### get_live_events

Retrieve all currently live in-play events across all sports. Returns events grouped by sport type with live scores, match clocks, and current odds. Each sport category contains contestGroups with fixtures organized by league.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-unibet-com-api-b534e827/get_live_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_sport_events

Retrieve all leagues and sub-categories for a specific sport using the quick browse view. Returns a hierarchical list of countries and leagues with their category resource names (categoryRn), which can be passed to get_league_events.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sport` | string | Yes | Sport name in lowercase as used in categoryRn paths (e.g. football, tennis, basketball, ice_hockey, golf, cricket, baseball, handball, volleyball). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-unibet-com-api-b534e827/get_sport_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sport":"<string>"}'
```

### get_sport_live_events

Retrieve all live in-play events filtered to a specific sport. Returns only the matching sport category from the in-play feed with live scores, match clocks, and current odds.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sport` | string | Yes | Sport display name with initial capital letter matching contestTypeDisplayName (e.g. Football, Tennis, Basketball, Ice Hockey, Table Tennis). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-unibet-com-api-b534e827/get_sport_live_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sport":"<string>"}'
```

### get_sport_lobby

Retrieve the lobby view for a specific sport, showing top matches, featured leagues, and popular contests grouped by date. Includes market filters (Full Time Result, Total Goals, Both Teams to Score) and time filters.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sport` | string | Yes | Sport name in lowercase (e.g. football, tennis, basketball). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-unibet-com-api-b534e827/get_sport_lobby \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sport":"<string>"}'
```

### get_sports_home

Fetch the sports betting homepage including match of the day, quick access navigation, and popular bet builder contests. Returns featured matches with full-time result odds and live scoreboard data when applicable.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-unibet-com-api-b534e827/get_sports_home \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_events

Search for sports events, teams, or competitions by keyword. Returns matching teams and participants with their upcoming fixtures and odds. Searches match team names and competition names; individual athlete names may return empty results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search term for a team or competition name (e.g. Arsenal, Champions League, Real Madrid, NBA). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-unibet-com-api-b534e827/search_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
