# Wikimedia Commons Featured Pictures Scraper (`parseforge/wikimedia-commons-featured-scraper`) Actor

Scrapes the complete list of featured pictures from Wikimedia Commons using the official API. Returns each picture's pageid, title, and namespace as a flat row.

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

## Pricing

from $3.62 / 1,000 results

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

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

### Wikimedia Commons Featured Pictures Scraper

**Scrape Wikimedia Commons featured pictures, up to a million per run.** Every picture comes with its title, page ID, and namespace. No login or API key required. Export to CSV, JSON, Excel, or XML.

Wikimedia Commons hosts thousands of featured pictures, but browsing them manually through category pages is slow and you cannot export the list in bulk. This Actor reads the official public API to collect every featured picture entry from the Category:Featured\_pictures\_on\_Wikimedia\_Commons. It returns a structured dataset you can filter and download immediately.

| Who uses it | What they scrape Wikimedia Commons for |
|---|---|
| Digital archivists | Building a complete index of Wikimedia Commons featured pictures for preservation. |
| Content creators | Finding high-quality, freely licensed images for articles, videos, or presentations. |
| Researchers | Analyzing the distribution of featured picture topics and authors over time. |
| Educators | Curating collections of outstanding images for teaching materials. |

### What it does

This Actor collects all featured picture entries from Wikimedia Commons and returns each one as a flat row with its title, page ID, and namespace.

- 📋 **Bulk extraction:** Pull every featured picture from the main category in one run.
- ⚙️ **Simple configuration:** Set a maximum number of items and let the Actor handle pagination.
- 📄 **Structured output:** Receive a clean dataset with pageid, ns, and title for each picture.

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

### What you can do with Wikimedia Commons data

**📸 Build a featured picture archive.**

A digital archivist runs the Actor with a high maxItems limit to capture the full list of featured pictures for offline cataloging and long-term preservation.

**🎨 Curate a high-quality image gallery.**

A content creator scrapes the featured pictures list to source outstanding, freely licensed images for a website or publication.

**📊 Analyze featured content trends.**

A researcher collects the dataset to study which topics and contributors are most represented among Wikimedia Commons featured pictures.

### Why choose this scraper

| | What you get |
|---|---|
| **No API key needed** | The Wikimedia Commons API is public and requires no registration. |
| **Complete list** | Gets every entry from the featured pictures category, not a sample. |
| **Structured data** | Returns a clean JSON, CSV, Excel, or XML dataset ready for analysis. |
| **Scalable** | Collect up to a million items per run for paid users. |

### What a Wikimedia Commons record looks like

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

```json
{
 "imageUrl": "https://commons.wikimedia.org/wiki/Special:FilePath/%22A%20mother!%20How%20odd!%22%20-%20Gordon%20Ross.%20LCCN2011648850-restored.jpg",
 "pageid": 196741603,
 "title": "File:\"A mother! How odd!\" - Gordon Ross. LCCN2011648850-restored.jpg",
 "namespace": 6,
 "scrapedAt": "2026-09-05T19:36:59.165Z"
}
```

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 by setting a maximum number of items to collect. The Actor reads the featured pictures category directly and returns each match in a fixed schema. The Input tab lists every parameter.

A first run with the defaults:

```json
{
 "maxItems": 10
}
```

A larger pull:

```json
{
 "maxItems": 200
}
```

### 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 with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [Wikimedia Commons Featured Pictures Scraper](https://apify.com/parseforge/wikimedia-commons-featured-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. 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
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/wikimedia-commons-featured-scraper"
```

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

### Troubleshooting

**Why am I getting only 10 results?**

Free users are limited to a 10-item preview. Upgrade to a paid Apify plan and increase the maxItems input value to collect more.

**The run finished but my dataset is empty.**

Check that the Wikimedia Commons API is reachable. If the category structure has changed, the API may return no members. Try the endpoint URL directly in a browser to verify.

**Can I get the image URL or author name?**

This Actor returns the basic category member data. To get image URLs, author names, or descriptions, you would need to query each file page individually using the pageid or title from this dataset.

**The Actor is taking a long time to finish.**

Large maxItems values will take longer because the Actor paginates through the API. Reduce maxItems or be patient; the Wikimedia API has rate limits that the Actor respects.

### FAQ

| Question | Answer |
|---|---|
| What data does this Actor return for each picture? | Each row includes the pageid, namespace, and title of the featured picture file. Additional metadata like author or description can be fetched by querying each file page individually. |
| Do I need a Wikimedia API key to use this? | No. The Actor uses the public Wikimedia Commons API, which does not require authentication or an API key. |
| How many featured pictures can I scrape in one run? | Free users are limited to 10 items as a preview. Paid users can set maxItems up to 1,000,000 to collect the complete list. |
| Can I filter by a specific subcategory of featured pictures? | This Actor targets the main Category:Featured\_pictures\_on\_Wikimedia\_Commons. For subcategories, you would need to modify the category title in the API call. |
| What export formats are supported? | You can export your dataset in CSV, JSON, Excel, or XML format from the Apify platform. |
| Does this Actor download the actual image files? | No, it collects the metadata list of featured pictures. To download the image files, you would need to use the file URLs in a separate process. |
| Is the data from the official Wikimedia Commons API? | Yes, the Actor queries the official Wikimedia Commons API endpoint directly and returns the structured JSON response. |
| Can I schedule this Actor to run regularly? | Yes, you can set up a recurring schedule on Apify to run the Actor daily, weekly, or monthly to capture newly added featured pictures. |

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

### Pricing

This Actor uses **pay-per-result** pricing: **$0.004 per result** collected. You are billed only for the results you receive, so a run that returns nothing costs nothing.

⚠️ **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

## Actor input object example

```json
{
  "maxItems": 10
}
```

# 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
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/wikimedia-commons-featured-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 }

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

```

## MCP server setup

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