# TV Tokyo Program Schedule Scraper (`bovi/tvtokyo-scraper`) Actor

Collect public TV Tokyo listings for one Japan date from the official timetable JSON. Get titles, times, descriptions, categories, detail URLs, and broadcast attributes. Run with date and maxResults; no login. Pricing: $0.0035 per dataset item plus $0.00005 per Actor Start on Free.

- **URL**: https://apify.com/bovi/tvtokyo-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 $3.50 / 1,000 tv tokyo program 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

## TV Tokyo Program Schedule Scraper

Collect public TV Tokyo broadcast listings for one Japan date from the official timetable JSON on tv-tokyo.co.jp. The default maximum is 50 records; on the Free plan you pay $0.0035 for each dataset item event and $0.00005 for the Actor Start event.

- Extract program titles, start times, descriptions, categories, and official detail URLs.
- Build date-specific TV Tokyo listings for schedule monitoring and broadcast research.
- Download broadcast attributes such as duration, catch-up availability, 4K status, icons, and image URLs.
- Run without a login, browser rendering, cookies, or your own proxy or API keys.
- Limit the number of returned records with `maxResults`.

### What you get

| Field | Type | What it contains | Availability |
|---|---|---|---|
| `id` | string | Record ID built from the broadcast date, schedule slot, and `tv-tokyo` channel | Included; not empty |
| `title` | string | Program title | Included when supplied with a valid URL; not empty |
| `url` | string | Official TV Tokyo program detail URL | Included when supplied; not empty |
| `channel` | string | Channel identifier, such as `tv-tokyo` | Included; not empty |
| `date` | ISO 8601 string | Broadcast date in `YYYY-MM-DD` form | Included; not empty |
| `content_type` | string | Content type, `program` for timetable records | Included; not empty |
| `schedule` | string | Japan start time | Included when available; omitted when unavailable |
| `start_timestamp_ms` | integer | Start timestamp in milliseconds | Included when supplied; omitted when absent |
| `end_timestamp_ms` | integer | End timestamp in milliseconds | Included when supplied; omitted when absent |
| `duration_minutes` | integer | Duration calculated from the start and end timestamps | Included when both timestamps are valid and ordered; omitted otherwise |
| `description` | string | Program description | Included when supplied; omitted when empty |
| `category` | string | Comma-separated category string taken from the timetable data, such as `info,variety` | Included when available; omitted when empty |
| `icons` | array of strings | Program icon names | Included; may be an empty array |
| `catch_up_available` | boolean | Whether catch-up availability is indicated | Included; `false` when not indicated |
| `is_4k` | boolean | Whether 4K status is indicated | Included; `false` when not indicated |
| `image_url` | string | TV Tokyo image URL | Included when supplied; omitted when empty |
| `program_id` | string | Source program identifier | Optional; omitted when not supplied or empty |

### Sample output

```json
{
  "id": "20261027-0422-tv-tokyo",
  "title": "ものスタ",
  "url": "https://www.tv-tokyo.co.jp/broad_tvtokyo/program/detail/202610/20583_202610270422.html",
  "channel": "tv-tokyo",
  "date": "2026-10-27",
  "content_type": "program",
  "schedule": "4:22",
  "start_timestamp_ms": 1793042520000,
  "end_timestamp_ms": 1793047500000,
  "description": "「も」っといい商品を教えて！！「の」んびりしてはいられない「ス」ぐに買いたくなっちゃう商品を「タ」っぷりとご紹介するショッピング番組",
  "category": "info,variety",
  "icons": [],
  "catch_up_available": false,
  "is_4k": false,
  "duration_minutes": 83,
  "image_url": "https://www.tv-tokyo.co.jp/txcms/media/pg/L/155958dc59ac4e0d084358a9feec061a.jpg"
}
```

### Pricing

This Actor uses pay-per-event pricing.

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.

The listed charge events are:

- **Actor Start (`apify-actor-start`):** $0.00005 per event on the Free plan.
- **Dataset item (`apify-default-dataset-item`):** $0.0035 per event on the Free plan, one event for each returned program record.

Free plan: 1,000 x $0.0035 = $3.5 and 10,000 x $0.0035 = $35 for dataset items.

Example on the Free plan: 10 x $0.0035 = $0.035 for the dataset items, plus $0.00005 for the Actor Start event, $0.03505 in total.

