Wikimedia Commons Page Views Scraper
parseforge/wikimedia-commons-pageviews-scraper
News & mediaMARKETINGOther
Scrapes Wikimedia Commons pageview statistics from the official API. Returns top files with title, views, and rank for a given date and access method.
- Total users
- 2
- Monthly active
- 1
- Total runs
- 5
- Bookmarked
- 0
- Rating
- Not rated yet
- Last modified
- 2 days ago
Overview
Wikimedia Commons Page Views Scraper
Scrape Wikimedia Commons page views for any date, access type, and up to a million files. Get each file's title, view count, and rank in one flat row. No API key or login. Export to CSV, JSON, Excel, or XML.
Wikimedia Commons pageview data shows which media files people look at, but the official API returns raw JSON and needs manual date handling. This Actor calls the Wikimedia Pageviews API for you, filters by access method, and returns each file's views and rank in a fixed schema. Use it to track media popularity, monitor upload performance, or build dashboards without writing code.
| Who uses it | What they scrape Wikimedia Commons for |
|---|---|
| Media researchers | Which Commons files are trending on a given day |
| GLAM institutions | How many views their uploaded collections receive |
| Content marketers | Which Commons images drive the most traffic to their articles |
| Data analysts | Build time series of Commons file popularity |
What it does
This Actor collects Wikimedia Commons pageview statistics for a given date and access method, and returns each file as a flat row with its title, view count, and rank.
- ๐ Date targeting: pick any past date in YYYY/MM/DD format, from yesterday back to 2015.
- ๐ Access filtering: choose all-access, desktop, or mobile-app to see where views come from.
- ๐ข Rank and views: every row includes the file's rank and exact view count for that day.
- ๐ Flat export: results are one row per file, ready for CSV, JSON, Excel, or XML.
Results export to CSV, JSON, Excel, or XML, or straight from the API.
What you can do with Wikimedia Commons data
๐ Track media trends.
A media researcher runs the Actor daily for the previous day and charts which Commons files spike in views, spotting viral images early.
๐๏ธ Measure GLAM impact.
A museum uploads its collection to Commons and runs the Actor monthly to report how many views its files received, justifying continued digitization.
๐ฐ Support editorial decisions.
A newsroom checks Commons pageviews for candidate images before publishing, choosing the file that already attracts attention.
๐ Build a popularity dashboard.
A data analyst schedules the Actor for the last 30 days and aggregates the results into a dashboard of top Commons files by access type.
Why choose this scraper
| What you get | |
|---|---|
| No API key | The Wikimedia Pageviews API is public and needs no authentication. |
| One row per file | Each result is a flat record with title, views, and rank. |
| Any date | Go back to 2015 or pull yesterday's stats. |
| Access split | Compare all-access, desktop, and mobile-app views. |
What a Wikimedia Commons record looks like
Every record returns as one flat JSON row. Here is a real one from a run:
{
"project": "commons.wikimedia",
"access": "all-access",
"year": "2026",
"month": "08",
"day": "23",
"article": "Main_Page",
"views": 176034,
"rank": 1,
"scrapedAt": "2026-08-24T21:36:29.573Z"
}
Every value above comes from a real run. A field a record does not have comes back as null.
Configure the run
Set the date, access method, and maximum number of files. The Actor calls the Wikimedia Pageviews API and returns only the top files for that day, already filtered and ranked. The Input tab lists every parameter.
A first run with the defaults:
{
"date": "2026/08/23",
"access": "all-access",
"maxItems": 10
}
A larger pull:
{
"date": "2026/08/23",
"access": "all-access",
"maxItems": 200
}
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
- Create a free Apify account with $5 in credit.
- Open the Wikimedia Commons Page Views Scraper.
- Set your inputs and any filters, then click Start.
- 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-pageviews-scraper"
Then prompt it in plain language to run the scraper and read back the results.
Troubleshooting
Why am I getting no results?
Check the date format. It must be YYYY/MM/DD, for example 2026/08/23. Also ensure the date is not today or in the future, and that maxItems is at least 1.
Why do I only get 10 items?
Free Apify accounts are limited to 10 items as a preview. Upgrade to a paid plan to increase maxItems up to 1,000,000.
The date I entered returns an error.
The Wikimedia Pageviews API only has data from 2015 onwards. Dates before that, or today's date, will fail. Use a past date between 2015 and yesterday.
Can I get more than 1000 files?
The Wikimedia API returns at most the top 1000 files per day. Setting maxItems higher will not return more rows, but you can run the Actor for multiple dates.
FAQ
| Question | Answer |
|---|---|
| What is the Wikimedia Commons Page Views Scraper? | It is an Apify Actor that calls the official Wikimedia Pageviews API for commons.wikimedia.org and returns the top viewed files for a given date and access method. |
| Do I need a Wikimedia API key? | No. The Wikimedia Pageviews API is public and does not require authentication or an API key. |
| What dates can I scrape? | Any date from 2015 to yesterday. The API does not provide data for today or future dates. |
| What does 'access method' mean? | It is the platform used to view the file: all-access (combined), desktop, or mobile-app. Choose one per run. |
| How many files can I get? | Free Apify users are limited to 10 items as a preview. Paid users can set maxItems up to 1,000,000, but the API typically returns the top 1000 files per day. |
| What fields are returned? | Each row includes the project, access method, year, month, day, article (file title), views, and rank. |
| Can I get pageviews for a specific file? | This Actor returns the top files for a date, not a single file's history. To track one file over time, run the Actor for multiple dates and filter the results. |
| What export formats are supported? | You can export the dataset as CSV, JSON, Excel, or XML from the Apify platform. |
| Is this the same as the Pageviews Analysis tool? | It uses the same underlying Wikimedia API, but this Actor gives you structured data you can download and integrate, instead of a web interface. |
| Can I schedule this Actor? | Yes. Use Apify schedules to run it daily, weekly, or monthly and build a time series of Commons pageviews. |
Related actors
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.
๐ฐ How much does it cost to scrape Wikimedia Commons Page Views?
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.
Input
| Field | Type | What it does | Default |
|---|---|---|---|
| date | string | Target date for pageview statistics in YYYY/MM/DD format, e.g. 2026/08/23. | 2026/08/23 |
| access | string (3 options) | Access type for pageview metrics. Options are all-access, desktop, or mobile-app. | all-access |
| maxItems | integer | Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000 | 10 |
Pricing
from $3.62 per 1,000 results
| Charged for | What it is | Price each |
|---|---|---|
| result | Single result in the default dataset. | $0.00362 to $0.004 |
Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.
API
One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.
curl -X POST "https://api.apify.com/v2/acts/parseforge~wikimedia-commons-pageviews-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"helloWorld": 123
}' Examples
Input that runs as-is.
{
"helloWorld": 123
} Reviews
No reviews yet. Be the first.
Issues
We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.
Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.
Related scrapers
Run Wikimedia Commons Page Views Scraper on Apify All scrapers
