# BOAT RACE Schedule Scraper (`bovi/boatrace-scraper`) Actor

Collects public race meeting records from the official BOAT RACE daily schedule, including meeting title, racecourse, date, date range, day, status, and race page URL.

- **URL**: https://apify.com/bovi/boatrace-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 boat race schedule scrapers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## BOAT RACE Schedule Scraper

BOAT RACE Schedule Scraper extracts race meeting records from the public daily schedule on `boatrace.jp`, including titles, racecourses, dates, statuses, and official race page URLs. It does not sign in, and no buyer login or API key is required.

- Save one record per meeting shown on the current public page.
- Build a daily list of racecourses and official race page links.
- Check the displayed day and date range of multi-day meetings.
- Read current schedule status text without using a betting account.
- Export meeting data for downstream use.

### What you get

Each saved item is one meeting from the public daily schedule. The Actor does not sign in or collect betting account data; you do not provide cookies, a boatrace.jp password, or a proxy password. Text is stored as displayed on the site, not translated.

| Field | Type | Contents |
| --- | --- | --- |
| `id` | string | Meeting id built from the URL date parameter `hd` and racecourse code `jcd`, joined with a hyphen, such as `20261112-02`. Always present. |
| `title` | string | Race meeting name as shown. Always present. |
| `url` | string | Absolute boatrace.jp URL: the race index link for table rows or the published card link for upcoming meetings. Always present. |
| `location` | string | Racecourse name as shown: image alt text or first-cell text for a table row, and the area label for a card. Always present. |
| `date` | ISO 8601 string | Race date as `YYYY-MM-DD`, converted from the eight-digit `hd` parameter. Always present. |
| `date_range` | string | Displayed meeting range with spaces removed, such as `11/12-11/15`; omitted from the record when unavailable. |
| `day` | string | Meeting-day text after the range on a table row, such as `初日`; omitted from the record when unavailable. |
| `status` | string | Schedule-table status text, such as `最終Ｒ発売終了`; omitted from the record when no text is available. |
| `attributes` | array of strings | Sorted `is-` class labels. Always present and empty when none are found; the sample value is `is-ippan`. |
| `source` | string | Always `boatrace.jp`. |

No field is written as `null`; optional source values are omitted from the record.

Records are read from server-rendered HTML. Table rows are links to `/owpc/pc/race/raceindex` with an eight-digit `hd` and a `jcd`. Rows are parsed first, duplicate ids are dropped, then the first `maxResults` records are pushed. If the page also contains upcoming-meeting cards, their meetings are added after the table rows when the `id` is new; cards carry no `day` or `status`.

The default dataset view is named BOAT RACE Daily Schedule and shows `id`, `date`, `title`, `location`, `date_range`, `day`, `status`, and `url`. `attributes` and `source` remain in each record.

### Sample output

Example record.

```json
{
  "id": "20261112-02",
  "title": "ＢＡＣＨプラザ杯",
  "url": "https://www.boatrace.jp/owpc/pc/race/raceindex?jcd=02&hd=20261112",
  "location": "戸田",
  "date": "2026-11-12",
  "attributes": [
    "is-ippan"
  ],
  "source": "boatrace.jp",
  "status": "最終Ｒ発売終了",
  "date_range": "11/12-11/15",
  "day": "初日"
}
```

### Pricing

Billing is pay-per-event. The prices below are Free plan prices.

| Charge | When it applies | Free plan price |
| --- | --- | --- |
| Actor Start (`apify-actor-start`) | Charged when the Actor starts. The number of events depends on memory: one event per GB, with a minimum of one event. Default memory is 512 MB, so the minimum of one event applies. | $0.00005 per event on the Free plan ($0.05 per 1,000 events and $0.50 per 10,000 events on the Free plan) |
| Result (`apify-default-dataset-item`) | Primary event, titled BOAT RACE Schedule Scraper. One scraped result with all fields. | $0.01 per result on the Free plan ($10 per 1,000 results and $100 per 10,000 results on the Free plan) |

The Apify Free plan includes $5 per month of platform usage credit. At the default 512 MB, one Actor Start event applies, and the $5 credit covers 499 results in a single run ($4.99005 per run on the Free plan). A run that saves no meetings adds no result events; the Actor Start event still applies.

You pay only for the events listed below. This Actor does not use the Pay per event + usage option, so the platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.

### How to use

