Wikipedia trending - top pageviews by day/country (API) avatar

Wikipedia trending - top pageviews by day/country (API)

Pricing

from $5.00 / 1,000 records

Go to Apify Store
Wikipedia trending - top pageviews by day/country (API)

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

RetrainMap Data

Maintained by Community

Actor 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

PublisherWikimedia Foundation — Analytics Query Service, https://wikimedia.org/api/rest_v1/metrics/pageviews/… (public, no key; a descriptive User-Agent is required and sent)
Endpointstop/{project}/{access}/{Y}/{M}/{D} · top-per-country/{country}/{access}/{Y}/{M}/{D} · per-article/{project}/{access}/{agent}/{title}/daily/{start}/{end} (reference)
Refresh cadenceWikimedia 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)
PrecisionPer-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 licenceUse 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 guardsThe 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
IdentificationUser-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

FieldTypeMeaning
modetop / top_per_country / article_seriesDefault top
projectstringDefault en.wikipedia (e.g. de.wikipedia, commons.wikimedia, all-projects)
country2-letter codeFor top_per_country; default US
dateYYYY-MM-DDTop modes; default yesterday (UTC) with one-day fallback
accessall-access / desktop / mobile-web / mobile-appDefault all-access
articlesarray of titlesFor article_series, e.g. "Python (programming language)"
start_date, end_dateYYYY-MM-DDSeries range; default the 30 days ending yesterday
agentuser / all-agents / spider / automatedSeries only; default user
exclude_non_articlesbooleanDefault true
max_recordsintegerDefault 200 (a top list has 1,000 entries)
request_interval_msintegerDefault 250 (floor 100)
contact_emailstringSent 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)

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