# 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.

Documentation: https://openany.si/market/apis/wikipedia/wikipedia-article-pageviews/
API ID: 2acba350-8edc-49d9-90f6-e861c7ec6156
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/analytics/pageviews/{project}/{article}/{start}/{end}
Page update time: 2026-12-03T01:54:37.321Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T01:54:37.321Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wikipedia Article Pageviews API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "project": {
          "type": "string",
          "description": "Wikipedia project domain, such as en.wikipedia.org."
        },
        "article": {
          "type": "string",
          "description": "Article title with spaces replaced by underscores."
        },
        "start": {
          "type": "string",
          "description": "Start date in YYYYMMDD00 format."
        },
        "end": {
          "type": "string",
          "description": "End date in YYYYMMDD00 format."
        }
      },
      "required": [
        "project",
        "article",
        "start",
        "end"
      ]
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "access": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "article": {
            "type": "string"
          },
          "granularity": {
            "type": "string"
          },
          "project": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          },
          "views": {
            "type": "integer"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
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'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "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
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
