# Melbet (Nigeria) — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/melbet-nigeria/`
**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 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.beta.paywithlocus.com/api/wrapped/credits/melbet-nigeria/get-event-odds \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/melbet-nigeria/list-sports \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/melbet-nigeria/list-tournaments \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"sport_id":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.