naftiko: 1.0.0-alpha2 info: label: The Racing API — Basic Plan description: 'The Racing API — Basic Plan. 7 operations. Lead operation: The Racing API Courses. Self-contained Naftiko capability covering one The Racing Api business surface.' tags: - The Racing Api - Basic Plan created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: THE_RACING_API_API_KEY: THE_RACING_API_API_KEY capability: consumes: - type: http namespace: the-racing-basic-plan baseUri: https://api.theracingapi.com description: The Racing API — Basic Plan business capability. Self-contained, no shared references. resources: - name: v1-courses path: /v1/courses operations: - name: coursesv1coursesget method: GET description: The Racing API Courses outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: region_codes in: query type: string description: Filter courses by region codes. Get the full list Query from date with format YYYY-MM-DD, e.g. 2020-01-01

- name: end_date in: query type: string description:

Query to date with format YYYY-MM-DD, e.g. 2020-01-01

- name: region in: query type: string description:

Query by region codes. Get the full list here< - name: course in: query type: string description: Query by course ids. Get the full list here. - name: type in: query type: string description: '

Query by race type

Options: chase, flat, hurdle, nh_flat

' - name: going in: query type: string description: '

Query by going

Options: fast, firm, good, good_to_firm, good_to_soft, good_to_yi' - name: race_class in: query type: string description: '

Query by class

Options: class_1, class_2, class_3, class_4, class_5, class_6Query by minimum race distance (yards)

- name: max_distance_y in: query type: string description:

Query by maximum race distance (yards)

- name: age_band in: query type: string description: '

Query by age band

Options: 10yo+, 2-3yo, 2yo, 2yo+, 3-4yo, 3-5yo, 3' - name: sex_restriction in: query type: string description: '

Query by sex restriction

Options: c&f, c&g, f, f&m, m, m&g

' - name: v1-racecards-basic path: /v1/racecards/basic operations: - name: racecardsbasicv1racecardsbasicget method: GET description: The Racing API Racecards Basic outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: day in: query type: string description: Query racecards by day:
today, tomorrow - name: region_codes in: query type: string description:

Query by region codes. Get the full list here< - name: course_ids in: query type: string description: Query by course ids. Get the full list here. - name: limit in: query type: string - name: skip in: query type: string - name: v1-racecards-summaries path: /v1/racecards/summaries operations: - name: racecardssummariesv1racecardssummariesget method: GET description: The Racing API Racecards Summaries outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: date in: query type: string description: Query racecard summaries by date with format YYYY-MM-DD (e.g 2023-04-05) - name: region_codes in: query type: string description:

Query by region codes. Get the full list here< - name: course_ids in: query type: string description: Query by course ids. Get the full list here. - name: v1-racecards-horse_id-results path: /v1/racecards/{horse_id}/results operations: - name: racecardhorseresultsv1racecardshorseidresultsget method: GET description: The Racing API Racecard Horse Results outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: horse_id in: path type: string required: true - name: start_date in: query type: string description:

Query from date with format YYYY-MM-DD, e.g. 2020-01-01

- name: end_date in: query type: string description:

Query to date with format YYYY-MM-DD, e.g. 2020-01-01

- name: region in: query type: string description:

Query by region codes. Get the full list here< - name: course in: query type: string description: Query by course ids. Get the full list here. - name: type in: query type: string description: '

Query by race type

Options: chase, flat, hurdle, nh_flat

' - name: going in: query type: string description: '

Query by going

Options: fast, firm, good, good_to_firm, good_to_soft, good_to_yi' - name: race_class in: query type: string description: '

Query by class

Options: class_1, class_2, class_3, class_4, class_5, class_6Query by minimum race distance (yards)

- name: max_distance_y in: query type: string description:

Query by maximum race distance (yards)

- name: age_band in: query type: string description: '

Query by age band

Options: 10yo+, 2-3yo, 2yo, 2yo+, 3-4yo, 3-5yo, 3' - name: sex_restriction in: query type: string description: '

Query by sex restriction

Options: c&f, c&g, f, f&m, m, m&g

' - name: limit in: query type: string - name: skip in: query type: string - name: v1-results-today path: /v1/results/today operations: - name: resultstodayv1resultstodayget method: GET description: The Racing API Results Today outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: region in: query type: string description:

Query results by region codes. Get the full list