The Racing API · Capability

The Racing API — Free Plan

The Racing API — Free Plan. 4 operations. Lead operation: The Racing API Courses. Self-contained Naftiko capability covering one The Racing Api business surface.

Run with Naftiko The Racing ApiFree Plan

What You Can Do

GET
Coursesv1coursesget — The Racing API Courses
/v1/v1/courses
GET
Regionsv1coursesregionsget — The Racing API Regions
/v1/v1/courses/regions
GET
Racecardsfreev1racecardsfreeget — The Racing API Racecards Free
/v1/v1/racecards/free
GET
Resultstodayfreev1resultstodayfreeget — The Racing API Results Today Free
/v1/v1/results/today/free

MCP Tools

racing-api-courses

The Racing API Courses

read-only idempotent
racing-api-regions

The Racing API Regions

read-only idempotent
racing-api-racecards-free

The Racing API Racecards Free

read-only idempotent
racing-api-results-today-free

The Racing API Results Today Free

read-only idempotent

Capability Spec

the-racing-free-plan.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: The Racing API — Free Plan
  description: 'The Racing API — Free Plan. 4 operations. Lead operation: The Racing API Courses. Self-contained Naftiko capability
    covering one The Racing Api business surface.'
  tags:
  - The Racing Api
  - Free 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-free-plan
    baseUri: https://api.theracingapi.com
    description: The Racing API — Free 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 <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_regions_v1_courses_regions_get'
    - name: v1-courses-regions
      path: /v1/courses/regions
      operations:
      - name: regionsv1coursesregionsget
        method: GET
        description: The Racing API Regions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-racecards-free
      path: /v1/racecards/free
      operations:
      - name: racecardsfreev1racecardsfreeget
        method: GET
        description: The Racing API Racecards Free
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: day
          in: query
          type: string
          description: Query racecards by day:<br> today, tomorrow
        - name: region_codes
          in: query
          type: string
          description: <p>Query by region codes. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_regions_v1_courses_regions_get'>here<
        - name: course_ids
          in: query
          type: string
          description: Query by course ids. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_courses_v1_courses_get'>here</a>.
        - name: limit
          in: query
          type: string
        - name: skip
          in: query
          type: string
    - name: v1-results-today-free
      path: /v1/results/today/free
      operations:
      - name: resultstodayfreev1resultstodayfreeget
        method: GET
        description: The Racing API Results Today Free
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: query
          type: string
          description: <p>Query results by region codes. Get the full list <a href='https://api.theracingapi.com/documentation#tag/Courses/operation/list_regions_v1_courses_regions_ge
        - name: limit
          in: query
          type: string
        - name: skip
          in: query
          type: string
    authentication:
      type: basic
      username: '{{env.THE_RACING_API_USER}}'
      password: '{{env.THE_RACING_API_PASS}}'
  exposes:
  - type: rest
    namespace: the-racing-free-plan-rest
    port: 8080
    description: REST adapter for The Racing API — Free Plan. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/courses
      name: v1-courses
      description: REST surface for v1-courses.
      operations:
      - method: GET
        name: coursesv1coursesget
        description: The Racing API Courses
        call: the-racing-free-plan.coursesv1coursesget
        with:
          region_codes: rest.region_codes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/courses/regions
      name: v1-courses-regions
      description: REST surface for v1-courses-regions.
      operations:
      - method: GET
        name: regionsv1coursesregionsget
        description: The Racing API Regions
        call: the-racing-free-plan.regionsv1coursesregionsget
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/racecards/free
      name: v1-racecards-free
      description: REST surface for v1-racecards-free.
      operations:
      - method: GET
        name: racecardsfreev1racecardsfreeget
        description: The Racing API Racecards Free
        call: the-racing-free-plan.racecardsfreev1racecardsfreeget
        with:
          day: rest.day
          region_codes: rest.region_codes
          course_ids: rest.course_ids
          limit: rest.limit
          skip: rest.skip
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/results/today/free
      name: v1-results-today-free
      description: REST surface for v1-results-today-free.
      operations:
      - method: GET
        name: resultstodayfreev1resultstodayfreeget
        description: The Racing API Results Today Free
        call: the-racing-free-plan.resultstodayfreev1resultstodayfreeget
        with:
          region: rest.region
          limit: rest.limit
          skip: rest.skip
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: the-racing-free-plan-mcp
    port: 9090
    transport: http
    description: MCP adapter for The Racing API — Free Plan. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: racing-api-courses
      description: The Racing API Courses
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-racing-free-plan.coursesv1coursesget
      with:
        region_codes: tools.region_codes
      outputParameters:
      - type: object
        mapping: $.
    - name: racing-api-regions
      description: The Racing API Regions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-racing-free-plan.regionsv1coursesregionsget
      outputParameters:
      - type: object
        mapping: $.
    - name: racing-api-racecards-free
      description: The Racing API Racecards Free
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-racing-free-plan.racecardsfreev1racecardsfreeget
      with:
        day: tools.day
        region_codes: tools.region_codes
        course_ids: tools.course_ids
        limit: tools.limit
        skip: tools.skip
      outputParameters:
      - type: object
        mapping: $.
    - name: racing-api-results-today-free
      description: The Racing API Results Today Free
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-racing-free-plan.resultstodayfreev1resultstodayfreeget
      with:
        region: tools.region
        limit: tools.limit
        skip: tools.skip
      outputParameters:
      - type: object
        mapping: $.