# Wikipedia Articles API

> Wikipedia article summaries and full-text search in any language: extract, description, image

- Vendor: `wikipediaarticlesapi` · version 1.0 · category Content · tags wikipedia api, encyclopedia api, article summary api, knowledge api, wiki search api, page extract api
- Datasource: custom HTTP routes
- Marketplace page: https://apiclay.com/api/wikipediaarticlesapi
- This document: https://apiclay.com/docs/wikipediaarticlesapi.md
- OpenAPI 3.1: https://apiclay.com/api/wikipediaarticlesapi/openapi.json
- MCP: connect https://api.apiclay.com/v1/mcp (see https://apiclay.com/llms.txt), then `apiclay_describe_api` with vendor `wikipediaarticlesapi`
- Updated: 2026-11-18

## About

## Wikipedia Articles API

Read Wikipedia in any language edition: an article's summary (plain-text extract, short description, thumbnail and original image, Wikidata id, page URLs) and full-text search over article titles and text with excerpts.

Data comes from **wikipedia.org** (https://www.wikipedia.org). Every route calls the source's own public API and returns it unchanged.

Typical flow: `/search?lang=en&amp;q=turing&amp;limit=5`, then `/summary?lang=en&amp;title=Alan_Turing`.

### Routes

#### GET `/summary` - Article summary
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| lang | path | string | yes | Language code, e.g. `en`, `de`, `ja`. |
| title | path | string | yes | Article title with underscores, e.g. `Alan_Turing`. |

Returns: `title`, `description`, `extract`, `extract_html`, `thumbnail`, `originalimage`, `wikibase_item`, `content_urls`, `timestamp`.

#### GET `/search` - Search articles
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| lang | path | string | yes | Language code. |
| q | query | string | yes | Search words. |
| limit | query | number | no | 1-100. |

Returns: `pages[]` with `key`, `title`, `excerpt`, `description`, `thumbnail`.

### Caveats

- Wikipedia text is CC BY-SA; credit Wikipedia and link the article.
- Titles containing `/` cannot be passed as a path value.
- Upstream responses can change over time. Verify fields before relying on them.
- Not affiliated with or endorsed by wikipedia.org.

## Pricing

- Pay as you go: 0.0012 credits/request
- Trial: 1 free requests per buyer
- Billing order: trial requests -> subscribed plan requests -> pay as you go. 1 credit's USD value is shown on the marketplace page.

## HTTP routes

Only the public, buyer-facing parts of each route are listed; vendor-side credentials stay on the gateway.

### GET /summary — Article summary
- Gateway: `GET https://api.apiclay.com/v1/api/wikipediaarticlesapi/summary`
- Public query params: `lang` (string, required), `title` (string, required)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /search — Search articles
- Gateway: `GET https://api.apiclay.com/v1/api/wikipediaarticlesapi/search`
- Public query params: `q` (string, required), `limit` (number), `lang` (string, required)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

## Call example

```bash
curl -X GET "https://api.apiclay.com/v1/api/wikipediaarticlesapi/summary?lang=<lang>&title=<title>" \
  -H "token: <YOUR_APICLAY_TOKEN>"
```

Index of every published API: https://apiclay.com/llms.txt
