# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/football/`
**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 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/credits/football/get-event-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/football/get-live-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/football/get-prematch-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page_num":"<integer>","page_size":"<integer>","sport_id":"<string>"}'
```

## Next steps

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