Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • Endpoint & Required Headers
  • ExampleExample Request
  • Supported Locales
  • Navigation Data File Structure
  • JSON Model Structure

...


Info
titleBest Practice
The file data is cached and new request for the file once an hour should be suitable for those looking to accurately recreate the Betfair navigation menu.

...


The following request headers are required:

...


 

Code Block
GET https://api.betfair.com/exchange/betting/rest/v1/en/navigation/menu.json
Connection: keep-alive
X-Application: <AppKey>
X-Authentication: <SessionToken>
Accept: application/json
Accept-Encoding: gzip,deflate

 


The following languages are supported by the navigation file:

en | en_GB | da | de | es | it | pt | ru | sv

English - en

Spanish - es

Italian  - it

German - de

Swedish - sv

Portuguese  -pt

Russian - ru

Danish - da

This is a diagram showing how the Navigation Data File is structured.

 

 



In plain English:

ROOT group node has one or many EVENT_TYPE nodes

...


 

{
    "children": [
        {
            EVENT_TYPE1
        },
        {
            EVENT_TYPE2
        },
        ...
    ],
    "id": 0, // always 0
    "name": "ROOT", // always ROOT
    "type": "GROUP" // always GROUP
}
 


...

...

...


 

{  
    "exchangeId": "1", // Betfair specific exchangeId
    "id": "1.114881860", // Betfair specific marketId
    "marketStartTime": "2014-08-14T00:00:00.000Z", // Betfair specific marketStartTime
    "marketType": "WIN", // Betfair specific marketType (e.g. PLACE, WIN, FORECAST etc.)
    "numberOfWinners": "2", // Betfair specific number of winners
    "name": "Over/Under 6.5 Goals",
    "type": "MARKET"
}