# Chinese Wikipedia Article Introduction

Get Wikipedia Article Content data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Wikimedia, pass parameters such as action, exchars, exintro, and retrieve structured data including action API batch-completion indicator, article page identifier, article namespace, resolved article title, and introductory plain-text extract to build an english article reader, show a chinese introduction, and retain source context.

Documentation: https://openany.si/wikipedia/wikipedia-article-content-capability/f52bd4aa-11e7-44f8-9e76-0a7fcd83cdf7/
API ID: f52bd4aa-11e7-44f8-9e76-0a7fcd83cdf7
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/zh/article-intro
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.917Z. 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

Request a single Chinese article title with the fixed Action API values action=query, prop=extracts, exintro=1 and explaintext=1. The response returns a plain-text introduction under query.pages\[\].extract, with exchars controlling the requested extract size.

## 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 |
| --- | --- |
| `batchcomplete` | Action API batch-completion indicator |
| `query.pages[].pageid` | Article page identifier |
| `query.pages[].ns` | Article namespace |
| `query.pages[].title` | Resolved article title |
| `query.pages[].extract` | Introductory plain-text extract |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Chinese Wikipedia Article Introduction 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": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string",
          "description": "Select the read-only query action.",
          "enum": [
            "query"
          ]
        },
        "prop": {
          "type": "string",
          "description": "Request article text extracts.",
          "enum": [
            "extracts"
          ]
        },
        "exintro": {
          "type": "string",
          "description": "Return the lead section only.",
          "enum": [
            "1"
          ]
        },
        "explaintext": {
          "type": "string",
          "description": "Return plain text in the extract field.",
          "enum": [
            "1"
          ]
        },
        "format": {
          "type": "string",
          "description": "Return a JSON response.",
          "enum": [
            "json"
          ]
        },
        "formatversion": {
          "type": "string",
          "description": "Use JSON format version 2.",
          "enum": [
            "2"
          ]
        },
        "redirects": {
          "type": "string",
          "description": "Resolve Wikipedia title redirects.",
          "enum": [
            "1"
          ]
        },
        "titles": {
          "type": "string",
          "description": "One Chinese Wikipedia article title. Do not use the pipe character to combine titles.",
          "minLength": 1,
          "maxLength": 255
        },
        "exchars": {
          "type": "integer",
          "description": "Requested extract length in characters, from 1 to 500. MediaWiki may return a few extra characters.",
          "minimum": 1,
          "maximum": 500
        }
      },
      "required": [
        "action",
        "prop",
        "exintro",
        "explaintext",
        "format",
        "formatversion",
        "redirects",
        "titles",
        "exchars"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "batchcomplete": {
      "type": "boolean"
    },
    "query": {
      "type": "object",
      "properties": {
        "pages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "extract": {
                "type": "string"
              },
              "ns": {
                "type": "integer"
              },
              "pageid": {
                "type": "integer"
              },
              "title": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/wikimedia/zh/article-intro?action=query&exchars=180&exintro=1&explaintext=1&format=json&formatversion=2&prop=extracts&redirects=1&titles=%E5%9C%B0%E7%90%83' \
  -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
{
  "batchcomplete": true,
  "query": {
    "pages": [
      {
        "extract": "地球是太阳系中由內向外的第三顆行星，与太阳平均距离149,597,870公里（1天文單位），位于太阳系宜居带正中位置。地球质量约为5.972×1024公斤，平均半径约6,371公里，平均密度5.52g/cm3，是太阳系最大的一个岩石行星，也是太阳系所有天体中密度最高的。地球同时进行自转和公转运动，每自转一次为一太阳日（即一昼夜），每公转一周为一太阳年；地球自转的轨道面称为赤道面…",
        "ns": 0,
        "pageid": 5414300,
        "title": "地球"
      }
    ]
  }
}
```

## 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
### Does this endpoint return full article HTML?
No. It returns a plain-text introduction using exintro=1 and explaintext=1.

### Can I request several titles together?
The contract requires one title and does not permit a pipe-separated title list.

### What does exchars control?
It requests an extract size from 1 to 500 characters. The upstream extract can slightly exceed the requested size.

### Which Action API settings are required?
Use action=query, prop=extracts, exintro=1, explaintext=1, format=json, formatversion=2 and redirects=1 as declared.

### Can I use an English Wikipedia article key?
Choose a title in Chinese Wikipedia. English article keys belong to a different language edition and may not resolve to the intended page.

### How do I retrieve sections after the introduction?
This implementation only exposes the introduction. Open the source article or use a separate operation that explicitly supports the required 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
