# 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-predicd-com-api-3a04ec01/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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/parse-predicd-com-api-3a04ec01/get_league_fixtures \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-predicd-com-api-3a04ec01/get_league_standings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-predicd-com-api-3a04ec01/get_live_matches \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-predicd-com-api-3a04ec01/get_match_prediction \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-predicd-com-api-3a04ec01/list_leagues \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
