Betfair Exchange

App · 9 actions

Read Betfair Exchange sports, events, markets, and prices.

Actions

ActionWhat it does
Get market pricesRead market status and best available Exchange offers for up to ten market IDs.
List competitionsFind Betfair Exchange competitions using market filters.
List countriesFind Betfair Exchange countries using market filters.
List event typesFind Betfair Exchange event types using market filters.
List eventsFind Betfair Exchange events using market filters.
List market typesFind Betfair Exchange market types using market filters.
List marketsFind Exchange markets and their scheduled start times.
List time rangesFind Betfair Exchange time ranges using market filters.
List venuesFind Betfair Exchange venues using market filters.

Get market prices

Read market status and best available Exchange offers for up to ten market IDs.

Inputs

Market IDSmarket_idslistRequired
Market IDS.

Outputs

datalist
The response from Betfair Exchange.
Example output
{
  "data": [
    {
      "inplay": true,
      "marketId": "example",
      "runners": [
        {}
      ],
      "status": "example"
    }
  ]
}

List competitions

Find Betfair Exchange competitions using market filters.

Inputs

Event type IDSevent_type_idslist
Event type IDS.
Event IDSevent_idslist
Event IDS.
Market IDSmarket_idslist
Market IDS.
Market typesmarket_typeslist
Market types.
Start timestart_timedate and time
Start time.
End timeend_timedate and time
End time.
In playin_playtrue/false
In play.

Outputs

datalist
The response from Betfair Exchange.
Example output
{
  "data": [
    {
      "competition": {
        "id": "example",
        "name": "example"
      },
      "marketCount": 1
    }
  ]
}

List countries

Find Betfair Exchange countries using market filters.

Inputs

Event type IDSevent_type_idslist
Event type IDS.
Event IDSevent_idslist
Event IDS.
Market IDSmarket_idslist
Market IDS.
Market typesmarket_typeslist
Market types.
Start timestart_timedate and time
Start time.
End timeend_timedate and time
End time.
In playin_playtrue/false
In play.

Outputs

datalist
The response from Betfair Exchange.
Example output
{
  "data": [
    {
      "countryCode": "example",
      "marketCount": 1
    }
  ]
}

List event types

Find Betfair Exchange event types using market filters.

Inputs

Event type IDSevent_type_idslist
Event type IDS.
Event IDSevent_idslist
Event IDS.
Market IDSmarket_idslist
Market IDS.
Market typesmarket_typeslist
Market types.
Start timestart_timedate and time
Start time.
End timeend_timedate and time
End time.
In playin_playtrue/false
In play.

Outputs

datalist
The response from Betfair Exchange.
Example output
{
  "data": [
    {
      "eventType": {
        "id": "example",
        "name": "example"
      },
      "marketCount": 1
    }
  ]
}

List events

Find Betfair Exchange events using market filters.

Inputs

Event type IDSevent_type_idslist
Event type IDS.
Event IDSevent_idslist
Event IDS.
Market IDSmarket_idslist
Market IDS.
Market typesmarket_typeslist
Market types.
Start timestart_timedate and time
Start time.
End timeend_timedate and time
End time.
In playin_playtrue/false
In play.

Outputs

datalist
The response from Betfair Exchange.
Example output
{
  "data": [
    {
      "event": {
        "countryCode": "example",
        "id": "example",
        "name": "example",
        "openDate": "example"
      },
      "marketCount": 1
    }
  ]
}

List market types

Find Betfair Exchange market types using market filters.

Inputs

Event type IDSevent_type_idslist
Event type IDS.
Event IDSevent_idslist
Event IDS.
Market IDSmarket_idslist
Market IDS.
Market typesmarket_typeslist
Market types.
Start timestart_timedate and time
Start time.
End timeend_timedate and time
End time.
In playin_playtrue/false
In play.

Outputs

datalist
The response from Betfair Exchange.
Example output
{
  "data": [
    {
      "marketCount": 1,
      "marketType": "example"
    }
  ]
}

List markets

Find Exchange markets and their scheduled start times.

Inputs

Event type IDSevent_type_idslist
Event type IDS.
Event IDSevent_idslist
Event IDS.
Market IDSmarket_idslist
Market IDS.
Market typesmarket_typeslist
Market types.
Start timestart_timedate and time
Start time.
End timeend_timedate and time
End time.
In playin_playtrue/false
In play.
Max resultsmax_resultsnumberRequired
Max results.From 1 to 1000.
Sortsorttext
Sort.One of: MINIMUM_TRADED (Minimum traded), MAXIMUM_TRADED (Maximum traded), MINIMUM_AVAILABLE (Minimum available), MAXIMUM_AVAILABLE (Maximum available), FIRST_TO_START (First to start), LAST_TO_START (Last to start).

Outputs

datalist
The response from Betfair Exchange.
Example output
{
  "data": [
    {
      "marketId": "example",
      "marketName": "example",
      "marketStartTime": "example"
    }
  ]
}

List time ranges

Find Betfair Exchange time ranges using market filters.

Inputs

Event type IDSevent_type_idslist
Event type IDS.
Event IDSevent_idslist
Event IDS.
Market IDSmarket_idslist
Market IDS.
Market typesmarket_typeslist
Market types.
Start timestart_timedate and time
Start time.
End timeend_timedate and time
End time.
In playin_playtrue/false
In play.
GranularitygranularitytextRequired
Granularity.One of: DAYS, HOURS, MINUTES.

Outputs

datalist
The response from Betfair Exchange.
Example output
{
  "data": [
    {
      "marketCount": 1,
      "timeRange": {
        "from": "example",
        "to": "example"
      }
    }
  ]
}

List venues

Find Betfair Exchange venues using market filters.

Inputs

Event type IDSevent_type_idslist
Event type IDS.
Event IDSevent_idslist
Event IDS.
Market IDSmarket_idslist
Market IDS.
Market typesmarket_typeslist
Market types.
Start timestart_timedate and time
Start time.
End timeend_timedate and time
End time.
In playin_playtrue/false
In play.

Outputs

datalist
The response from Betfair Exchange.
Example output
{
  "data": [
    {
      "marketCount": 1,
      "venue": "example"
    }
  ]
}

On this page