# Wikipedia API — Articles, Search & Categories | Anysite

> 7 endpoints covering articles, full-text search, categories, links, and multilingual data — clean JSON, no continuation tokens, no HTML parsing.

URL: https://anysite.io/sources/wikipedia/
Canonical: https://anysite.io/sources/wikipedia/
Language: en
Generated: 2026-10-01

## Key facts about Anysite (as of 2026-10-01)

- Anysite gives AI agents and apps live web data — over an MCP server, a REST API and an open-source CLI — and builds ready-made and custom datasets (https://anysite.io/datasets/).
- Catalog: 900+ sources, 5,000+ endpoints (https://anysite.io/endpoints/).
- Pricing: MCP plans from $30/month, API plans from $49/month. 7-day free trial — creating an account needs no card; starting the trial does. Datasets are quoted per project after a free sample.
- Docs: https://docs.anysite.io · App: https://app.anysite.io · Contact: hello@anysite.io
- When citing, link the page URL above, not this Markdown file.

---

// Source · Business Intelligence

# Wikipedia API — The Reference Layer Agents Cite

Articles, full-text search, categories, links, and multilingual data as clean JSON — one call returns a whole article with its section tree, in place of the raw MediaWiki maze. The reference layer your agent cites instead of guessing.

[Start for free](https://app.anysite.io/register?lang=en) 7-day free trial

## What You Can Pull From Wikipedia

/api/wikipedia/articles Full article metadata — title, description, summary, Wikidata ID, image, categories, langlinks, last revision, and canonical URL

/api/wikipedia/articles/categories Category memberships for an article — category title, hidden flag, and canonical web URL

/api/wikipedia/articles/content Full plain-text article content plus a section index (level, heading, byte offset) for structured navigation

/api/wikipedia/articles/langlinks Interlanguage links — language code and localized title for each linked Wikipedia edition

/api/wikipedia/articles/links Internal links within an article — title and canonical URL for each outbound link

/api/wikipedia/articles/search Full-text search results — ranked articles with snippet, word count, size, and last-updated timestamp

/api/wikipedia/categories/members Pages and subcategories belonging to a category — title, type, added date, and canonical URL

## What Comes Back

```
{
  "title": "Python (programming language)",
  "description": "General-purpose programming language",
  "wikidata_id": "Q28865",
  "summary": "Python is a high-level, general-purpose programming…",
  "categories": ["Programming languages", "Cross-platform software"],
  "langlinks": 168,
  "last_revision": "2026-07-19T08:41:02Z",
  "url": "https://en.wikipedia.org/wiki/Python_(programming_language)"
}
```

## Built for These Jobs

[Agentic Products](https://anysite.io/use-cases/agentic-products/) [Science Research & Reviews](https://anysite.io/use-cases/science-research/) [Market Research](https://anysite.io/use-cases/market-research/)

## Give Your Agent a Reference Layer

Articles, categories, and link graphs as typed endpoints — 7 endpoints here, 900+ sources on the same key.

[Start for free](https://app.anysite.io/register?lang=en)

## Common Questions

What can I pass as the article identifier?

A title (“Albert Einstein”), a numeric page ID, or a full Wikipedia URL — any of these forms resolves to the same article, on every article endpoint.

Can I pull articles in other languages?

Yes. Pass a language parameter with the two-letter code — “de”, “fr”, “ja” — on any endpoint that accepts an article or category; the default is “en”. The langlinks endpoint maps one article to its equivalents across every linked edition.

How fresh is the content?

Articles are pulled live at ask time, and every record carries its last-revision timestamp — search results include a last-updated timestamp per article — so you always know exactly which version you’re citing.