# Wikipedia Full Article (`wikipedia.article`)

Full plain text of a Wikipedia article in any language edition, with its section list. Follows redirects.

- **Route:** `POST /v1/run/wikipedia.article`
- **Price:** $0.0007 per request ($0.70 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 |
|---|---|---|---|---|
| `title` | string | yes |  | Article title |
| `language` | string | no | "en" | Language edition, e.g. en, de, fr |
| `max_chars` | integer | no | 50000 | Maximum characters of text |

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

| Field | Meaning |
|---|---|
| `title` | Resolved title. |
| `text` | Plain text with == section == markers. |
| `sections` | Section headings. |
| `truncated` | True when the text was cut. |
| `url` | Article URL. |
| `wikidata_id` | Linked Wikidata item. |
| `license` | CC BY-SA attribution note. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/wikipedia.article \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Model Context Protocol","max_chars":3000}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('wikipedia.article', {'title': 'Model Context Protocol', 'max_chars': 3000})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run wikipedia.article '{"title":"Model Context Protocol","max_chars":3000}'
```

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