# The Odds API Sports Pre-Match Head-to-Head Odds

> The Odds API Sports Pre-Match Head-to-Head Odds is a paid API for AI agents from api.fadeandco.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Fetches pre-match head-to-head betting odds for a given sport, returning each upcoming event's start time, teams, per-bookmaker decimal prices, and the best price per outcome with its bookmaker.

## Facts

- Endpoint: GET https://api.fadeandco.workers.dev/api/dev/the-odds-api-sports?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/the-odds-api-sports-pre-match-head-to-head-odds-05dc0f56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xHRUD7oReN3hgQvyINsLO

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability the-odds-api-sports-pre-match-head-to-head-odds-05dc0f56
```

Example prompt: Pull the latest pre-match head-to-head odds for all upcoming NBA basketball games from UK bookmakers and tell me which bookmaker is offering the best price on each side.

## When to prefer this

Choose this endpoint when you need structured, per-bookmaker decimal odds for a specific sport with best-price-per-outcome surfaced automatically — ideal for agents doing odds comparison, betting value analysis, or building sports data summaries without needing a direct Odds API subscription on the calling side.

## Known failure modes

- Missing or invalid 'sport' query parameter returns an error — must use a valid Odds API sport key like soccer_epl or basketball_nba
- Invalid or exhausted Odds API key causes authentication or quota errors
- Unsupported region value causes unexpected results — only us, uk, eu, au are valid
- No upcoming events for the requested sport returns an empty list
- Cloudflare Worker timeout if The Odds API is slow to respond

## How this service works

Pre-match head-to-head odds for one sport from The Odds API (v4): each event with start time, teams and each bookmaker's decimal prices, plus the best price per outcome and which bookmaker offers it. Needs the owner's free The Odds API key; uses quota on that key.

## Output

A list of upcoming events for the requested sport, each containing the event start time, home and away team names, decimal odds from each available bookmaker, and the single best (highest) decimal price per outcome along with the name of the bookmaker offering it.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "sport"
     ],
     "properties": {
      "sport": {
       "type": "string",
       "description": "The Odds API sport key, e.g. soccer_epl, basketball_nba, americanfootball_nfl"
      },
      "regions": {
       "type": "string",
       "description": "Bookmaker region: us, uk, eu or au (default uk)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/the-odds-api-sports-pre-match-head-to-head-odds-05dc0f56/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fadeandco.workers.dev](https://www.zero.xyz/host/api.fadeandco.workers.dev/llms.txt)
