The Racing API · JSON Structure

The Racing Api Race Runner Odds Structure

RaceRunnerOdds schema from The Racing API

Type: object Properties: 4 Required: 3
Horse RacingSportsStatisticsBettingAnalytics

RaceRunnerOdds is a JSON Structure definition published by The Racing API, describing 4 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

race_id horse_id horse odds

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/the-racing-api/refs/heads/main/json-structure/the-racing-api-race-runner-odds-structure.json",
  "name": "RaceRunnerOdds",
  "description": "RaceRunnerOdds schema from The Racing API",
  "type": "object",
  "properties": {
    "race_id": {
      "type": "string",
      "name": "Race Id"
    },
    "horse_id": {
      "type": "string",
      "name": "Horse Id"
    },
    "horse": {
      "type": "string",
      "name": "Horse"
    },
    "odds": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/components/schemas/RaceRunnerOddsBookmakers"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "name": "Odds",
      "default": []
    }
  },
  "required": [
    "race_id",
    "horse_id",
    "horse"
  ]
}