# 22Bet Kenya — 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 and pre-match sports betting data from 22Bet Kenya, including match details, odds, and league information across multiple sports. Monitor real-time football matches and discover available betting opportunities through comprehensive sitemap navigation.

**Category:** Sports | **Website:** [22bet.co.ke/](https://22bet.co.ke/) | **Docs:** [parse.bot/marketplace/3a9f6257-492f-4ec9-ae90-fac96b5ab051/22bet-co-ke-api](https://parse.bot/marketplace/3a9f6257-492f-4ec9-ae90-fac96b5ab051/22bet-co-ke-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-22bet-co-ke-api-3a9f6257/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_live_all_sports

Get all sports currently having live events. Returns each sport's numeric ID, display name, total live match count, and leagues count. The list is dynamic — sports appear only when they have at least one in-play event.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-22bet-co-ke-api-3a9f6257/get_live_all_sports \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_live_football_matches

Get all currently in-play football matches discovered from the live sitemap. Returns match IDs, tournament slugs, and full URLs for each live football event. Use the match_id values to call get_live_match_details.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-22bet-co-ke-api-3a9f6257/get_live_football_matches \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_live_leagues_by_sport

Get all leagues with live events for a specific sport. Returns league name, numeric ID, and active game count. The sport_id comes from get_live_all_sports results.

**Estimated cost:** Metered

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

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-22bet-co-ke-api-3a9f6257/get_live_leagues_by_sport \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sport_id":"<string>"}'
```

### get_live_match_details

Get full details for a specific live match including teams, score, statistics, and betting markets with odds. The match_id must refer to a currently live match; stale IDs return input_not_found. Match IDs are discovered via get_live_football_matches or get_live_leagues_by_sport.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `match_id` | string | Yes | The numeric match ID from get_live_football_matches results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-22bet-co-ke-api-3a9f6257/get_live_match_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"match_id":"<string>"}'
```
