{
  "openapi": "3.0.1",
  "info": {
    "title": "Equibase Scraper | Horse Racing Entries and Results",
    "description": "Equibase scraper for horse racing entries and results: 50 runners in 10 seconds, 68 fields each. One row per horse with morning-line odds, jockey, trainer, owner, pedigree, career record, recent form, finish and payoffs. Type a track code or paste an Equibase URL. No account or API key needed.",
    "version": "1.0",
    "x-build-id": "4Q9XXsGcvnoiWzrII"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~equibase-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-equibase-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/silentflow~equibase-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-equibase-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/silentflow~equibase-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-equibase-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "tracks": {
            "title": "🏇 Tracks",
            "type": "array",
            "description": "Equibase track codes or track names, for example <code>CD</code>, <code>SA</code>, <code>GP</code>, <code>Keeneland</code> or <code>Woodbine</code>. US, Canadian and Puerto Rican tracks are covered.<br><br>Leave empty, with no URL either, to read every track with a card that day. A full card returns 60 to 120 runners.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Equibase URLs",
            "type": "array",
            "description": "Paste Equibase pages to read them as they are: entries (<code>https://www.equibase.com/static/entry/CD110526USA-EQB.html</code>), result charts (<code>/static/chart/summary/...</code>) or mobile track and race pages. Each URL brings its own track and date; add <code>#RACE5</code> to an entries URL to read a single race.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "cardType": {
            "title": "📋 Entries or results",
            "enum": [
              "entries",
              "results"
            ],
            "type": "string",
            "description": "<b>Entries</b> list the horses entered in upcoming races (published 2 to 3 days ahead) with post position, morning-line odds, jockey, trainer and owner.<br><b>Results</b> add the official order of finish, win, place and show payoffs and every exotic payoff of races already run.",
            "default": "entries"
          },
          "date": {
            "title": "📅 Race date",
            "type": "string",
            "description": "Race day as <code>YYYY-MM-DD</code>, for example <code>2026-11-05</code>. <code>today</code>, <code>tomorrow</code> and <code>yesterday</code> work too.<br><br>Leave empty for each track's next card (entries) or latest card (results). Results stay available for past seasons: <code>2025-05-03</code> at <code>CD</code> is Kentucky Derby day."
          },
          "maxItems": {
            "title": "🔢 Max runners",
            "minimum": 1,
            "type": "integer",
            "description": "How many rows to save in total, one per horse in a race. A race has 5 to 14 runners, a full card 60 to 120. Set it to what you need: the run stops as soon as it is reached.",
            "default": 50
          },
          "raceTypes": {
            "title": "🏆 Race types",
            "type": "array",
            "description": "Keep races whose type or name contains one of these words: <code>stakes</code>, <code>graded</code>, <code>maiden</code>, <code>claiming</code>, <code>allowance</code>, <code>Breeders' Cup</code>. Leave empty to keep every race.",
            "items": {
              "type": "string"
            }
          },
          "surfaces": {
            "title": "🌱 Surfaces",
            "type": "array",
            "description": "Keep races run on these surfaces. Leave empty to keep every surface. Results older than a few days do not always state their surface: those races are skipped by this filter.",
            "items": {
              "type": "string",
              "enum": [
                "dirt",
                "turf",
                "synthetic"
              ],
              "enumTitles": [
                "Dirt",
                "Turf",
                "Synthetic (all weather)"
              ]
            }
          },
          "excludeScratched": {
            "title": "🚫 Skip scratched horses",
            "type": "boolean",
            "description": "Drop the horses withdrawn from a race. Off by default: scratched horses stay in the dataset with <code>isScratched: true</code>, so you can track late changes.",
            "default": false
          },
          "includeHorseDetails": {
            "title": "🐎 Horse profile",
            "type": "boolean",
            "description": "Adds the horse's pedigree (sire, dam, dam sire), breeder, color, sex, foaling date, age, career record and year-by-year record to every row. Reads one more page per horse: turn it off for faster runs over a whole day of racing.",
            "default": true
          },
          "debugMode": {
            "title": "🐞 Debug log",
            "type": "boolean",
            "description": "Writes a detailed log of every page read. Leave off for normal runs.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}