1. Open BOAT RACE Schedule Scraper in your Apify account.
2. Set `maxResults` to the maximum number of meeting records to save.
3. Set `proxyConfiguration`; use `useApifyProxy` true for Apify Proxy or false for a direct connection.
4. Start the run to request the current public schedule and save parsed meetings up to `maxResults`.
5. Open the dataset to review titles, racecourses, dates, statuses, and official URLs.
6. Repeat the run through Apify Schedules. A daily run is a reasonable starting point.

```json
{
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

All inputs are optional.

| Parameter | What it does | Default |
| --- | --- | --- |
| `maxResults` | Maximum number of meeting records to save. A numeric value is truncated to an integer; missing or non-convertible values use 50. An integer of 0 or below saves nothing. | `50` |
| `proxyConfiguration` | When `useApifyProxy` is true, creates an Apify proxy configuration from this object. When false, or when the object does not turn proxy on, the request connects directly. | `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}` |

The input form minimum for `maxResults` is 1.

### Limits and edge cases

> **Note:** There is no date input. Every run reads `https://www.boatrace.jp/owpc/pc/race/index`, and boatrace.jp decides which day's schedule that page shows.

| Condition | What you see | What to do |
| --- | --- | --- |
| `maxResults` is 0 or negative | The run returns before the request, logs `maxResults is zero; no race listings requested`, and ends Succeeded with an empty dataset. No exception is raised. | Set `maxResults` to an integer of 1 or higher. |
| The fetched page has no row that passes the parse checks | If no row has a title, location, `jcd`, and valid eight-digit `hd`, including a 200 response with a block or error page and no rows, the run ends Succeeded with an empty dataset. No exception is raised. For a fetched page with no rows, the reason is stored only in the run log: `Collected 0 race listings from boatrace.jp (maxResults=…)`. | Check the public schedule page. The Actor cannot switch the date or URL. |
| `maxResults` is missing or not convertible to an integer | The cap is treated as 50. | Pass an integer for a different cap. |
| The page has fewer unique meetings than `maxResults` | Only parsed meetings are saved; the cap is not filled with extra rows. | No change is required. |
| The schedule request fails | Three attempts are made with a 40-second timeout each; retries cover any exception, including HTTP error statuses. The waits are 1 second and 2 seconds, then the last error is raised. Nothing has been saved because fetching precedes pushing; the run ends as Failed. | Run again. If connected directly, set `useApifyProxy` to true. |

Rows are pushed one by one, only after the fetch and parse have finished. A run that fails or is aborted before that has no rows. A run aborted or timed out during the push loop keeps the rows already pushed; the rest are not saved.

The Actor does not select individual races inside a meeting or collect betting account data.

### FAQ

#### How much does it cost to scrape the BOAT RACE schedule?

See Pricing for the Free-plan event prices and calculation.

#### Why is the dataset empty?

See Limits and edge cases for the causes and run outcome.

#### What should I do if the run fails?

See Limits and edge cases for retry behavior and what is saved.

#### Can I collect a day other than the one on the schedule page?

No. The source is the current public daily schedule, and the site chooses which date it shows. `maxResults` only limits how many meetings are saved; there is no separate historical mode.

#### Is it legal to collect this public BOAT RACE schedule?

The Actor reads public schedule data from boatrace.jp and does not sign in or collect betting account data. Whether collection is allowed depends on the source terms and applicable law for your use case. This README does not give a legal guarantee.

### Usage statistics

This Actor creates a small, content-free summary at the end of each run, used only to monitor reliability and improve this Actor. No input values, credentials or scraped data are sent.

A copy of the exact record for your run is saved as `USAGE_STATS` in your own Apify key-value store.

To opt out, set `disableUsageStats` to `true` in the input. Nothing is sent then.

[Full list of collected fields](https://api.apify.com/v2/key-value-stores/v9rgHjMKLDGtHf8tD/records/index.html)

# Actor input Schema

## `maxResults` (type: `integer`):

Maximum number of current race meeting records to save.

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

Optional Apify proxy settings. With useApifyProxy false, requests connect directly.

## Actor input object example

```json
{
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with race meetings from the official daily schedule.

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/boatrace-scraper").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 = { "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    } }

# Run the Actor and wait for it to finish
run = client.actor("bovi/boatrace-scraper").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 '{
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/boatrace-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/boatrace-scraper"
        }
    }
}
```

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/poK8L28Z29QDZBU20/builds/kPijVbMwwGWjRb6qh/openapi.json
