Skip to content
For LLMsView as Markdown·

The Odds API ​

Aggregated betting odds from multiple bookmakers across global sports markets.

DetailValue
CategoryiGaming
Base URLhttps://api.the-odds-api.com
AuthenticationAPI Key (Query)
Endpoints8
Connector keythe-odds-api

Using The Odds API in a workflow ​

  1. Go to Connections and click New Connection.
  2. Pick The Odds API from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown. The full list is below.

Available endpoints ​

EndpointSummary
GET /v4/sports/List in-season sports
GET /v4/sports/{sport}/odds/Odds for a sport
GET /v4/sports/{sport}/scores/Live/recent scores
GET /v4/sports/{sport}/eventsList events
GET /v4/sports/{sport}/events/{eventId}/oddsEvent odds
GET /v4/sports/{sport}/participantsTeams/players
GET /v4/historical/sports/{sport}/odds/Historical odds
GET /v4/historical/sports/{sport}/eventsHistorical events

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET /v4/sports/ ​

List in-season sports

DetailValue
Operation IDodds.listSports
MethodGET
Path/v4/sports/

Parameters ​

No parameters.

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your The Odds API connection from the Connection dropdown.
  3. In the Operation dropdown, select odds.listSports.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream The Odds API API reference.

GET /v4/sports/{sport}/odds/ ​

Odds for a sport

DetailValue
Operation IDodds.getOdds
MethodGET
Path/v4/sports/{sport}/odds/

Parameters ​

NameLocationTypeRequired
sportpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your The Odds API connection from the Connection dropdown.
  3. In the Operation dropdown, select odds.getOdds.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream The Odds API API reference.

GET /v4/sports/{sport}/scores/ ​

Live/recent scores

DetailValue
Operation IDodds.getScores
MethodGET
Path/v4/sports/{sport}/scores/

Parameters ​

NameLocationTypeRequired
sportpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your The Odds API connection from the Connection dropdown.
  3. In the Operation dropdown, select odds.getScores.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream The Odds API API reference.

GET /v4/sports/{sport}/events ​

List events

DetailValue
Operation IDodds.listEvents
MethodGET
Path/v4/sports/{sport}/events

Parameters ​

NameLocationTypeRequired
sportpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your The Odds API connection from the Connection dropdown.
  3. In the Operation dropdown, select odds.listEvents.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream The Odds API API reference.

GET /v4/sports/{sport}/events/{eventId}/odds ​

Event odds

DetailValue
Operation IDodds.getEventOdds
MethodGET
Path/v4/sports/{sport}/events/{eventId}/odds

Parameters ​

NameLocationTypeRequired
sportpathstringYes
eventIdpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your The Odds API connection from the Connection dropdown.
  3. In the Operation dropdown, select odds.getEventOdds.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream The Odds API API reference.

GET /v4/sports/{sport}/participants ​

Teams/players

DetailValue
Operation IDodds.listParticipants
MethodGET
Path/v4/sports/{sport}/participants

Parameters ​

NameLocationTypeRequired
sportpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your The Odds API connection from the Connection dropdown.
  3. In the Operation dropdown, select odds.listParticipants.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream The Odds API API reference.

GET /v4/historical/sports/{sport}/odds/ ​

Historical odds

DetailValue
Operation IDodds.getHistoricalOdds
MethodGET
Path/v4/historical/sports/{sport}/odds/

Parameters ​

NameLocationTypeRequired
sportpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your The Odds API connection from the Connection dropdown.
  3. In the Operation dropdown, select odds.getHistoricalOdds.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream The Odds API API reference.

GET /v4/historical/sports/{sport}/events ​

Historical events

DetailValue
Operation IDodds.getHistoricalEvents
MethodGET
Path/v4/historical/sports/{sport}/events

Parameters ​

NameLocationTypeRequired
sportpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your The Odds API connection from the Connection dropdown.
  3. In the Operation dropdown, select odds.getHistoricalEvents.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream The Odds API API reference.