Get bookmaker by ID

GET https://rugby.highlightly.net/bookmakers/{id} Rugby API
GET https://sports.highlightly.net/rugby/bookmakers/{id} All Sports API

Retrieve one bookmaker by its id.

Use this to check whether a bookmaker you have stored still exists, or whether its information has been updated since you fetched it.

Parameters

Parameter Type Description
idrequired numberpath Requested bookmaker id.

Request

curl --request GET \
  --url 'https://rugby.highlightly.net/bookmakers/{id}' \
  --header 'x-rapidapi-key: YOUR_API_KEY'
const response = await fetch('https://rugby.highlightly.net/bookmakers/{id}', {
  headers: {
    'x-rapidapi-key': process.env.HIGHLIGHTLY_API_KEY
  }
})

if (!response.ok) {
  throw new Error(`Highlightly responded ${response.status}`)
}

const data = await response.json()
import os
import requests

response = requests.get(
    'https://rugby.highlightly.net/bookmakers/{id}',
    headers={
        'x-rapidapi-key': os.environ['HIGHLIGHTLY_API_KEY'],
    },
    timeout=10,
)

response.raise_for_status()
data = response.json()

Response

idnumberrequired
namestringrequired

Example response

200 application/json
[
  {
    "id": 5,
    "name": "Marathonbet"
  }
]

Values are the examples declared in the OpenAPI spec, not a captured live response.

Errors

Status Description
400 Bad request descriptive error.
500 Internal server error.

Using a bookmaker id

Bookmaker ids come from bookmakers. These endpoints accept one.

Endpoint Parameter
Odds bookmakerId, bookmakerName