OpenAny
Get API keyAPI Key
APISearch & Research

wikipedia logo
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
USE THIS API

Wikipedia Article Pageviews API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
Pricing
Connect your agent
On this page

Overview

Overview
Wikipedia Article Pageviews API

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

  1. Configure OPENANY_API_KEY securely in your local environment and select Wikimedia.
  2. The example queries Earth on en.wikipedia.org for two daily timestamps; replace the article and date range.
  3. Check Selected price before running the command; execution sends a real request under the current contract.
bash
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

View FAQ

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Wikipedia project domain, such as en.wikipedia.org.
Article title with spaces replaced by underscores.
Start date in YYYYMMDD00 format.
End date in YYYYMMDD00 format.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
wikimediaCurrent
Wikipedia Article Pageviews API · GET · View API reference
$0 / call1
100.00%successP50265ms
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · wikimediaUSD / call
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.

calls

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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
projectURL path parameterspathstringYes

Wikipedia project domain, such as en.wikipedia.org.

articleURL path parameterspathstringYes

Article title with spaces replaced by underscores.

startURL path parameterspathstringYes

Start date in YYYYMMDD00 format.

endURL path parameterspathstringYes

End date in YYYYMMDD00 format.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • itemsobject[]
    • accessstring
    • agentstring
    • articlestring
    • granularitystring
    • projectstring
    • timestampstring
    • viewsinteger

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Documentation example

Published documentation example. Verify the actual response after an approved call.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    curl \
      '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'
  3. 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
        }
      ]
    }

Common questions

Do I need a Wikipedia subscription or account cookie?

No. The published request does not require a Wikipedia account cookie or subscription. OpenAny API-key authentication still applies.

Are pageviews the same as unique readers?

No. views counts pageviews. It is not a unique-reader or keyword-search-volume metric.

How should I format dates and article names?

Use YYYYMMDD00 for start/end and underscores for spaces in article names, then encode the path safely.

Can I choose bots, hourly data or monthly totals?

Not with this contract. It fixes all-access, user and daily; do not add unsupported inputs or silently reinterpret the data.

Does this route aggregate translations or redirects automatically?

No such aggregation is documented here. Query the intended project/article explicitly and keep that scope in comparisons.

How are requests billed?

Check Selected price before running. The current API contract determines whether requests are free or charged; each additional article or date-range query is a separate request.

Use Wikipedia Article Pageviews API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.