Betfair API - Source Code
The Betfair Exchange API is the platform on which developers can build customised betting tools and interfaces to use with the Betfair Sports Exchange for themselves or for other Betfair customers. Find markets, place bets, check current bet details, betting history and account statements.

- Versions
- SDKs (7)
- Articles (5)
- How To(0)
- Source Code(16)
- Libraries(3)
- Developers (1)
- Followers (1050)
- Changelog (43)
Sample Source Code (16)
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
Title | Description | |
---|---|---|
![]() | Betfair Stream Node.js Sample Code | The Betfair Stream Node.js Sample Code demonstrates how to establish a connection to send an authentication message. Once developers have access, they can subscribe to order and market a bet stream. |
![]() | Betfair APING Objective-C Sample Code by Betfair | The Betfair APING Objective-C Sample Code by Betfair shows how to work with the Betfair API-NG platform when building iOS applications. Its deployment requires the onwards of iOS5. |
![]() | Betfair Scala Sample Code by Geraint Jones | Betfair Scala Sample Code by Geraint Jones provides developers with sample codes to help implement the Betfair APIs in their application. |
![]() | Betfair Javascript Sample Code by Betfair | Betfair Javascript Sample Code by Betfair provides developers with sample code that demonstrates a basic use case of placing a bet on the next GB Horse Racing market. This sample code is written in JavaScript. |
![]() | Betfair Perl Sample Code by Betfair | Betfair Perl Sample Code by Betfair provides developers with sample code that demonstrates a basic use case of placing a bet on the next GB Horse Racing market. This sample code is written in Perl. |
![]() | Betfair Curl Sample Code by Betfair | Betfair Curl Sample Code by Betfair provides developers with sample code that demonstrates a basic use case of placing a bet on the next GB Horse Racing market. This sample code is written in PHP. |
![]() | Betfair Visual Basic Sample Code by Betfair | Betfair Visual Basic Sample Code by Betfair demonstrates a basic use case of placing a bet on the next GB Horse Racing market. A comprehensive description of the samples can be found in the developer samples documentation. This sample code is written in Visual Basic, and is related to the Betfair APIs. |
![]() | Betfair PHP Sample Code by Betfair | Betfair PHP Sample Code by Betfair demonstrates a basic use case of placing a bet on the next GB Horse Racing market. A comprehensive description of the samples can be found in the developer samples documentation. This sample code is written in PHP, and is related to the Betfair APIs. |
![]() | Betfair Python Sample Code by Betfair | Betfair Python Sample Code by Betfair demonstrates a basic use case of placing a bet on the next GB Horse Racing market. A comprehensive description of the samples can be found in the developer samples documentation. This sample code is written in Python, and is related to the Betfair APIs. |
![]() | Betfair Java Sample Code by Betfair | Betfair Java Sample Code by Betfair demonstrates a basic use case of placing a bet on the next GB Horse Racing market. A comprehensive description of the samples can be found in the developer samples documentation. This sample code is written in Java, and is related to the Betfair APIs. |
![]() | Betfair Python Sample Code by Betfair | The Betfair Python Sample Code by Betfair demonstrates API interaction. Example features that developers can access explain how to call the API with JSON protocol, call the API with rescript protocol, obtain next horse racing market, get available price of horse racing market, and place a bet on first active runner. Submitted by Gordon Mack. |
![]() | Betfair PHP Sample Code by Betfair | The Betfair PHP Sample Code by Betfair shows interaction with the API. Developers can learn how to find a horse racing market, display runners' prices, and make a bet with an invalid stake. Results display an error. Betfair observes that the sample is just a sample and it should not be used for actual development. Submitted by Gordon Mack. |
![]() | Betfair JavaScript Sample Code by Betfair | The Betfair JavaScript Sample Code by Betfair demonstrates interaction with the API. Developers can run the example sending requests to obtain list of markets & list of runners to later intend to make a bet. Submitted by Gordon Mack. |
![]() | Betfair Java Sample Code by Betfair | The Betfair Java Sample Code by Betfair demonstrates how to interact with the API, sending requests as if developers were to find a horse race market to place a bet. Results show an error once users have submitted an invalid stake. Submitted by Gordon Mack. |
![]() | Betfair C# Sample Code by Betfair | The Betfair C# Sample Code by Betfair demonstrates how to interact with the API. It aims to simplify understanding using a console application. The code shows sent requests and JSON responses. Resources display how to run the example with .NET installed. Added to the official site by Gordon Mack. |
![]() | Klabor bee | Betfair bot command-line interface |