Wikipedia trending - top pageviews by day/country (API)
Pricing
from $5.00 / 1,000 records
Wikipedia trending - top pageviews by day/country (API)
The 1,000 most-viewed Wikipedia articles for a day - per project (en.wikipedia, de.wikipedia, ...) or per country - plus daily view series for chosen articles, from the Wikimedia Pageviews API. Rank, article, views, date, link. Default: yesterday's English top 200.
Pricing
from $5.00 / 1,000 records
Rating
0.0
(0)
Developer
RetrainMap Data
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
11 hours ago
Last modified
Categories
Share
Wikipedia trending — top pageviews by day/country (API)
What people read on Wikipedia yesterday. One row per ranked article from the Wikimedia
Foundation's Pageviews API: the 1,000 most-viewed pages of a project (English, German,
Spanish, … or all-projects) or of a country for a given day, or the daily view series
of articles you name. Each row carries rank, article, views, project, country, date, access
method and a link to the page.
Data source and status
| Publisher | Wikimedia Foundation — Analytics Query Service, https://wikimedia.org/api/rest_v1/metrics/pageviews/… (public, no key; a descriptive User-Agent is required and sent) |
| Endpoints | top/{project}/{access}/{Y}/{M}/{D} · top-per-country/{country}/{access}/{Y}/{M}/{D} · per-article/{project}/{access}/{agent}/{title}/daily/{start}/{end} (reference) |
| Refresh cadence | Wikimedia publishes each UTC day a few hours after it ends. The Actor reads live on every run; with no date given it asks for yesterday and, if that day is not out yet, uses the day before and says so (date_fallback_used in the run summary) |
| Precision | Per-project top lists and article series are exact counts. Per-country top lists are published as ceilings (rounded up) to protect reader privacy — rows carry views_is_ceiling: true |
| Terms and licence | Use of the API is subject to the Wikimedia Terms of Use and API etiquette (identify yourself, ≤ 100 requests/s). Wikimedia's REST API notice states that content accessed via the API is licensed CC BY-SA 3.0 unless an endpoint says otherwise; attribute the Wikimedia Foundation when you republish these statistics |
| Response guards | The item/article keys measured on 2026-09-04 (article, rank, views / views_ceil, project, timestamp) must be present; anything else fails the run loudly instead of writing guessed values |
| Identification | User-Agent: RetrainMap-wikipedia-trending/0.1 (https://apify.com/retrainmap; <contact>) plus the contact address in the standard From: header |
Honesty note: "trending" here means most viewed on that day as published by Wikimedia —
the Actor adds no ranking of its own. exclude_non_articles (default on) drops Main_Page,
- and titles with English namespace prefixes (Special:, Wikipedia:, File:, …); on
other-language projects the localised prefixes are not recognised, so a few non-article pages
can remain. Ranks keep their original numbers, so gaps show what was dropped.
Input
| Field | Type | Meaning |
|---|---|---|
mode | top / top_per_country / article_series | Default top |
project | string | Default en.wikipedia (e.g. de.wikipedia, commons.wikimedia, all-projects) |
country | 2-letter code | For top_per_country; default US |
date | YYYY-MM-DD | Top modes; default yesterday (UTC) with one-day fallback |
access | all-access / desktop / mobile-web / mobile-app | Default all-access |
articles | array of titles | For article_series, e.g. "Python (programming language)" |
start_date, end_date | YYYY-MM-DD | Series range; default the 30 days ending yesterday |
agent | user / all-agents / spider / automated | Series only; default user |
exclude_non_articles | boolean | Default true |
max_records | integer | Default 200 (a top list has 1,000 entries) |
request_interval_ms | integer | Default 250 (floor 100) |
contact_email | string | Sent in the User-Agent and From: header |
Examples:
{ "mode": "top_per_country", "country": "IN", "max_records": 100 }
{ "mode": "article_series", "articles": ["Artificial intelligence", "Python (programming language)"], "start_date": "2026-08-01", "end_date": "2026-08-31" }
Output (dataset row)
rank (null in series mode), article (title with spaces), article_key (as in the URL),
views, views_is_ceiling, project, country (per-country mode), date, access, agent
(series mode), wikipedia_url, fetched_at. A run summary (mode, effective date, fallback
flag, the exact API requests made, counts) is stored as RUN_SUMMARY in the run's key-value
store.
Pricing (pay per event)
| Event | Price |
|---|---|
run-start — once per run | $0.10 |
record — per row written | $0.005 |
The default run (200 rows) costs $1.10; a full 1,000-row top list $5.10. Rows stop when your run's maximum charge is reached; the run summary says so.
Operator
Steelyard Ventures LLC (RetrainMap) — info@steelyardclinical.com. The Actor writes only to its own dataset and key-value store; it stores no credentials and sends nothing but GET requests.