...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
- Endpoint & Required Headers
- Example Request
- Supported Locales
- Navigation Data File Structure
- JSON Model Structure
Anchor | ||||
---|---|---|---|---|
|
This request allows the retrieval of the full Betfair market navigation menu from a compressed file. This is a beta release, the production version will be available from the 25th August.
The file can be accessed via httpshttps://beta-api.betfair.com/exchange/betting/rest/v1/en/navigation/lhmmenu.json and and is updated every 5 minutes.
...
The following request headers are required:
- X-Application - Your Application Key
The following request headers are optional:
- X-Authentication - Session Token used to verify the customer is authenticated
- Host- Host on which the request is being called
- X-IP - IP from which the request has been made.
Anchor | ||||
---|---|---|---|---|
|
GET /exchange/betting/rest/v1/en/navigation/menu.json HTTP/ 1.1 Host: api.betfair.com Connection: keep-alive X-Application: <YourAppKey> User-Agent: Mozilla/ 5.0 (Windows NT 6.1 ; WOW64) AppleWebKit/ 537.36 (KHTML, like Gecko) Chrome/ 36.0 . 1985.125 Safari/ 537.36 Accept: */* Accept-Encoding: gzip,deflate,sdch |
Anchor | ||||
---|---|---|---|---|
|
The following languages are supported by the navigation file:
English - en
Spanish - es
Italian - it
German - de
Swedish - sv
Portuguese -pt
Russian - ru
Greek - el
Bulgarian – bg
Danish - de
Anchor | ||||
---|---|---|---|---|
|
This is a diagram showing how the LHM Data File is structured.
...
An EVENT node has zero, one or many GROUP nodes
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
{ "children" : [ { EVENT_TYPE1 }, { EVENT_TYPE2 }, ... ], "id" : 0 , // always 0 "name" : "ROOT" , // always ROOT "type" : "GROUP" // always GROUP } |
Anchor | ||||
---|---|---|---|---|
|
{ "children" : [ { GROUP or EVENT or RACE (RACE only if Greyhounds/Horse Racing) }, ... ], "id" : "1" , // Betfair specific eventTypeId "name" : "Soccer" , "type" : "EVENT_TYPE" } |
Anchor | ||||
---|---|---|---|---|
|
{ "children" : [ { GROUP or EVENT }, ... ], "id" : "74568202414" , // Not a Betfair specific id, different for every GROUP "name" : "Womens Soccer" , "type" : "GROUP" } |
Anchor | ||||
---|---|---|---|---|
|
{ "children" : [ { GROUP or MARKET }, ... ], "id" : "27244118" , // Betfair specific eventId "name" : "South Korea U20 (W) v Mexico U20 (W)" , "type" : "EVENT" } |
Anchor | ||||
---|---|---|---|---|
|
{ "children" : [ { MARKET }, ... ], "id" : "27247020.1115" , // Betfair specific raceId "name" : "1300m 3yo" , "startTime" : "2014-08-12T11:15:00.000Z" , "type" : "RACE" , "venue" : "Deauville" } |
Anchor | ||||
---|---|---|---|---|
|
{ "exchangeId" : "1" , // Betfair specific exchangeId "id" : "1.114881860" , // Betfair specific marketId "marketStartTime" : "2014-08-14T00:00:00.000Z" , // Betfair specific marketStartTime "name" : "Over/Under 6.5 Goals" , "type" : "MARKET" } |