# HKJC Racing Scraper: Results, Dividends & Jockey/Trainer Stats (`getascraper/hkjc-results-dividends-stats`) Actor

Extract HKJC race results, pool dividends, and jockey/trainer season stats from racing.hkjc.com as structured JSON. Covers Sha Tin and Happy Valley, every pool type: Win, Place, Quinella, Trio. Feeds Python/pandas, Excel, Sheets, and MCP agents. Skip six brittle DIY scrapers. $0.0079 per result.

- **URL**: https://apify.com/getascraper/hkjc-results-dividends-stats.md
- **Developed by:** [GetAScraper](https://apify.com/getascraper) (community)
- **Categories:** Sports, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.93 / 1,000 race entries

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## HKJC Results, Dividends & Jockey/Trainer Stats Scraper

### 🔍 What does this Actor do?

This Actor pulls **Hong Kong Jockey Club race results, full pool dividends, and jockey/trainer season stats** straight from [racing.hkjc.com](https://racing.hkjc.com), the official HKJC racing site. Point it at a race day, a date range, or a single race, and get back structured data: every horse's finishing position, jockey, trainer, weight, draw and time, the full payout table for every betting pool (Win, Place, Quinella, Forecast, Trio and more), and optional current-season standings for the jockeys and trainers involved.

Runs on Apify's schedule, proxy, and monitoring infrastructure, so you can pull results the morning after every meeting without touching a browser.

### 💡 Why use this Actor?

- **Punters and handicappers** who model form need the dividend history, not just who finished where. This Actor is built around full pool payouts as a first-class dataset, not an afterthought.
- **Racing data analysts and quants** building win-rate or ROI models need jockey and trainer season form alongside results, in the same run.
- **Content and media teams** covering Hong Kong racing need clean, structured recaps without manually copying results tables after every meeting.

### ⚙️ How to use this Actor

1. Click **Try for free** on this page, or fetch the Actor via the API.
2. Set a date (or date range), pick a racecourse (Sha Tin, Happy Valley, or both), and optionally list specific race numbers. Leave everything else on its defaults to fetch a full recent meeting day.
3. Turn on **Include Jockey & Trainer Season Stats** if you also want current-season standings for everyone who rode or trained in the results you just pulled.
4. Click **Start** and download your dataset in JSON, CSV, Excel, or HTML once the run finishes.

### 📥 Input

| Field | Type | Required | Description |
|---|---|---|---|
| Race Date From | string (date) | No | Earliest race day to fetch, `YYYY-MM-DD`. Defaults to a confirmed past meeting day. |
| Race Date To | string (date) | No | Latest race day to fetch. Leave equal to Race Date From for one day. |
| Racecourse | enum | No | `ST` (Sha Tin), `HV` (Happy Valley), or `BOTH`. |
| Race Numbers | array of integers | No | Specific race numbers to include. Leave empty for every race that day. |
| Include Pool Dividends | boolean | No | Fetch the full payout table (Win, Place, Quinella, Forecast, Trio and more) for each race. |
| Include Jockey & Trainer Season Stats | boolean | No | Also fetch current-season standings for every jockey and trainer seen in the results. |
| Max Race Days per Run | integer | No | Caps how many meeting days one run processes, even across a wider date range. |
| Proxy Configuration | object | No | Apify Proxy settings. Datacenter proxy works reliably for this site. |

### 📤 Output

Each run produces one dataset with three kinds of rows, each viewable in its own tab in the Output view: race results, pool dividends, and jockey/trainer season stats.

```json
{
  "dataset_type": "race_result",
  "race_date": "2026/09/06",
  "racecourse": "ST",
  "race_number": 1,
  "race_title": "GLENEALY HANDICAP",
  "race_class": "Class 5 - 1200M - (40-0)",
  "going": "GOOD",
  "course": "TURF - \"A\" Course",
  "placing": 1,
  "horse_number": 13,
  "horse_name": "GOOD FORTUNE",
  "jockey_name": "H Y Yuen",
  "trainer_name": "P C Ng",
  "draw": 5,
  "finish_time": "1:08.59",
  "win_odds": 5.7
}
```

```json
{
  "dataset_type": "dividend",
  "race_date": "2026/09/06",
  "racecourse": "ST",
  "race_number": 1,
  "pool": "QUINELLA",
  "winning_combination": "7,13",
  "dividend_hkd": 495.5
}
```

### 📊 Data table

| Field | Type | Description |
|---|---|---|
| race\_date, racecourse, race\_number | string, string, integer | Which meeting and race the row belongs to |
| horse\_name, horse\_number, draw | string, integer, integer | Horse identity and starting draw |
| jockey\_name, trainer\_name | string, string | Who rode and trained the horse |
| placing, finish\_time, win\_odds | integer, string, number | Finishing result |
| pool, winning\_combination, dividend\_hkd | string, string, number | Betting pool, winning numbers, and payout in HK dollars |
| role, name, wins, win\_percent | string, string, integer, number | Jockey/trainer season standing (when stats are enabled) |

### 💰 Pricing

This Actor uses Apify's pay-per-event pricing. You pay only for the results you actually get, and an empty run costs nothing beyond a small platform fee. There is no subscription.

### ⭐ Enjoying HKJC Results, Dividends & Jockey/Trainer Stats Scraper?

If this Actor saves you time, a quick rating helps other Hong Kong racing data buyers find it. You can leave a review from the Actor's page after a run completes.

### ❓ FAQ

**Does this Actor need a login or betting account?**
No. It reads publicly published race information from HKJC's own racing site.

**Does it cover dividend and payout data?**
Yes. Every pool HKJC publishes for a race (Win, Place, Quinella, Quinella Place, Forecast, Tierce, Trio and more) is included when Include Pool Dividends is on, which it is by default.

**Can I get jockey and trainer form, not just race results?**
Yes, turn on Include Jockey & Trainer Season Stats to get current-season wins, places, win rate, and stakes won for everyone who appeared in your results.

**Does this cover overseas or Simulcast races?**
No, this Actor covers HKJC's own local Hong Kong meetings at Sha Tin and Happy Valley only.

**What if HKJC changes its site layout?**
Open an issue on this Actor's Issues tab with the affected date and race, and it will be investigated.

### 🔗 Other actors

- [Google Maps List Scraper](https://apify.com/getascraper/google-maps-list-scraper) ↗ - extract contact and location data from any public Google Maps shared list.
- [YachtWorld Scraper](https://apify.com/getascraper/yachtworld-scraper) ↗ - boat listings, prices, and broker contacts from YachtWorld.
- [Kroger Scraper](https://apify.com/getascraper/kroger-scraper) ↗ - product and pricing data from Kroger's online grocery catalog.
- [Freshersworld Jobs Scraper](https://apify.com/getascraper/freshersworld-jobs-scraper) ↗ - entry-level and fresher job listings from India's Freshersworld.

# Actor input Schema

## `dateFrom` (type: `string`):

Earliest race day to fetch results and dividends for, in YYYY-MM-DD format. HKJC race meetings happen on select Wednesdays (Happy Valley) and weekends (Sha Tin), so not every date has data. The default points at a confirmed past meeting day so the run always has real races to process.

## `dateTo` (type: `string`):

Latest race day to fetch, in YYYY-MM-DD format. Leave equal to Race Date From for a single day. A wider range is processed one meeting day at a time, up to the Max Race Days limit below.

## `racecourse` (type: `string`):

Which HKJC racecourse to fetch: Sha Tin (ST), Happy Valley (HV), or both. Since a given date usually only has one course racing, leaving this on Both is safe and simply skips the course that isn't racing that day.

## `raceNumbers` (type: `array`):

Specific race numbers to include, e.g. \[1, 2, 3]. Leave empty to fetch every race on the selected date(s) (a typical HKJC meeting has 8-11 races).

## `includeDividends` (type: `boolean`):

Fetch the full pool payout table for each race (Win, Place, Quinella, Quinella Place, Forecast, Tierce, Trio, Quartet, Double, Tribella, and any other pools HKJC publishes). This is pulled from the same results page as the race result, so it adds negligible extra requests. The named competitor's HKJC Actor explicitly does not offer dividend/payout data yet, so this is the main reason to use this Actor over that one.

## `includeJockeyTrainerStats` (type: `boolean`):

Also fetch the current-season jockey and trainer ranking tables (total wins, places, win rate) from HKJC's own standings pages. This is a separate dataset from race results, so it defaults off to keep a plain results run fast and cheap; turn it on when you specifically need aggregate jockey/trainer performance rather than per-race appearances.

## `maxRaceDays` (type: `integer`):

Caps how many distinct race meeting days are processed in a single run, even if Race Date From/To spans a wider range. Keeps the default run fast and predictable; raise it for bulk historical pulls, but expect a longer run.

## `proxyConfiguration` (type: `object`):

racing.hkjc.com is a server-rendered legacy site with no observed IP-reputation gating, so the default Apify Proxy (datacenter) group works reliably and is far cheaper than residential IPs.

## Actor input object example

```json
{
  "dateFrom": "2026-09-06",
  "dateTo": "2026-09-06",
  "racecourse": "BOTH",
  "raceNumbers": [],
  "includeDividends": true,
  "includeJockeyTrainerStats": false,
  "maxRaceDays": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "dateFrom": "2026-09-06",
    "dateTo": "2026-09-06",
    "racecourse": "BOTH",
    "raceNumbers": [],
    "includeDividends": true,
    "includeJockeyTrainerStats": false,
    "maxRaceDays": 3,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getascraper/hkjc-results-dividends-stats").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "dateFrom": "2026-09-06",
    "dateTo": "2026-09-06",
    "racecourse": "BOTH",
    "raceNumbers": [],
    "includeDividends": True,
    "includeJockeyTrainerStats": False,
    "maxRaceDays": 3,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("getascraper/hkjc-results-dividends-stats").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "dateFrom": "2026-09-06",
  "dateTo": "2026-09-06",
  "racecourse": "BOTH",
  "raceNumbers": [],
  "includeDividends": true,
  "includeJockeyTrainerStats": false,
  "maxRaceDays": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call getascraper/hkjc-results-dividends-stats --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getascraper/hkjc-results-dividends-stats"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/pfTFH5A6PmCzcGMh3/builds/xAWuM8NfeXdl39kvp/openapi.json
