# Wikipedia Most Viewed (`wikipedia.most_viewed`)

The most-viewed Wikipedia articles of a day in any language edition: what the world looked up.

- **Route:** `POST /v1/run/wikipedia.most_viewed`
- **Price:** $0.0005 per request ($0.50 per 1,000) · `cost_usd` on every response
- **Source:** Wikimedia APIs (`wikipedia`) · failover: no
- **Measured latency:** not enough calls measured yet
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `language` | string | no | "en" | Language edition, e.g. en, de, fr |
| `date` | string | no |  | Day as YYYY-MM-DD; default two days ago (latest complete data) |
| `limit` | integer | no | 25 | Articles to return |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `articles` | rank, title, views, url. |
| `date` | Day covered. |
| `count` | Articles returned. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/wikipedia.most_viewed \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"language":"en","limit":10}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('wikipedia.most_viewed', {'language': 'en', 'limit': 10})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run wikipedia.most_viewed '{"language":"en","limit":10}'
```

Quote first (free, validates input): `POST /v1/quote/wikipedia.most_viewed` with the same body.
