# Covers — 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 comprehensive NBA matchup information including team records, ATS/O-U trends, head-to-head statistics, injury reports, and the best betting odds across sportsbooks. Compare matchup details and betting projections to inform your analysis before placing bets.

**Category:** Sports | **Website:** [www.covers.com/sport/basketball/nba/matchups](https://www.covers.com/sport/basketball/nba/matchups) | **Docs:** [parse.bot/marketplace/1c5c1d81-42b4-494b-9ff1-a3b6d49181b7/covers-com-api](https://parse.bot/marketplace/1c5c1d81-42b4-494b-9ff1-a3b6d49181b7/covers-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-covers-com-api-1c5c1d81/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_game_odds

Get today's best betting odds (spread, moneyline, total) for games in a given league. Returns the best available odds across multiple sportsbooks for each game, including which sportsbook offers the best price. For soccer/world-cup, includes 3-way draw odds. Only returns games with active odds for today.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sport` | string | No | Sport league identifier. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-covers-com-api-1c5c1d81/get_game_odds \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sport":"<string>"}'
```

### get_matchup_details

Get detailed matchup data for a specific game including season records (overall, ATS, O/U, home/away), head-to-head history, injury reports for both teams, and betting projections with best spread/total/moneyline odds across sportsbooks. Requires a game_id obtained from get_matchups and the sport league.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `game_id` | string | Yes | Game ID from the get_matchups endpoint (e.g. 380821). |
| `sport` | string | No | Sport league identifier. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-covers-com-api-1c5c1d81/get_matchup_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"game_id":"<string>","sport":"<string>"}'
```

### get_matchups

Get matchups listing for a given sport and date with team info, scores, and spread/total trend summaries. Returns all games scheduled or completed for the specified date. Each game includes a game_id usable with get_matchup_details for full analysis. All games for the date are returned in a single page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | No | Date in YYYY-MM-DD format. Omitting returns today's games. |
| `sport` | string | No | Sport league identifier. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-covers-com-api-1c5c1d81/get_matchups \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>","sport":"<string>"}'
```

### get_odds

Get betting odds for a specific game across multiple sportsbooks including moneyline, spread/run line, and totals (over/under). Odds are compared across major books like DraftKings, FanDuel, BetMGM, bet365, Caesars, and Fanatics. Requires a game_id from get_matchups. Odds may be empty for completed games or games without active betting lines.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `game_id` | string | Yes | Game ID from the get_matchups endpoint (e.g. 370200). |
| `league` | string | No | Sports league the game belongs to. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-covers-com-api-1c5c1d81/get_odds \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"game_id":"<string>","league":"<string>"}'
```
