get_odds

Pack: odds-api · Endpoint: https://gateway.pipeworx.io/odds-api/mcp

Current odds for upcoming + live events in a league. Each market type costs 1 quota credit per region per call — pick markets carefully.

Parameters

NameTypeRequiredDescription
sport_keystringyesSport key from list_sports, e.g. “americanfootball_nfl”
regionsstringnous | uk | eu | au — comma-sep (default us)
marketsstringnoh2h | spreads | totals | outrights — comma-sep (default h2h)
odds_formatstringnoamerican (default) | decimal
date_formatstringnoiso (default) | unix
bookmakersstringnoComma-sep bookmaker keys (e.g. “draftkings,fanduel”) to restrict
event_idsstringnoRestrict to specific event IDs (comma-sep)

Example call

Arguments

{
  "sport_key": "americanfootball_nfl",
  "regions": "us",
  "markets": "h2h"
}

curl

curl -X POST https://gateway.pipeworx.io/odds-api/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_odds","arguments":{"sport_key":"americanfootball_nfl","regions":"us","markets":"h2h"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_odds', {
  "sport_key": "americanfootball_nfl",
  "regions": "us",
  "markets": "h2h"
});

More examples

{
  "sport_key": "basketball_nba",
  "regions": "us,uk",
  "markets": "spreads,totals",
  "odds_format": "decimal",
  "bookmakers": "draftkings,fanduel"
}

Response shape

Always returns: items, count

FieldTypeDescription
itemsarray
countintegerNumber of items returned.
Full JSON Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Event ID"
          },
          "sport_key": {
            "type": "string",
            "description": "Sport key"
          },
          "sport_title": {
            "type": "string",
            "description": "Sport title"
          },
          "commence_time": {
            "type": "string",
            "description": "Event start time (ISO 8601 or unix)"
          },
          "home_team": {
            "type": "string",
            "description": "Home team name"
          },
          "away_team": {
            "type": "string",
            "description": "Away team name"
          },
          "bookmakers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "Bookmaker key"
                },
                "title": {
                  "type": "string",
                  "description": "Bookmaker name"
                },
                "last_update": {
                  "type": "string",
                  "description": "Last odds update time"
                },
                "markets": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "description": "Market type (h2h, spreads, totals)"
                      },
                      "last_update": {
                        "type": "string",
                        "description": "Market last update time"
                      },
                      "outcomes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "description": "Outcome name (team/option)"
                            },
                            "price": {
                              "type": "number",
                              "description": "Odds (american or decimal)"
                            },
                            "point": {
                              "type": "number",
                              "description": "Spread/total point (if applicable)"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "count": {
      "type": "integer",
      "description": "Number of items returned."
    }
  },
  "required": [
    "items",
    "count"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "odds-api": {
      "url": "https://gateway.pipeworx.io/odds-api/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026