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
Query to date with format YYYY-MM-DD, e.g. 2020-01-01
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
Query by going
Options: Query by class Options: Query by maximum race distance (yards) Query by age band Options: Query by sex restriction Options: 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. Query to date with format YYYY-MM-DD, e.g. 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: Query by going Options: Query by class Options: Query by maximum race distance (yards) Query by age band Options: Query by sex restriction Options: fast, firm, good, good_to_firm,
good_to_soft, good_to_yi'
- name: race_class
in: query
type: string
description: 'class_1, class_2, class_3,
class_4, class_5, class_6Query by minimum race distance (yards)10yo+, 2-3yo, 2yo, 2yo+,
3-4yo, 3-5yo, 3'
- name: sex_restriction
in: query
type: string
description: 'c&f, c&g, f, f&m,
m, m&g
today, tomorrow
- name: region_codes
in: query
type: string
description: 2020-01-012020-01-01chase, flat, hurdle, nh_flatfast, firm, good, good_to_firm,
good_to_soft, good_to_yi'
- name: race_class
in: query
type: string
description: 'class_1, class_2, class_3,
class_4, class_5, class_6Query by minimum race distance (yards)10yo+, 2-3yo, 2yo, 2yo+,
3-4yo, 3-5yo, 3'
- name: sex_restriction
in: query
type: string
description: 'c&f, c&g, f, f&m,
m, m&g