Skip to content
For LLMsView as Markdown·

Betfair

Betting exchange API for market data, live prices, order placement, and P&L tracking.

DetailValue
CategoryiGaming
Base URLhttps://api.betfair.com/exchange
AuthenticationAPI Key
Endpoints10
Connector keybetfair

Using Betfair in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Betfair 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
POST /betting/rest/v1.0/listEventTypes/List event types (sports)
POST /betting/rest/v1.0/listEvents/List events
POST /betting/rest/v1.0/listCompetitions/List competitions
POST /betting/rest/v1.0/listMarketCatalogue/Market catalogue
POST /betting/rest/v1.0/listMarketBook/Live market prices
POST /betting/rest/v1.0/placeOrders/Place bets
POST /betting/rest/v1.0/cancelOrders/Cancel bets
POST /betting/rest/v1.0/listCurrentOrders/Current orders
POST /betting/rest/v1.0/listClearedOrders/Settled orders
POST /betting/rest/v1.0/listMarketProfitAndLoss/P&L

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

POST /betting/rest/v1.0/listEventTypes/

List event types (sports)

DetailValue
Operation IDbetting.listEventTypes
MethodPOST
Path/betting/rest/v1.0/listEventTypes/

Parameters

No parameters.

Request Body

FieldType
filterobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Betfair connection from the Connection dropdown.
  3. In the Operation dropdown, select betting.listEventTypes.
  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 Betfair API reference.

POST /betting/rest/v1.0/listEvents/

List events

DetailValue
Operation IDbetting.listEvents
MethodPOST
Path/betting/rest/v1.0/listEvents/

Parameters

No parameters.

Request Body

FieldType
filterobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Betfair connection from the Connection dropdown.
  3. In the Operation dropdown, select betting.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 Betfair API reference.

POST /betting/rest/v1.0/listCompetitions/

List competitions

DetailValue
Operation IDbetting.listCompetitions
MethodPOST
Path/betting/rest/v1.0/listCompetitions/

Parameters

No parameters.

Request Body

FieldType
filterobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Betfair connection from the Connection dropdown.
  3. In the Operation dropdown, select betting.listCompetitions.
  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 Betfair API reference.

POST /betting/rest/v1.0/listMarketCatalogue/

Market catalogue

DetailValue
Operation IDbetting.listMarketCatalogue
MethodPOST
Path/betting/rest/v1.0/listMarketCatalogue/

Parameters

No parameters.

Request Body

FieldType
filterobject
maxResultsinteger
marketProjectionarray

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Betfair connection from the Connection dropdown.
  3. In the Operation dropdown, select betting.listMarketCatalogue.
  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 Betfair API reference.

POST /betting/rest/v1.0/listMarketBook/

Live market prices

DetailValue
Operation IDbetting.listMarketBook
MethodPOST
Path/betting/rest/v1.0/listMarketBook/

Parameters

No parameters.

Request Body

FieldType
marketIdsarray
priceProjectionobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Betfair connection from the Connection dropdown.
  3. In the Operation dropdown, select betting.listMarketBook.
  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 Betfair API reference.

POST /betting/rest/v1.0/placeOrders/

Place bets

DetailValue
Operation IDbetting.placeOrders
MethodPOST
Path/betting/rest/v1.0/placeOrders/

Parameters

No parameters.

Request Body

FieldType
marketIdstring
instructionsarray

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Betfair connection from the Connection dropdown.
  3. In the Operation dropdown, select betting.placeOrders.
  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 Betfair API reference.

POST /betting/rest/v1.0/cancelOrders/

Cancel bets

DetailValue
Operation IDbetting.cancelOrders
MethodPOST
Path/betting/rest/v1.0/cancelOrders/

Parameters

No parameters.

Request Body

FieldType
marketIdstring
instructionsarray

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Betfair connection from the Connection dropdown.
  3. In the Operation dropdown, select betting.cancelOrders.
  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 Betfair API reference.

POST /betting/rest/v1.0/listCurrentOrders/

Current orders

DetailValue
Operation IDbetting.listCurrentOrders
MethodPOST
Path/betting/rest/v1.0/listCurrentOrders/

Parameters

No parameters.

Request Body

FieldType
orderBystring

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Betfair connection from the Connection dropdown.
  3. In the Operation dropdown, select betting.listCurrentOrders.
  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 Betfair API reference.

POST /betting/rest/v1.0/listClearedOrders/

Settled orders

DetailValue
Operation IDbetting.listClearedOrders
MethodPOST
Path/betting/rest/v1.0/listClearedOrders/

Parameters

No parameters.

Request Body

FieldType
betStatusstring
settledDateRangeobject

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Betfair connection from the Connection dropdown.
  3. In the Operation dropdown, select betting.listClearedOrders.
  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 Betfair API reference.

POST /betting/rest/v1.0/listMarketProfitAndLoss/

P&L

DetailValue
Operation IDbetting.listMarketProfitAndLoss
MethodPOST
Path/betting/rest/v1.0/listMarketProfitAndLoss/

Parameters

No parameters.

Request Body

FieldType
marketIdsarray

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Betfair connection from the Connection dropdown.
  3. In the Operation dropdown, select betting.listMarketProfitAndLoss.
  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 Betfair API reference.