# Wikimedia Commons TimedText Subtitles Scraper (`parseforge/wikimedia-commons-timedtext-scraper`) Actor

Extract TimedText subtitles and closed captions from Wikimedia Commons. Pulls page metadata and subtitle content including page ID, title, revision content, cue index, start and end times, and cue text. Use it to build subtitle datasets for media accessibility research or video indexing.

- **URL**: https://apify.com/parseforge/wikimedia-commons-timedtext-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Other, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.40 / 1,000 result items

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?

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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner-v4.webp)](https://apify.com/parseforge?fpr=vmoqkp)

### Wikimedia Commons TimedText Subtitles Scraper

**Scrape TimedText subtitles and closed captions from Wikimedia Commons, up to a million per run.** Every subtitle cue comes with its start and end timestamps, cue text, and page metadata. No login or API key. Export to CSV, JSON, Excel, or XML.

Wikimedia Commons hosts thousands of subtitle files in its TimedText namespace, but there is no direct way to bulk download them for analysis or reuse. This Actor reads the TimedText category via the MediaWiki API and returns each subtitle cue as a structured row, including timestamps and text.

| Who uses it | What they scrape Wikimedia Commons for |
|---|---|
| Video archivists | Which subtitles are available for a given language or topic on Commons. |
| Accessibility researchers | How closed captions are structured across different media files. |
| Language learners | Extract subtitle text for vocabulary study from educational videos. |
| Data journalists | Analyze the metadata and timing patterns of public domain subtitles. |

### What it does

This Actor collects TimedText subtitle pages from Wikimedia Commons by category and optional search term, and returns each subtitle cue as a flat row with start time, end time, and cue text.

- 📂 **Category-based scraping:** Start from any TimedText category (default 'TimedText') and get all pages.
- 🔍 **Search filter:** Narrow results to pages matching a keyword within the category.
- ⏱️ **Cue-level output:** Each subtitle cue is a separate row with start\_time, end\_time, and cue\_text.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with Wikimedia Commons data

**📂 Archive subtitle collections.**

A digital librarian runs the Actor on the 'TimedText' category to download all available subtitle files for preservation.

**🔍 Research caption patterns.**

An accessibility researcher uses the search filter to find subtitles for a specific language and analyzes timing and text structure.

**📚 Build language learning datasets.**

A language teacher extracts subtitle text from educational videos on Commons to create vocabulary exercises.

**📊 Analyze subtitle metadata.**

A data journalist scrapes all TimedText pages to study the distribution of languages and topics in public domain subtitles.

### Why choose this scraper

| | What you get |
|---|---|
| **Structured cue data** | Each subtitle cue is a separate row with start\_time, end\_time, and cue\_text, ready for analysis. |
| **No authentication** | The MediaWiki API is public; no login or API key required. |
| **Bulk export** | Export to CSV, JSON, Excel, or XML for offline use. |
| **Scalable** | Scrape up to 1,000,000 items per run (paid plan). |

### What a Wikimedia Commons record looks like

Every record returns as one flat JSON row. Here is a real one from a run:

```json
{
 "pageid": 143229778,
 "title": "TimedText:Sandbox.webm.en.srt",
 "cueIndex": 1,
 "startTime": "00:00:20,000",
 "endTime": "00:00:24,400",
 "cueText": "should be shown from second 20 to second 24",
 "category": "TimedText",
 "scrapedAt": "2026-09-24T10:59:03.382Z"
}
```

Every value above comes from a real run. A field a record does not have comes back as `null`.

### Configure the run

Drive the Actor from a Wikimedia Commons category name and an optional search term. The category filter selects which TimedText pages to scrape, and the search term further narrows results to pages whose title contains that term. The Input tab lists every parameter.

A first run with the defaults:

```json
{
 "maxItems": 10,
 "category": "TimedText"
}
```

A larger pull:

```json
{
 "maxItems": 200,
 "category": "TimedText"
}
```

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Set your inputs and any filters, then click **Start**.
3. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to Wikimedia Commons through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Ensure the category name is correct and exists on Commons. Also check that the search term (if used) matches page titles in that category.

**The run fails with an API error.**

Wikimedia Commons may be temporarily unavailable. Try again later. If the issue persists, check the category name for special characters.

**I only see 10 items even though I set maxItems higher.**

Free accounts are limited to 10 items. Upgrade to a paid plan to scrape more.

**The output has duplicate rows.**

Each subtitle cue is a separate row. If a page has multiple cues, you will see multiple rows for that page. This is expected.

**Can I scrape all TimedText pages at once?**

Yes, set maxItems to a high number (up to 1,000,000) and leave the category as 'TimedText' with no search term.

### FAQ

| Question | Answer |
|---|---|
| What is the TimedText namespace on Wikimedia Commons? | It is a special namespace that stores subtitle and closed caption files for media files hosted on Commons. Each page contains cues with timestamps and text. |
| Do I need an API key or login? | No. The MediaWiki API used by this Actor is publicly accessible without authentication. |
| Can I scrape subtitles for a specific video? | This Actor scrapes by category and search term, not by video file. To find subtitles for a specific video, search for its filename in the category. |
| What data does each row contain? | Each row includes pageid, title, cueIndex, startTime, endTime, cueText, category, scrapedAt, and error. |
| How many items can I scrape? | Free users are limited to 10 items (preview). Paid users can set maxItems up to 1,000,000. |
| What export formats are supported? | CSV, JSON, Excel, and XML. |
| Does this scrape subtitles from Wikipedia? | No, it scrapes from Wikimedia Commons, which hosts media files and their subtitles. Wikipedia uses a different system. |
| Can I filter by language? | Not directly, but you can use the search term to filter page titles that include language codes (e.g., 'en' for English). |
| Is the data up to date? | Yes, the Actor queries the live MediaWiki API each run, so you get the current state of the category. |
| What if the category name is misspelled? | The API will return an empty result set. Double-check the category name on Commons. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Wikimedia Foundation, Inc. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `maxItems` (type: `integer`):

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000

## `category` (type: `string`):

Category name to scrape TimedText pages from. Defaults to 'TimedText'.

## `search` (type: `string`):

Optional search term to filter pages within the category.

## Actor input object example

```json
{
  "maxItems": 10,
  "category": "TimedText"
}
```

# Actor output Schema

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

Complete dataset of all scraped 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 = {
    "maxItems": 10,
    "category": "TimedText"
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/wikimedia-commons-timedtext-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 = {
    "maxItems": 10,
    "category": "TimedText",
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/wikimedia-commons-timedtext-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 '{
  "maxItems": 10,
  "category": "TimedText"
}' |
apify call parseforge/wikimedia-commons-timedtext-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/wikimedia-commons-timedtext-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/0lojWmBhdDUZoDg7i/builds/CiXLq7Eppg8ZNl7Hi/openapi.json
