# Chinese Wikipedia Article Search

Search Wikipedia Article via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Wikimedia, pass parameters such as limit, q, and retrieve structured data including article page identifier, article key, article title, search excerpt, and short description to build a reference search, find article identifiers, and separate language collections.

Documentation: https://openany.si/wikipedia/wikipedia-article-search-capability/7eb21f84-9459-482a-854b-8c7ee496893e/
API ID: 7eb21f84-9459-482a-854b-8c7ee496893e
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/zh/search
Page update time: 2026-12-03T02:36:59.682Z
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.733Z. 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 Search API

Use the Chinese Wikipedia search endpoint with q and a required limit from 1 to 20. The pages array contains article identifiers, titles, excerpts and optional descriptive or thumbnail data from the Chinese edition.

## What You Can Build

- **Build a reference search**: Show article candidates with titles and search excerpts.
- **Find article identifiers**: Pass a returned article key into the compatible article-content endpoint.
- **Separate language collections**: Choose the matching language implementation instead of treating UI language as search language.

## Returned Data

| Field | Meaning |
| --- | --- |
| `pages[].id` | Article page identifier |
| `pages[].key` | Article key for subsequent page lookup |
| `pages[].title` | Article title |
| `pages[].excerpt` | Search excerpt, potentially containing highlighting markup |
| `pages[].description` | Short description when available |
| `pages[].thumbnail` | Thumbnail object when available |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Chinese Wikipedia Article Search 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": {
        "q": {
          "type": "string",
          "description": "Search keywords."
        },
        "limit": {
          "type": "integer",
          "description": "Maximum number of search results.",
          "minimum": 1,
          "maximum": 20
        }
      },
      "required": [
        "q",
        "limit"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "pages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "anchor": {
            "type": "null"
          },
          "description": {
            "type": "string"
          },
          "excerpt": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "key": {
            "type": "string"
          },
          "matched_title": {
            "type": "null"
          },
          "thumbnail": {
            "type": "object",
            "properties": {
              "duration": {
                "type": "null"
              },
              "height": {
                "type": "integer"
              },
              "mimetype": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "width": {
                "type": "integer"
              }
            }
          },
          "title": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/wikimedia/zh/search?limit=1&q=%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
{
  "pages": [
    {
      "anchor": null,
      "description": "太陽系中距離太陽第三近的行星",
      "excerpt": "XL5），但仍有大量近地天体可能会受<span class=\"searchmatch\">地球</span>引力影响而靠近甚至穿越<span class=\"searchmatch\">地球</span>轨道。<span class=\"searchmatch\">地球</span>仅有一顆真正意义上的天然卫星——月球，在其形成后不久就已被潮汐锁定；另外还有七个已知的越地小行星因公转周期与<span class=\"searchmatch\">地球</span>相近而被视作准卫星。 <span class=\"searchmatch\">地球</span>形成于约45.4亿年前，在形成后不久曾遭到同轨道另一矮行星撞击（忒伊亚大碰撞），导致原始<span class=\"searchmatch\">地球</span>",
      "id": 5414300,
      "key": "地球",
      "matched_title": null,
      "thumbnail": {
        "duration": null,
        "height": 60,
        "mimetype": "image/png",
        "url": "//thumb.wikimedia.org/wikipedia/commons/thumb/5/57/Earth_in_True_Color_from_Himawari_9.png/60px-Earth_in_True_Color_from_Himawari_9.png?utm_source=zh.wikipedia.org&utm_campaign=rest&utm_content=thumbnail",
        "width": 60
      },
      "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
### Which Wikipedia edition does this endpoint search?
It searches the Chinese edition. Choose the separate English implementation for English Wikipedia.

### Is limit required for this implementation?
Yes. Supply limit from 1 to 20 together with q. Unlike the English implementation, this Chinese contract requires the parameter.

### Are excerpts full article contents?
No. Excerpts are search snippets. Retrieve article content separately for a reading or knowledge workflow.

### Can I send an offset to paginate?
These implementations declare q and limit but no offset or cursor input.

### What should I do with excerpt markup?
Search excerpts can contain highlighting markup. Sanitize it or convert it to plain text before display.

### Is a thumbnail guaranteed for every article?
No. Treat thumbnail and description as optional data and provide a fallback in your interface.

## Available implementations
- wikimedia: https://openany.si/wikipedia/wikipedia-article-search-capability/68c55d6d-b6e5-4110-945c-54b2e17a2662/
- wikimedia: https://openany.si/wikipedia/wikipedia-article-search-capability/7eb21f84-9459-482a-854b-8c7ee496893e/

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