# 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/market/apis/wikipedia/wikipedia-article-search-capability/?offering=68c55d6d-b6e5-4110-945c-54b2e17a2662
API ID: 68c55d6d-b6e5-4110-945c-54b2e17a2662
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/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
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:36:39.637Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "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, such as Earth.",
          "minLength": 1,
          "maxLength": 256
        },
        "limit": {
          "type": "integer",
          "description": "Maximum number of results to return. OpenAny accepts 1 to 20. Omit this parameter to use the upstream default.",
          "minimum": 1,
          "maximum": 20
        }
      },
      "required": [
        "q"
      ]
    },
    "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/search?limit=1&q=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
{
  "pages": [
    {
      "anchor": null,
      "description": "Third planet from the Sun",
      "excerpt": "<span class=\"searchmatch\">Earth</span> is the third planet from the Sun and the only astronomical object known to harbor life. This is made possible by <span class=\"searchmatch\">Earth</span> being an ocean world, the",
      "id": 9228,
      "key": "Earth",
      "matched_title": null,
      "thumbnail": {
        "duration": null,
        "height": 60,
        "mimetype": "image/jpeg",
        "url": "//thumb.wikimedia.org/wikipedia/commons/thumb/2/2d/Meteosat-12-fci-march-equinox-2025-noon.jpg/60px-Meteosat-12-fci-march-equinox-2025-noon.jpg?utm_source=en.wikipedia.org&utm_campaign=rest&utm_content=thumbnail",
        "width": 60
      },
      "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.

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

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