Visualiser tools are available for the new Betfair API (API-NG) for both the Betting and Accounts API.
You can access the tools via the following links:
Accounts API - https://api-ng.betstores.com/account/
Betting API - https://api-ng.betstores.com/betting/
This visualiser is used by the API developers to allow quick experimentation with the API. As new features become available in API-NG, our aim is to extend the visualiser to support these new features to help with rapid adoption of the added functionality.
Please note that the visualiser is provided as-is, and is intended solely as a testing resource. There are a number of useful features to the visualiser:
• All existing API-NG operations are available
• You can easily experiment with the parameters for your query
Obtaining a session token for the visualiser
There are several ways that you can obtain a session token for the visualiser:
1. Borrowing a website session ssoid cookie
a. Visit http://www.betfair.com in your browser and log into the website as you would to use the website.
Please note that for other regions, please substitute betfair.com with your equivalent domain. e.g. betfair.it or betfair.es.
b. Once logged in, retrieve the value of the ssoid cookie using the method for your browser:
Visit chrome://settings/cookies and search for betfair.com. There should be a large number of cookies for betfair.com, select the "ssoid" cookie and copy the conte, which is your session token.
Right click to the left of the betfair.com header logo on the betfair.com page and select "View Page Info" from the context menu. Then select the "Security" tab, then select "View Cookies". You can sort this list alphabetically by clicking on the Cookie Name header. You can view the content of the "ssoid" cookie, this is your session token.
Copy the contents of the box with CTRL+C and then paste into an editor with CTRL+V. Look for the ssoid=SOME_VALUE; definition. The session token is the token between "ssoid=" and ";" and does not include the semi-colon at the end.
Please search for the specific instructions for viewing the cookies of your browser on the internet. The Session token is always under the betfair.
2. Using the API-NG Interactive login sample
If you already have an application key, download SampleAPI.exe, which is a compiled version of the sample interactive login code which is described in the documentation here, with the source from the API-NG Sample code github repo.
Enter your application key and follow the login instructions, your session token with be extracted from your session and presented to you via the application.