# Wikipedia Article Content

Get Wikipedia Article Content 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 english article page identifier, english article key, english article title, html, and article revision identifier to build an english article reader, show a chinese introduction, and retain source context.

Documentation: https://openany.si/wikipedia/wikipedia-article-content-capability/cae19924-d293-4b05-bdb4-88f569baa210/
API ID: cae19924-d293-4b05-bdb4-88f569baa210
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/page/{title}
Page update time: 2026-12-03T02:36:59.702Z
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:36:39.828Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Wikipedia Article Content API

Supply an English Wikipedia article title as one encoded path segment. The article record includes an html field together with identifiers, latest revision metadata and license information.

## What You Can Build

- **Build an English article reader**: Retrieve article HTML and render it using your application's content controls.
- **Show a Chinese introduction**: Choose the Chinese extract implementation for a short plain-text overview.
- **Retain source context**: Store article identity and available revision or licensing information with retrieved text.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | English article page identifier |
| `key` | English article key |
| `title` | English article title |
| `html` | English article HTML; the reference example omits the body |
| `latest.id` | Article revision identifier |
| `latest.timestamp` | Article revision timestamp |
| `license.title` | Reported content license title |
| `license.url` | Reported content license URL |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wikipedia Article Content 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": {
        "title": {
          "type": "string",
          "description": "Article title or page key. Prefer the key returned by article search and encode it as a single URL path segment.",
          "minLength": 1,
          "maxLength": 255
        }
      },
      "required": [
        "title"
      ]
    },
    "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": {
    "content_model": {
      "type": "string"
    },
    "html": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "key": {
      "type": "string"
    },
    "latest": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "timestamp": {
          "type": "string"
        }
      }
    },
    "license": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "title": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/wikimedia/page/Earth' \
  -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
{
  "content_model": "wikitext",
  "html": "<!-- Article HTML omitted from this example. -->",
  "id": 9228,
  "key": "Earth",
  "latest": {
    "id": 1382916556,
    "timestamp": "2026-10-31T00:08:00Z"
  },
  "license": {
    "title": "Creative Commons Attribution-Share Alike 4.0",
    "url": "https://creativecommons.org/licenses/by-sa/4.0/deed.en"
  },
  "title": "Earth"
}
```

## 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
### Do both implementations return the same content format?
No. The English implementation returns article HTML; the Chinese implementation returns an introductory plain-text extract.

### How should I put an English title into the URL?
Encode the title as one path segment. A key returned by the English Wikipedia Article Search API is a useful starting point.

### Does the reference example contain the full HTML body?
The documentation example abbreviates the HTML body. The html field is the article-content field in the response.

### Can the Chinese implementation return the complete article?
It requests the introduction with exintro=1 and explaintext=1. It does not expose full-article retrieval.

### Should I insert returned HTML directly into my application?
Apply your content sanitization and rendering policy to external article HTML before displaying it.

### Where can I find attribution information?
The English article record includes license metadata. Follow the source article and applicable license requirements when reusing content.

## Available implementations
- wikimedia: https://openany.si/wikipedia/wikipedia-article-content-capability/cae19924-d293-4b05-bdb4-88f569baa210/
- wikimedia: https://openany.si/wikipedia/wikipedia-article-content-capability/f52bd4aa-11e7-44f8-9e76-0a7fcd83cdf7/

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