Wikimedia Commons Media Scraper avatar

Wikimedia Commons Media Scraper

Pricing

from $2.85 / 1,000 results

Go to Apify Store
Wikimedia Commons Media Scraper

Wikimedia Commons Media Scraper

Scrapes media file metadata from Wikimedia Commons by search query, category, or exact File: titles. Returns each file as a flat row with its URL, description, author, license, and dimensions.

Pricing

from $2.85 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

1

Bookmarked

3

Total users

1

Monthly active users

5 days ago

Last modified

Share

ParseForge

Wikimedia Commons Media Scraper

Scrape media file metadata from Wikimedia Commons by search query, category, or exact file title, up to a million per run. Each file comes with its URL, description, author, license, and dimensions. No API key required. Export to CSV, JSON, Excel, or XML.

Wikimedia Commons holds over 100 million freely licensed media files, but browsing categories or running manual searches is slow when you need structured data. This Actor reads the public API directly, letting you pull file metadata in bulk from any search term, category, or a list of exact File: page titles. You get a clean dataset of URLs, authors, licenses, and image dimensions, ready for your content pipeline or research project.

Who uses itWhat they scrape Wikimedia Commons for
Content creatorsBuild a searchable catalog of freely licensed images for a specific topic
Digital archivistsHarvest metadata from entire Commons categories for preservation projects
SEO specialistsGather image URLs and attribution details for compliant media use on websites
ResearchersAnalyze the distribution of media types, licenses, or authors across topics

What it does

This Actor collects media file metadata from Wikimedia Commons by search, category, or exact title, and returns each file as a flat row with its URL, description, author, license, and dimensions.

  • ๐Ÿ” Search by query: Enter any free-text term like 'mona lisa' or 'golden gate bridge' and get matching media files.
  • ๐Ÿ“‚ Files in a category: Provide a category name such as 'Cats' or 'Category:Bridges in Paris' and list all files within it.
  • ๐Ÿ“‹ Exact File: titles: Supply a list of specific File: page titles like 'File:Mona Lisa.jpg' and fetch their metadata directly.

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

What you can do with Wikimedia Commons data

๐Ÿ–ผ๏ธ Build a topic-based image catalog.

A content creator searches for 'solar system' and exports a CSV of all matching Commons images with their license and attribution, ready for a blog or video project.

๐Ÿ“š Harvest an entire category for archival.

A digital archivist scrapes the 'Category:Historical photographs of Berlin' to preserve metadata and file URLs before a website migration.

๐Ÿ”Ž Audit license compliance across a media library.

An SEO specialist pulls metadata for a list of File: titles already used on a client site to verify each image still carries a valid Creative Commons license.

๐Ÿ“Š Analyze media type distribution in a domain.

A researcher scrapes a category like 'Diagrams of human anatomy' and aggregates the data by file type and author to understand contribution patterns.

Why choose this scraper

What you get
No API keyReads the public Wikimedia API with no registration or authentication required.
Bulk extractionCollect up to a million file records in a single run for large-scale projects.
Fixed schemaEvery file returns the same fields: URL, description, author, license, dimensions, and more.
Flexible inputMix search terms, categories, and exact titles across runs without changing the setup.

How it compares

No other Store actor targets Wikimedia Commons the same way, so the honest comparison is with the alternatives teams actually weigh.

Wikimedia Commons Media ScraperBuild it in-houseBy hand
SetupRun it now, zero configDays of engineeringNone, but hours per pull
When Wikimedia Commons changesMaintained for youYou fix itYou re-learn the page
Proxies, retries, anti-botBuilt inYour problemBrowser only
OutputFixed JSON schema, CSV/Excel exportWhatever you buildCopy-paste
CostPay per resultEngineering timeAnalyst hours

Configure the run

Drive the Actor from search queries, category names, and exact file titles, alone or together, and set a maximum item limit so only the files you need reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

{
"search": "cat",
"titles": [
"File:Mona Lisa.jpg"
],
"maxItems": 10
}

A larger pull:

{
"search": "cat",
"titles": [
"File:Mona Lisa.jpg"
],
"maxItems": 200
}

Pricing

Pay-per-result: $0.0063 per result collected. You pay only for the results written to your dataset.

Results collectedApproximate cost
100 results$0.63
1,000 results$6.30
10,000 results$63.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Wikimedia Commons Media Scraper.
  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 (run-sync-get-dataset-items) or the ApifyClient 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:

$claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/wikimedia-commons-media-scraper"

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

Troubleshooting

Why am I getting no results for my search query?

Check that your search term is spelled correctly and is not too specific. Try a broader term first. Also confirm that the Mode is set to 'Search files by query' and that you have not accidentally left a category or titles list filled in.

The Actor returns fewer files than my maxItems setting.

The Actor stops when it has collected your requested number of files or when the source runs out of matching results. If the category is small or the search query is narrow, fewer files will be returned.

My category input is not returning any files.

Verify the category name exists on Wikimedia Commons. You can enter it with or without the 'Category:' prefix. Try browsing the category on commons.wikimedia.org first to confirm it contains files.

Some files in my results are missing author or license information.

Wikimedia Commons metadata is community-contributed, and some files may have incomplete information. The Actor returns whatever metadata is available; empty fields mean the data was not provided on the file's page.

The run takes a long time with a high maxItems value.

Large requests can take time because the Actor respects the API's rate limits. Reduce the maxItems value or split your request into multiple smaller runs by using narrower categories or more specific search terms.

FAQ

QuestionAnswer
Do I need a Wikimedia account or API key to use this Actor?No. The Actor reads the public Wikimedia Commons API, which does not require authentication or an API key for read access.
What metadata fields does the Actor return for each file?Each row includes the file URL, page URL, title, description, author, license, file type, dimensions, and the date it was uploaded. The exact field list is shown in the sample output on the Actor's page.
Can I scrape both images and other media types like videos or audio?Yes. Wikimedia Commons contains images, videos, audio files, and documents. The Actor returns metadata for any media type that matches your input.
How do I scrape all files inside a specific Commons category?Set the Mode to 'Files in a category' and enter the category name, with or without the 'Category:' prefix. The Actor will list every file in that category up to your maximum item limit.
What is the difference between search mode and category mode?Search mode runs a full-text query across file titles and descriptions, like using the search box on the Commons website. Category mode returns every file that belongs to a specific Commons category, regardless of its title or description text.
Can I provide a list of specific file names to scrape?Yes. Use the 'Exact File: titles' mode and paste a list of File: page titles, such as 'File:Mona Lisa.jpg'. The Actor fetches metadata only for those exact files.
How many files can I collect in one run?You can set the maximum up to 1,000,000 files per run. The Actor stops when it reaches your limit or when no more matching files are available.
Does the Actor download the actual media files?No. It collects metadata about the files, including the direct URL where the file can be downloaded. You can use that URL in a separate download step if needed.
What export formats are supported?You can export your dataset as CSV, JSON, Excel, or XML from the Apify platform after the run completes.
Is the license information included so I can attribute correctly?Yes. The Actor returns the license name and, where available, the author and attribution details required by Creative Commons and other free licenses.

Browse the full ParseForge collection 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.