# Wikipedia API — $0.0005 per article

> Wikipedia API: Article summaries by title list or search query — extract, description. $0.0005 per delivered article, nothing delivered means nothing charged.

[Home](https://quanticdata.io/) / [Collectors](https://quanticdata.io/collectors/) / Wikipedia API

[All collectors](https://quanticdata.io/collectors/)

# Wikipedia API

Knowledge & reference · v1.1.1 · `wikipedia_articles`

$0.0005 / article

$0.40 / 1K · pay per delivered article

A Wikipedia API that resolves a search query — or your exact title list or /wiki/ URLs — into one typed row per article: title, page id, the short Wikidata description, the lead-section extract, the canonical URL, a thumbnail, the last-modified time and the Wikidata id. Any language edition, selected by a single lang input.

By [Aldo Morese](https://quanticdata.io/about/), founder of QuanticData · Published Aug 21, 2026 · Updated Sep 3, 2026

[Run in dashboard](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwikipedia_articles&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=wikipedia-api-hero) · [See the request](https://quanticdata.io/collectors/wikipedia-api/#integration)

$0.0005 per delivered article · $2 free every month · Failed runs never billed

On this page:

- [Try it](https://quanticdata.io/collectors/wikipedia-api/#try)
- [What it is](https://quanticdata.io/collectors/wikipedia-api/#what)
- [Limits](https://quanticdata.io/collectors/wikipedia-api/#caps)
- [Output fields](https://quanticdata.io/collectors/wikipedia-api/#output)
- [Inputs](https://quanticdata.io/collectors/wikipedia-api/#input)
- [Pricing](https://quanticdata.io/collectors/wikipedia-api/#pricing)
- [Integration](https://quanticdata.io/collectors/wikipedia-api/#integration)
- [Use cases](https://quanticdata.io/collectors/wikipedia-api/#use-cases)
- [Versus the alternatives](https://quanticdata.io/collectors/wikipedia-api/#compare)
- [FAQ](https://quanticdata.io/collectors/wikipedia-api/#faq)

What it does

## What a Wikipedia API does

The official MediaWiki API is free but leaves the assembly to you: one module searches, another fetches the summary, a third resolves the Wikidata id, with Wikimedia's User-Agent policy and rate limits on top. This collapses that into one run and returns the fields already joined, so the summary, the thumbnail and the Q-id land on the same row.

It reads the search index and the REST summary endpoint, so you get the lead-section extract and the short description — the encyclopedic gist — not raw wikitext to strip templates out of. Point lang at en, it, de or any edition; titles that do not exist come back under failed and are never billed, so one bad title does not poison the run.

## Inputs

The whole request. Anything you leave out falls back to the default shown in the catalog.

| Input | Type | Required | What it does |
| --- | --- | --- | --- |
| `query` | string | no | Search Wikipedia and read the top results. Use this OR titles. |
| `titles` | array | no | Exact article titles or /wiki/ URLs to read. Use this OR query. |
| `lang` | string | no | Wikipedia language edition (en, it, de…). Default en. |
| `max_results` | integer | no | How many articles to deliver at most (1–50). You pay only for delivered articles. |

Outputs — 16 fields, one row per article

## What one article looks like

Every delivered article carries these fields. Nullable means the source did not publish it — the field stays empty instead of being guessed.

| Field | Type | What it holds |
| --- | --- | --- |
| `rank` | integer | 1-based position. |
| `title` | string | Article title. |
| `page_id` | integer · nullable | MediaWiki page id. |
| `description` | string · nullable | Short description (Wikidata). |
| `extract` | string | Lead-section plain-text extract. |
| `url` | string | Canonical article URL. |
| `thumbnail` | string · nullable | Lead image thumbnail. |
| `lang` | string | Language edition read. |
| `last_modified` | string · nullable | Last revision time (ISO 8601). |
| `wikidata_id` | string · nullable | Wikidata item id (Q…). |
| `image` | string · nullable | Full-size lead image. |
| `revision_id` | integer · nullable | Revision id of the summary. |
| `page_type` | string · nullable | standard, disambiguation… |
| `latitude` | number · nullable | Latitude, for places. |
| `longitude` | number · nullable | Longitude, for places. |
| `word_count` | integer · nullable | Article length in words (search runs). |

Integration

## One POST, typed rows

Base URL `https://api.quanticdata.io/v1`, Bearer auth, the same key as every other Data API. Endpoint: `POST /v1/scraper/collectors/wikipedia_articles/run`.

cURL:

```bash
curl -X POST https://api.quanticdata.io/v1/scraper/collectors/wikipedia_articles/run \
  -H "Authorization: Bearer $QD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"web scraping","lang":"en","max_results":5}'
```

Python:

```python
import requests

r = requests.post(
    "https://api.quanticdata.io/v1/scraper/collectors/wikipedia_articles/run",
    headers={"Authorization": f"Bearer {QD_API_KEY}"},
    json={
        "query": "web scraping",
        "lang": "en",
        "max_results": 5
    },
    timeout=120,
)
for row in r.json()["payload"]["results"]:
    print(row)
```

Node.js:

```javascript
const res = await fetch(
  "https://api.quanticdata.io/v1/scraper/collectors/wikipedia_articles/run",
  {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.QD_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({"query":"web scraping","lang":"en","max_results":5}),
  },
);
const { payload } = await res.json();
console.table(payload.results);
```

MCP:

```bash
claude mcp add quanticdata \
  -e QUANTICDATA_API_KEY=qd_live_your_key_here \
  -- npx -y quanticdata-mcp

# then, in the chat:
> run the wikipedia_articles collector with query="web scraping" and lang="en"
```

Example response

POST /v1/scraper/collectors/wikipedia_articles/run

```bash
$ curl $QD/wikipedia_articles/run \
    -H "Authorization: Bearer $QD_API_KEY" \
    -d '{"query": "web scraping", "lang": "en", "max_results": 5}'
{ "status": "done", "count": 5,
  "results": [
    {
      "title": "…",
      "page_id": …,
      "description": "…",
      "extract": "…" } ],
  "cost": 0.0025 }
# 5 articles × $0.0005 · nothing delivered, nothing charged
```

Price

## Limits, in plain numbers

Everything that bounds one run of this collector. No hidden throttles.

Max per run

50 articles

Price

$0.0005 / article

Per 1,000

$0.40

Failed runs

Free zero rows, zero charge

Free every month

$2 no card

Rate limit

20 req/min on the free tier

Changelog

- `v1.1.1` 2026-10-11
- `v1.1.0` 2026-10-04
- `v1.0.0` 2026-08-24 Initial release

Every run records the collector version it ran on. Breaking output changes bump the major version.

Try it

## Wikipedia articles, running now

Change the input and run it against the live collector — nothing to install, no sign-up.

Run it from your own code, on your own inputs

Same collector, same rows — $2 of free API credit every month, no card.

[Get my free API key](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwikipedia_articles&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=wikipedia-api-closing)

![Wikipedia API: from query and lang, QuanticData reads the Wikipedia article and returns one row per article with title, description and extract, at $0.0005 per delivered article.](https://quanticdata.io/collectors/wikipedia-api/diagram.webp?v=20261004f)

*You send query and titles; the run reads the source and comes back as articles with rank, title and page_id — 16 fields on every row — and you are billed $0.0005 for each article actually delivered, nothing for a run that delivers none.*

**$0.0005 / article** · 4,000 articles on the free $2 every month

**Semantic input** · query, titles, lang — no URL lists

**Up to 50** articles per run, pagination handled for you

**No browser** · read over HTTP/TLS — cheaper and faster than rendering

Pricing

## Wikipedia API pricing

$0.0005 per delivered article. A run that delivers nothing costs nothing: blocked pages, challenges and retries are on us, and the $2 monthly allowance covers about 4,000 articles before you spend anything.

**$0.0005** per delivered article · *$0.4 per 1,000 delivered articles*

**4,000 articles** · on the free allowance · *$2 every month, no card*

**Zero rows** · zero charge · *blocks, captchas and retries are on us*

**−30%** on volume tiers · *the catalog returns your key's price*

- [Pay as you go](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwikipedia_articles&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=wikipedia-api-tier-1): $0/mo · $2 free credit / month · 20 requests / min (300 on real balance) · List unit prices
- [Starter](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwikipedia_articles&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=wikipedia-api-tier-2): $19/mo · $15 free credit / month · 300 requests / min · 10% off unit prices
- [Growth](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwikipedia_articles&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=wikipedia-api-tier-3): Most popular · $79/mo · $50 free credit / month · 600 requests / min · 20% off unit prices
- [Scale](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwikipedia_articles&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=wikipedia-api-tier-4): $299/mo · $250 free credit / month · 1,200 requests / min · 30% off unit prices

Same wallet, same key and same $2 monthly allowance as every other [Data API](https://quanticdata.io/web-data-api-for-ai/). Prices are launch pricing read live from the billing config — `GET /v1/scraper/collectors` returns the price your key actually pays.

## What people build with the Wikipedia API

Three shapes of work this endpoint was designed around.

### Entity enrichment

Resolve a list of names to their canonical article, short description and Wikidata id to key against other datasets.

### RAG context

Pull clean lead-section extracts for a set of topics as grounding text, without carrying a MediaWiki client in your pipeline.

### Multilingual lookups

Read the same topics across editions by changing lang, keeping title, extract and Wikidata id aligned per row.

## Wikipedia API versus rolling your own

The differences that actually cost time when you build this in-house.

|  | DIY scraper | This collector |
| --- | --- | --- |
| Calls per article | Search, summary and Wikidata separately | One row with all three joined |
| Content | Raw wikitext to clean | Lead-section extract and short description |
| Missing titles | Errors to catch yourself | Reported under failed, never billed |

## What people search for

Live autocomplete demand around Wikipedia articles, pulled with our own Keyword ideas collector.

Searches:

- [wikipedia scraper python](https://quanticdata.io/collectors/wikipedia-api/#try)
- [wikipedia scraper github](https://quanticdata.io/collectors/wikipedia-api/#try)
- [wikipedia scraper api](https://quanticdata.io/collectors/wikipedia-api/#try)
- [wiki scraper](https://quanticdata.io/collectors/wikipedia-api/#try)
- [wiki scraper github](https://quanticdata.io/collectors/wikipedia-api/#try)
- [wiki scraper python](https://quanticdata.io/collectors/wikipedia-api/#try)
- [wikipedia web scraper](https://quanticdata.io/collectors/wikipedia-api/#try)
- [wikipedia data scraper](https://quanticdata.io/collectors/wikipedia-api/#try)
- [wikipedia image scraper](https://quanticdata.io/collectors/wikipedia-api/#try)
- [bench scraper wikipedia](https://quanticdata.io/collectors/wikipedia-api/#try)
- [python wikipedia scraper site github com](https://quanticdata.io/collectors/wikipedia-api/#try)
- [is scraping wikipedia legal](https://quanticdata.io/collectors/wikipedia-api/#try)
- [is scraping wikipedia allowed](https://quanticdata.io/collectors/wikipedia-api/#try)
- [is wikipedia legit](https://quanticdata.io/collectors/wikipedia-api/#try)
- [is wikipedia trustworthy](https://quanticdata.io/collectors/wikipedia-api/#try)
- [is wikipedia a good source](https://quanticdata.io/collectors/wikipedia-api/#try)

![Wikipedia API: the POST to the wikipedia_articles collector, 5 articles delivered and the bill, 5 × $0.0005 = $0.0025 in usage.cost_usd; zero articles would cost $0.](https://quanticdata.io/collectors/wikipedia-api/diagram2.webp?v=20261004f)

*The same call you would paste into a terminal: a Bearer key, query, lang and titles in the body, and back the envelope every QuanticData endpoint returns — type, message, payload — where count is how many articles arrived and usage.cost_usd is $0.0025, which is 5 × $0.0005. A run that delivers nothing costs nothing. The key is good for 20 req/min on the free tier.*

## Sources and standards

The platform documentation and standards this collector is built against — check any claim on this page against the primary source:

- [Wikimedia: the MediaWiki Action API](https://www.mediawiki.org/wiki/API:Main_page)
- [Wikimedia: the REST API for Wikipedia content](https://www.mediawiki.org/wiki/API:REST_API)
- [Wikimedia: the user-agent policy for API clients](https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_User-Agent_Policy)

## FAQ

Questions we get about the Wikipedia API.

[Something else? Ask us](https://quanticdata.io/collectors/wikipedia-api/#ask)

### How is this different from the free MediaWiki API?

Same public data, less assembly. The official API makes you chain search, summary and Wikidata calls and honour Wikimedia's User-Agent and rate-limit rules yourself; here one request returns the joined row and the rotating exits carry the load.

### Do I get the full article text?

No — `extract` is the lead-section plain-text summary and `description` is the one-line Wikidata gloss. That is the gist for enrichment and grounding, not the entire page with its templates and references.

### Can I read a non-English edition?

Yes. `lang` selects the edition — en, it, de and the rest — and the row records which language it read, so a multilingual batch stays labelled.

### Is there a free Wikipedia API?

Every account gets $2 of credit every month with no card, which is about 4,000 delivered articles on this endpoint at $0.0005 each. It renews monthly, and a run that delivers nothing is never billed — so a failed or blocked attempt does not eat the allowance.

### How much does one run cost?

Multiply the rows you actually receive by $0.0005. A run capped at 50 articles — the maximum for this collector — costs $0.025 if every row comes back, and less when the source has fewer. Volume tiers take up to 30% off, and `GET /v1/scraper/collectors` returns the price your key actually pays.

## Run the Wikipedia API now

$2 of free credit every month, no card. Your key returns its own prices from `GET /v1/scraper/collectors`.

[Run in dashboard](https://app.quanticdata.io/register?next=%2Fdata-api%2Fcollectors%2Fwikipedia_articles&utm_source=collector-page&utm_medium=website&utm_campaign=data-api&utm_content=wikipedia-api-cta-3)

![Illustration: three coloured zones of the page that is read (Wikipedia article) turn into clean JSON with the fields title, description and extract; 16 fields on every row.](https://quanticdata.io/collectors/wikipedia-api/hero.webp?v=20261004h)

Related:

- [All 100+ collectors](https://quanticdata.io/collectors/)
- [Google search results API](https://quanticdata.io/collectors/google-search-results-api/)
- [Reddit scraper API](https://quanticdata.io/collectors/reddit-scraper-api/)
- [Keyword research API](https://quanticdata.io/collectors/keyword-research-api/)
- [App Store reviews API](https://quanticdata.io/collectors/app-store-reviews-api/)
- [Steam store API](https://quanticdata.io/collectors/steam-store-api/)
- [Documentation](https://quanticdata.io/docs/)

In code:

- [Wikipedia API in Python](https://quanticdata.io/collectors/wikipedia-api/python/)

---

Source: https://quanticdata.io/collectors/wikipedia-api/ · Site index for AI: https://quanticdata.io/llms.txt
