# Predicd — 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 football match predictions, live scores, fixtures, and league standings across multiple competitions including Bundesliga. Access detailed match insights, upcoming games, and current league tables to stay informed about football events and predictions.

**Category:** Sports | **Website:** [predicd.com/](https://predicd.com/) | **Docs:** [parse.bot/marketplace/3a04ec01-4b8d-41a1-b6f9-58633ec12fbd/predicd-com-api](https://parse.bot/marketplace/3a04ec01-4b8d-41a1-b6f9-58633ec12fbd/predicd-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/predicd/`
**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 league fixtures

Get fixtures and predictions for a specific league and optionally a matchday. Returns match details including predicted scores, actual scores, and betting odds. Predictions use a font-obfuscation scheme decoded server-side. Without a matchday filter, returns all matchdays for the league's current season.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `league_id` | string | No | League ID from list_leagues endpoint (e.g. '4328' for Premier League, '4331' for 1. Bundesliga). |
| `matchday` | string | No | Filter by matchday/round number (e.g. '1', '2', '34'). Omitting returns all matchdays. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/predicd/get-league-fixtures \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"league_id":"<string>","matchday":"<string>"}'
```

### Get league standings

Get the current league standings table for a specified league. Returns position, team name, matches played, wins, draws, losses, goals, goal difference, and points for each team in the league.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `league_id` | string | No | League ID from list_leagues endpoint (e.g. '4328' for Premier League, '4331' for 1. Bundesliga). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/predicd/get-league-standings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"league_id":"<string>"}'
```

### Get live matches

Get currently live matches and their predictions. Returns an empty array when no matches are in progress. Each live match includes team names, predicted score, and status.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/predicd/get-live-matches \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get match prediction

Get detailed prediction, probabilities, and statistics for a single match. Returns win probability percentages, expected goals, recent form strings, head-to-head records, and league position data for both home and away teams.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `match_id` | string | Yes | Match ID from get_league_fixtures results (e.g. '2276638'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/predicd/get-match-prediction \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"match_id":"<string>"}'
```

### List leagues

List all available football leagues and their IDs. Returns leagues across multiple countries and competitions including Premier League, Bundesliga, Serie A, Ligue 1, and more. Each league has a stable numeric ID used by other endpoints.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/predicd/list-leagues \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

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