# Wikipedia Most-Viewed Articles API

Get Wikipedia Most-Viewed Articles data 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 wikimedia project identifier, article title key, pageview rank, and requested day to build a readership ranking, compare daily snapshots, and choose research subjects.

Documentation: https://openany.si/wikipedia/wikipedia-most-viewed-articles/
API ID: 4347c94d-72dc-4c55-9659-be02ba6fb632
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/analytics/top/{project}/{year}/{month}/{day}
Page update time: 2026-12-03T02:37:00.458Z
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
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:37:00.458Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Wikipedia Most-Viewed Articles API

Provide project, year, month and day as path segments. Each items record identifies the project and date and contains articles with article, rank and views; the reference access value is all-access.

## What You Can Build

- **Build a readership ranking**: Display article titles with their date-specific rank and views.
- **Compare daily snapshots**: Store dated responses before analyzing changes across days.
- **Choose research subjects**: Use a daily list as a starting point for article-level investigation.

## Returned Data

| Field | Meaning |
| --- | --- |
| `items[].project` | Wikimedia project identifier |
| `items[].access` | Access grouping reported by the response |
| `items[].articles[].article` | Article title key |
| `items[].articles[].rank` | Pageview rank |
| `items[].articles[].views` | Pageview count for the requested date |
| `items[].day` | Requested day |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wikipedia Most-Viewed Articles 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."
        },
        "year": {
          "type": "string",
          "description": "Four-digit UTC year."
        },
        "month": {
          "type": "string",
          "description": "Two-digit UTC month."
        },
        "day": {
          "type": "string",
          "description": "Two-digit UTC day."
        }
      },
      "required": [
        "project",
        "year",
        "month",
        "day"
      ]
    },
    "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"
          },
          "articles": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "article": {
                  "type": "string"
                },
                "rank": {
                  "type": "integer"
                },
                "views": {
                  "type": "integer"
                }
              }
            }
          },
          "day": {
            "type": "string"
          },
          "month": {
            "type": "string"
          },
          "project": {
            "type": "string"
          },
          "year": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/wikimedia/analytics/top/en.wikipedia.org/2026/10/01' \
  -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",
      "articles": [
        {
          "article": "Main_Page",
          "rank": 1,
          "views": 6672618
        },
        {
          "article": "Christa_Pike",
          "rank": 2,
          "views": 4309025
        },
        {
          "article": "Special:Search",
          "rank": 3,
          "views": 897019
        }
      ],
      "day": "01",
      "month": "10",
      "project": "en.wikipedia",
      "year": "2026"
    }
  ]
}
```

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

## Common questions
### What timezone do the date parameters use?
Use UTC dates, with a four-digit year and two-digit month and day.

### Is this a live ranking of the current minute?
No. It is requested for a calendar date, not a real-time minute-by-minute activity feed.

### Can I filter mobile, desktop or user traffic?
This contract exposes project and date only. It does not expose access or traffic-classification filters.

### Does rank show growth compared with yesterday?
No. Rank orders views for the requested date. Growth comparisons require separately collected dates.

### Can I page through the ranking?
No page, cursor or limit input is declared for this operation.

### Can a returned article key contain underscores?
Yes. Preserve the source key and encode it appropriately when constructing an article URL.

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