Example on the Free plan: 1,428 x $0.0035 = $4.998, plus $0.00005 for the Actor Start event, $4.99805 in total. The Apify Free plan includes **$5 of monthly platform usage credit**.

### How to use

1. Open the Actor in Apify and start it from your own Apify account.
2. Enter a broadcast date as `YYYYMMDD` or `YYYY-MM-DD`, or omit it to use the current date in Japan.
3. Set `maxResults` to the maximum number of program entries to return. Records follow the timetable's time-slot order, so a low value returns only the earliest programs of the day.
4. Leave `proxyConfiguration` out to use the default: Apify proxy with the `RESIDENTIAL` group. Setting `useApifyProxy` to `false` gives direct access.
5. Start the run and read the resulting program records from the dataset.
6. Repeat the run through Apify Schedules to collect further dates.

Example input:

```json
{
  "date": "2026-10-27",
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

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

### Input parameters

| Parameter | What it does | Default |
|---|---|---|
| `date` | Date to collect in `YYYYMMDD` or `YYYY-MM-DD` form. Calendar dates are validated before collection. | Current date in Japan when omitted |
| `maxResults` | Maximum number of TV Tokyo program entries to return. | `50` |
| `proxyConfiguration` | Optional Apify proxy settings. Setting `useApifyProxy` to `false` gives direct access. | Apify proxy on, `RESIDENTIAL` group |

### Limits and edge cases

| Condition | What you see | What to do |
|---|---|---|
| `date` is omitted or blank | The Actor uses the current date in Japan. | Provide a date when you need a specific broadcast day. |
| `date` is not in `YYYYMMDD` or `YYYY-MM-DD` form, or is not a calendar date | The Actor logs an invalid-date error and returns without pushing records. | Correct the date format and calendar value, then run again. |
| `maxResults` is zero or negative | The Actor logs that no records were requested and returns no records. | Use a value of at least `1`. |
| The timetable response is not a JSON object | The fetch operation raises an error after its request attempts, and no records are pushed because parsing has not started. | Check the date and retry the run. |
| A source item is not for `tv-tokyo`, lacks a title, or lacks a valid TV Tokyo URL | That item is skipped. | Check the returned dataset; the source may provide fewer records than expected. |
| Optional source values are absent | Fields such as `program_id`, `image_url`, timestamps, duration, or description can be omitted; `icons` can be empty. | Check that a field is present before reading it. |
| The source provides no qualifying entries for the selected date | The dataset can be empty. | Try another valid broadcast date or review the selected date and run logs. |
| A run aborts, times out, or fails after records have been pushed | Records reach the dataset one at a time as they are processed; records pushed before the stop remain, and later records are not pushed. | Use the records already in the dataset and rerun if needed. |

### FAQ

#### How much does it cost to scrape TV Tokyo?

You pay for each returned program record plus one Actor Start event. See Pricing above for the rates and worked examples.

#### What happens if the result is empty?

The Actor can return no records when the selected timetable has no qualifying `tv-tokyo` items, when `maxResults` is zero or negative, or when source items lack a title or valid TV Tokyo URL. Check the date, use a positive `maxResults` value, and review the run logs.

#### Why is the Actor not working?

An invalid date causes the Actor to log an error and return without pushing records. Timetable request failures are retried; if the request still fails, the run raises the final error before records are pushed. Correct the date or retry the run.

#### Does this Actor require a login or browser?

No login or browser rendering is required. The Actor reads the public timetable JSON resource used by TV Tokyo’s schedule page and needs no cookies, API keys, or proxy credentials from you.

#### Is it legal to use data from TV Tokyo’s public timetable?

The Actor collects public data from TV Tokyo’s timetable JSON resource on tv-tokyo.co.jp. Whether a particular use is allowed depends on the source’s terms and applicable law for your use case; review those requirements before using the data.

# Actor input Schema

## `date` (type: `string`):

Date to collect in YYYYMMDD or YYYY-MM-DD form. Defaults to today's date in Japan.

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

Maximum number of TV Tokyo program entries to return.

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

Optional Apify proxy settings. Leave useApifyProxy false to connect directly.

## Actor input object example

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

# Actor output Schema

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

Dataset containing the collected program records.

# 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/tvtokyo-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/tvtokyo-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/tvtokyo-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/tvtokyo-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/EF9a8s6peO0wlsdw7/builds/zad9cQf1g3ctrmdXR/openapi.json
