Wikipedia Pageviews API + Wikidata: Daily Views per Page
Pricing
from $0.10 / 1,000 page rows
Wikipedia Pageviews API + Wikidata: Daily Views per Page
Daily Wikipedia page views for any titles and date range, totals and peak day, plus Wikidata ID, label, description and aliases. Uses the public Wikimedia APIs.
What it does. For each Wikipedia page title, returns one row with daily page views over your date range, total, average and peak day, plus the page's Wikidata item (ID, label, description, aliases, instance-of IDs, sitelink count).
Input
titles: page titles, one per line. Redirects are followed; titles that land on the same page return one row (inputTitleslists them).project: Wikipedia edition (defaulten.wikipedia).lastDays(default 30, ending yesterday UTC) orstartDate/endDate(YYYY-MM-DD, from 2015-07-01, max 366 days).agent(user, all-agents, automated, spider),access(all-access, desktop, mobile-web, mobile-app).includeDaily,includeWikidata(both default on),maxItems(up to 2,000).
Output fields
project, title, inputTitles, pageId, redirectedFrom, pageUrl, startDate, endDate, access, agent, totalViews, daysWithData, averageDailyViews, peakDate, peakViews, daily[{date, views}], wikidataId, wikidataLabel, wikidataDescription, wikidataAliases, instanceOf, sitelinksCount, wikidataUrl
Free status rows (not charged): no-results (page doesn't exist), invalid-input, api-error, free-plan-limit, charge-limit-reached.
Views are counted for the resolved page title, not for redirect titles.
Example (the build's prefill): {"titles":["Artificial_intelligence"],"project":"en.wikipedia","lastDays":30}
Data source and compliance
- Data from the Wikimedia Pageviews API, the MediaWiki API and Wikidata, provided by the Wikimedia Foundation. Pageview data and Wikidata structured data are released under CC0 (public domain dedication).
- Only public page-level counts and item data. No editor, user or account data is collected.
- Independent Lepi Data tool, not affiliated with or endorsed by the Wikimedia Foundation. No Wikimedia or Wikipedia logos are used. Wikipedia is a trademark of the Wikimedia Foundation.
- One request at a time, with a User-Agent carrying a contact URL as Wikimedia's policy asks, and back-off on errors.
- Free-plan accounts get up to 100 results per run.
Pricing. Pay per page row (one per page, whatever the date range), flat on every plan, no start fee. Free status rows are never charged.