Betting on Spanish Exchange

 

How to Access the Spanish Exchange API

Customers who have registered an Spanish Exchange account can access the Betfair Exchange API.  Customers  can register an account via https://www.betfair.es/prospect/exchange

To use the Spanish Exchange with the API you need to create an Application Key for your Spanish Exchange account by following the process outlined via Application Keys

Once you have  created an App Key, you will need to login the API using the Spanish Exchange endpoint which is as follows:

Non-interactive Login

For fully automated applications

Interactive Login - Desktop Application

Interactive Login - API Endpoint

Once a session token has been obtained via the .es login methods above, any further API requests should be sent to the UK Exchange endpoints indicated below.  

 Requests to these endpoints will automatically return the markets that are available to Spanish Exchange customers

Betting API Endpoints

Interface

Endpoint

JSON-RPC Prefix

<method> Example

JSON-RPC

https://api.betfair.com/exchange/betting/json-rpc/v1

<method>

SportsAPING/v1.0/listMarketBook

JSON REST

https://api.betfair.com/exchange/betting/rest/v1.0/

 

 

Accounts API Endpoints

Interface

Endpoint

JSON-RPC Prefix

<method> Example

JSON-RPC

https://api.betfair.com/exchange/account/json-rpc/v1

<method>

 AccountAPING/v1.0/getAccountFunds

JSON REST

https://api.betfair.com/exchange/account/rest/v1.0