{"uid":"cap_ZQ8OE7-E0LvQstf3uUl6x","slug":"sitecheck-wikipedia-pageviews-dd173d83","name":"SiteCheck Wikipedia Pageviews","description":"Daily or monthly page views (user agent, all access) for up to 5 articles in one Wikipedia edition over a date range of at most one year, with totals, peak day and the change between the first and second half. mode=top lists the most viewed articles of one day. Data lags by about a day; bots and unknown agents are excluded.","url":"https://api.sitecheck-api.workers.dev/api/wiki/pageviews?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"to":{"type":"string","description":"Last day YYYY-MM-DD (default 2 days ago)"},"from":{"type":"string","description":"First day YYYY-MM-DD (default 30 days before to); for mode=top, the day"},"mode":{"type":"string","description":"series (default) or top (most viewed articles of the day in from)"},"project":{"type":"string","description":"Wikipedia edition, e.g. en.wikipedia (default), de.wikipedia"},"articles":{"type":"string","description":"Comma list of up to 5 article titles, underscores or spaces (mode=series)"},"granularity":{"type":"string","description":"daily (default) or monthly"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"2026-09-07","from":"2026-09-01","source":"Wikimedia REST pageviews API (wikimedia.org/api/rest_v1), data licensed CC0; Wikimedia Terms of Use","project":"en.wikipedia","articles":[{"total":12451,"series":[{"date":"2026-09-01","views":1888},{"date":"2026-09-02","views":1802},{"date":"2026-09-03","views":1983}],"article":"Rust_(programming_language)","missing":false,"peakDay":{"date":"2026-09-03","views":1983},"changePercent":-10.4}],"checkedAt":"2026-10-15T17:43:54.490Z","changeNote":"changePercent compares the average of the second half of the range with the first half.","granularity":"daily"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KdM-VtJaT_kf3WQFjYhK3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves daily or monthly Wikipedia article pageview timeseries or top-viewed articles for a given date range and Wikipedia edition","exampleAgentPrompt":"Can you pull the daily Wikipedia pageview stats for 'Rust (programming language)' and 'Python (programming language)' over the past 30 days on English Wikipedia, and tell me which had more traffic and when each peaked?","exampleUseCases":[{"title":"Trending topic research for content strategy","prompt":"Which Wikipedia articles were most viewed yesterday on English Wikipedia? I want to see what topics people are searching for right now."},{"title":"Article popularity timeseries for a PR campaign","prompt":"Get me the daily Wikipedia pageviews for 'OpenAI' from September 1 to September 30, 2025 — I want to see if there were any traffic spikes and how much views changed over the month."},{"title":"Cross-language audience comparison","prompt":"Compare the monthly Wikipedia pageviews for 'Climate change' on English Wikipedia vs German Wikipedia over the last 30 days — which edition gets more traffic?"}],"resultDescription":"A JSON object containing the requested date range, Wikipedia project, granularity, and per-article arrays with total views, daily/monthly series (date + view count), peak day, percent change between first and second half of the range, and a missing flag. In 'top' mode, returns the most-viewed articles for the specified day. Also includes a source attribution and checkedAt timestamp.","failureModes":["Invalid or misspelled article title returns missing:true for that article","Date range too far in the past or future may yield empty data from Wikimedia","More than 5 articles in the comma-separated list may be rejected or truncated","Invalid project code (e.g. typo in Wikipedia edition) returns an error","mode=top combined with multiple articles is not supported and may error","Network timeout if Wikimedia upstream is slow"],"whenToPreferThis":"Use this endpoint when you need structured, time-series pageview data for specific Wikipedia articles or want to discover the day's top-viewed Wikipedia pages. Prefer it over generic web-analytics tools when the subject is explicitly Wikipedia traffic. Useful for trend detection, content research, PR impact measurement, and audience interest signals derived from encyclopedia readership. It wraps the Wikimedia REST API with a pay-per-call model requiring no Wikimedia credentials.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:48:17.040Z","isFirstParty":false,"canonicalSlug":"sitecheck-wikipedia-pageviews-dd173d83"}