Wikipedia Views
liveReferenceMediaQuery Wikipedia pageview statistics — article views, top articles, and project-wide traffic via the Wikimedia API
3tools
0msauth
free tier50 calls/day
Tools
get_article_viewsrequired: title, start, endGet daily pageview counts for a specific Wikipedia article over a date range. Dates must be in YYYYMMDD format.
Parameters
NameTypeDescription
titlereqstringWikipedia article title, URL-encoded if needed (e.g. "Albert_Einstein")startreqstringStart date in YYYYMMDD format (e.g. "20240101")endreqstringEnd date in YYYYMMDD format (e.g. "20240131")Try it
Response
get_top_articlesrequired: year, month, dayGet the most viewed Wikipedia articles for a specific day. Returns up to 1000 articles ranked by view count.
Parameters
NameTypeDescription
yearreqstringYear as 4-digit string (e.g. "2024")monthreqstringMonth as zero-padded 2-digit string (e.g. "01")dayreqstringDay as zero-padded 2-digit string (e.g. "15")Try it
Response
get_project_viewsrequired: start, endGet aggregate daily pageview totals for all of English Wikipedia over a date range. Dates must be in YYYYMMDD format.
Parameters
NameTypeDescription
startreqstringStart date in YYYYMMDD format (e.g. "20240101")endreqstringEnd date in YYYYMMDD format (e.g. "20240131")Try it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/wikiviews/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Call a tool
bash
curl -X POST https://gateway.pipeworx.io/wikiviews/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_article_views","arguments":{"title": "test", "start": "2025-01-01", "end": "2025-01-01"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("get_article_views", {"title":"example","start":"example","end":"example"});ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("query wikipedia pageview statistics — article views, top articles, and project-wide traffic via the wikimedia api");