Wikipedia Article Pageviews API
Read daily Wikipedia article pageviews via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Wikimedia, configure supported query parameters and filters, and retrieve structured data including article identifier, daily timestamp, fixed all-access scope, user traffic classification, and daily granularity to plan editorial coverage, study event attention, and build a source-linked chart.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 1Selected implementation · last 30 days
- Success rate · 30d
- 100.00%Selected implementation · last 30 days
Wikipedia Article Pageviews API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Overview
Wikipedia Article Pageviews API
Supply project, article, start and end as path parameters, with dates in YYYYMMDD00 format. The response contains daily pageviews for all access methods, restricted to the user traffic category.
Quick Facts
| Fact | Value |
|---|---|
| Platform | wikipedia |
| Access Methods | REST / OpenAny MCP |
| Pricing Model | Metered per request; Selected price determines free or paid access |
| Authentication | OpenAny API key |
| Core Inputs | project, article, start, end |
| Selected Implementation | Wikimedia |
| Available Providers | Wikimedia |
| Returned Data | Article identifier; Daily timestamp; Pageview count, not unique visitors; Fixed all-access scope; User traffic classification (fixed); Daily granularity (fixed) |
What You Can Build with the Wikipedia Article Pageviews API
- Plan editorial coverage: Compare article attention over matching date ranges.
- Study event attention: Keep article and project fixed when examining a timeline.
- Build a source-linked chart: Plot timestamp/views pairs with project and traffic-classification labels.
Pass returned records to a downstream Agent for organization, comparison or reporting; additional data retrieval is a separate operation.
Wikipedia Article Pageviews API Returned Data Fields & Response Coverage
Views are pageview counts, not unique visitors or keyword search volume. This contract does not expose hourly/monthly granularity, agent switches or automatic redirect aggregation.
| Field | Meaning |
|---|---|
items[].article |
Article identifier |
items[].timestamp |
Daily timestamp |
items[].views |
Pageview count, not unique visitors |
items[].access |
Fixed all-access scope |
items[].agent |
User traffic classification (fixed) |
items[].granularity |
Daily granularity (fixed) |
Quick Start: Call the Wikipedia Article Pageviews API via REST
- Configure OPENANY_API_KEY securely in your local environment and select Wikimedia.
- The example queries Earth on en.wikipedia.org for two daily timestamps; replace the article and date range.
- Check Selected price before running the command; execution sends a real request under the current contract.
curl --request GET \
"https://api.openany.si/v1/agent-apis/wikimedia/analytics/pageviews/en.wikipedia.org/Earth/2026100100/2026100200" \
--header "Authorization: Bearer ${OPENANY_API_KEY}"
Understanding Response Examples
| Example | Provenance and scope |
|---|---|
| Documentation example | Documented response example showing fields and structure. |
Use the documented request as a calling template; consult the public API contract and the actual response for fields and status.
Connect AI Agents via OpenAny MCP
Connect to https://mcp.openany.si, discover with search_apis, then read the current contract and api_version with get_api. Use run_api only after approval of inputs, price and call count; keep the key in secure client configuration.
Agent prompt: Read daily user pageviews for Earth on en.wikipedia.org for my chosen date range. Inspect the Wikimedia contract and current billing first, obtain execution approval if applicable, then return timestamp/views with project, agent and access labels.
Pricing & Billing Rules
- No subscription; check the selected implementation’s contract and Selected price for the current amount and unit.
- Browsing, preparing inputs and viewing examples do not execute the API; curl and run_api do.
- Extra pages, retries and chained requests are separate executions; review their billing and spending limit first.
Frequently Asked Questions
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
wikimediaCurrent Wikipedia Article Pageviews API · GET · View API reference | $0 / call | 1 | 100.00%successP50265ms |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/wikimedia/analytics/pageviews/{project}/{article}/{start}/{end}- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
project | URL path parameterspath | string | Yes | Wikipedia project domain, such as en.wikipedia.org. |
article | URL path parameterspath | string | Yes | Article title with spaces replaced by underscores. |
start | URL path parameterspath | string | Yes | Start date in YYYYMMDD00 format. |
end | URL path parameterspath | string | Yes | End date in YYYYMMDD00 format. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
itemsobject[]accessstringagentstringarticlestringgranularitystringprojectstringtimestampstringviewsinteger
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 4
Review these request fields before running. Keep the published provider and request method unchanged.
project- Wikipedia project domain, such as en.wikipedia.org.
article- Article title with spaces replaced by underscores.
start- Start date in YYYYMMDD00 format.
end- End date in YYYYMMDD00 format.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/wikimedia/analytics/pageviews/en.wikipedia.org/Earth/2026100100/2026100200' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "items": [ { "access": "all-access", "agent": "user", "article": "Earth", "granularity": "daily", "project": "en.wikipedia", "timestamp": "2026100100", "views": 8637 }, { "access": "all-access", "agent": "user", "article": "Earth", "granularity": "daily", "project": "en.wikipedia", "timestamp": "2026100200", "views": 9127 } ] }