Wikipedia Views

live Data

Query Wikipedia pageview statistics — article views, top articles, and project-wide traffic via the Wikimedia API

3 tools
0ms auth
free tier 50 calls/day

Tools

get_article_views required: title, start, end

Get daily pageview counts for a specific Wikipedia article over a date range. Dates must be in YYYYMMDD format.

Parameters
Name Type Description
title req string Wikipedia article title, URL-encoded if needed (e.g. "Albert_Einstein")
start req string Start date in YYYYMMDD format (e.g. "20240101")
end req string End date in YYYYMMDD format (e.g. "20240131")
Try it
get_top_articles required: year, month, day

Get the most viewed Wikipedia articles for a specific day. Returns up to 1000 articles ranked by view count.

Parameters
Name Type Description
year req string Year as 4-digit string (e.g. "2024")
month req string Month as zero-padded 2-digit string (e.g. "01")
day req string Day as zero-padded 2-digit string (e.g. "15")
Try it
get_project_views required: start, end

Get aggregate daily pageview totals for all of English Wikipedia over a date range. Dates must be in YYYYMMDD format.

Parameters
Name Type Description
start req string Start date in YYYYMMDD format (e.g. "20240101")
end req string End date in YYYYMMDD format (e.g. "20240131")
Try it

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");