Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


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

 


...

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": [
        {
            GROUP or EVENT or RACE (RACE only if Greyhounds/Horse Racing)
        },
        ...
    ],
    "id": "1", // Betfair specific eventTypeId
    "name": "Soccer",
    "type": "EVENT_TYPE"
}
 


...



 

 

{
    "children": [
        {
            GROUP, MARKET or EVENT
        },
        ...
    ],
    "id": "27244118", // Betfair specific eventId
    "name": "South Korea U20 (W) v Mexico U20 (W)",
    "countryCode": "GB",
    "type": "EVENT"
}

 


 


{
    "children": [
        {
            MARKET
        },
        ...
    ],
    "id": "27247020.1115", // Betfair specific raceId
    "name": "1300m 3yo",
    "startTime": "2014-08-12T11:15:00.000Z",
    "type": "RACE",
    "venue": "Deauville",
"raceNumber" "R1"// US specific information about race numbers
    "countryCode": "GB"
}
 


...