# Melbet (Nigeria) — 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 sports betting odds from Melbet Nigeria across multiple sports and tournaments to compare available markets and make informed betting decisions. Browse available sports, explore tournaments within each sport, and retrieve detailed event odds data in real-time.

**Category:** Sports | **Website:** [melbet.ng/en/](https://melbet.ng/en/) | **Docs:** [parse.bot/marketplace/2c0547e4-df16-4899-bcdc-9bea41e05136/melbet-ng-api](https://parse.bot/marketplace/2c0547e4-df16-4899-bcdc-9bea41e05136/melbet-ng-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-melbet-ng-api-2c0547e4/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_event_odds

Get events and betting odds for a specific tournament. Returns match details with odds for available markets such as Result (Win1/X/Win2), Double Chance, Total (Over/Under with line values), Handicap (with spread values), and outright Winner. Each event includes team names, start time, and market count. Odds names include full descriptive labels and parameter values where applicable (e.g. 'Over (2.5)', 'Handicap 1 (-1.5)'). Paginates as a single page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `tournament_id` | string | Yes | Numeric tournament ID from list_tournaments results. |

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

### list_sports

List all available sports with their event counts. Returns both pre-match and live sports depending on sport_type. Each sport includes an ID usable with list_tournaments to drill into that sport's tournament tree. Paginates as a single page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sport_type` | string | No | Type of sports listing. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-melbet-ng-api-2c0547e4/list_sports \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sport_type":"<string>"}'
```

### list_tournaments

List tournaments and championships available for a given sport. Returns tournament IDs that can be used with get_event_odds to retrieve match odds. Paginates as a single page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sport_id` | string | No | Numeric sport ID from list_sports results (e.g. 1 for Football, 4 for Basketball, 3 for Tennis). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-melbet-ng-api-2c0547e4/list_tournaments \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sport_id":"<string>"}'
```
