Betfair Australia icon

Betfair Australia

Interact with the Betfair Australia API

Overview

This node integrates with the Betfair Australia API to retrieve various types of betting-related data. Specifically, the "List Market Types" operation fetches market types available for a given sport or event type. This is useful for users who want to explore or filter betting markets by their types before placing bets or analyzing market data.

Common scenarios include:

  • Fetching all market types related to horse racing or other sports.
  • Filtering market types based on event types, competitions, venues, or other criteria.
  • Using the retrieved market types to build dynamic betting strategies or dashboards.

For example, a user interested in Australian horse racing can list market types filtered by event type ID "7" (Horse Racing) and country code "AU" to get relevant market types for upcoming races.

Properties

Name Meaning
Filters A collection of optional filters to narrow down the market types returned. The filters include:
- Event Type ID(s): Comma-separated IDs representing sports or event types (e.g., "7" for Horse Racing).
- Event ID(s): Comma-separated specific event IDs.
- Competition ID(s): Comma-separated competition IDs.
- Market Country Code(s): Comma-separated 2-letter country codes (default "AU").
- Market Type Code(s): Comma-separated market type codes like "MATCH_ODDS", "WIN".
- Venue(s): Comma-separated venue names (e.g., "Flemington,Randwick").
- Text Query: Free-text search string to match event or competition names.
- Market Start From / To: Date/time range to filter markets starting within this period.
- BSP Offered Only: Boolean to return only markets where Betfair Starting Price is available.
- In-Play Enabled Only: Boolean to return only markets that will turn in-play.
- In-Play Now Only: Boolean to return only markets currently in-play.
- Market Betting Type: Options include "Odds", "Line", "Asian Handicap Double Line", "Asian Handicap Single Line".
- With Orders: Filter markets by order status: "Pending", "Execution Complete", "Executable", or "Expired".
- Race Type: Filter by race type: "No Filter", "Thoroughbred Flat", "Harness", "Hurdle", or "Steeple".

Output

The output is an array of JSON objects representing market types matching the specified filters. Each object contains details about a market type as returned by the Betfair Australia API. The exact structure depends on the API response but typically includes identifiers, descriptions, and metadata about each market type.

The node does not output binary data.

Dependencies

  • Requires valid Betfair Australia API credentials including an application key, username, and password.
  • The node performs authentication via the Betfair Australia login endpoint to obtain a session token.
  • Uses the Betfair Australia REST API endpoints to fetch market types and other data.
  • Requires network access to https://identitysso.betfair.com.au/api/login and https://api.betfair.com.au/exchange/betting/rest/v1.0/.

Troubleshooting

  • No credentials found: Ensure you have configured the required Betfair Australia API credentials in n8n before running the node.
  • Login failures: Errors during login may indicate incorrect username/password or invalid application key. Check credentials and try again.
  • API request errors: Network issues or invalid parameters can cause API errors. Review error messages logged by the node for details.
  • Empty results: If no market types are returned, verify your filter settings; overly restrictive filters may exclude all results.
  • Timeouts: The node uses a 15-second timeout for API requests; slow network or API issues may cause timeouts.

Links and References

Discussion