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

> Get real-time betting odds, live scores, and detailed match events from football.com's eFootball platform to stay updated on prematch and live competitions. Access comprehensive event information including odds movements and play-by-play match details to inform your betting decisions.

**Category:** Sports | **Website:** [www.football.com/ng/m/sport/eFootball?source=azmenu](https://www.football.com/ng/m/sport/eFootball?source=azmenu) | **Docs:** [parse.bot/marketplace/fffd6bba-c0f2-4391-950a-5c0df4d2bdc7/football-com-api](https://parse.bot/marketplace/fffd6bba-c0f2-4391-950a-5c0df4d2bdc7/football-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-football-com-api-fffd6bba/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_event_details

Get detailed information and all betting markets for a specific event, including full odds, probabilities, and market descriptions. Returns comprehensive event data including team IDs, booking status, and each market's specifier and outcome probabilities. Requires an event_id obtainable from get_prematch_events or get_live_events.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `event_id` | string | Yes | Event identifier in sr:match:<id> format (e.g. sr:match:72002812). Obtainable from get_prematch_events or get_live_events results. |

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

### get_live_events

Get currently live events for a given sport, including live scores, match period, played time, and current betting odds. Returns all in-progress events with real-time score updates. May return an empty list if no events are currently live.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sport_id` | string | No | Sport identifier in sr:sport:<id> format. sr:sport:137 is eFootball, sr:sport:1 is Football. |

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

### get_prematch_events

Get upcoming prematch events for a given sport with pagination. Returns events grouped by tournament with betting odds for main markets (1X2, Over/Under). Pagination via page_num; more_events indicates additional pages. Each event includes home/away teams, start time, tournament info, and available market odds.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page_num` | integer | No | Page number for pagination. |
| `page_size` | integer | No | Number of events per page (1-100). |
| `sport_id` | string | No | Sport identifier in sr:sport:<id> format. sr:sport:137 is eFootball, sr:sport:1 is Football. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-football-com-api-fffd6bba/get_prematch_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page_num":"<integer>","page_size":"<integer>","sport_id":"<string>"}'
```
