← APIs / Wikipedia Data API
Verified

Wikipedia Data API

Apiosk Basicsby Apiosk Basics · General

Search Wikipedia and fetch clean article summaries or full HTML — the open encyclopedia as a pay-per-call API for AI agents.

dataapi
Price per request
$0.02
About

The Wikipedia Data API proxies Wikipedia's open REST endpoints through the Apiosk gateway with per-call x402 billing. Agents can run full-text search, pull a concise article summary (extract + thumbnail + description), or fetch the full rendered article as clean HTML — no API key or account needed. The gateway injects a Wikimedia-compliant User-Agent on every request. Data is CC BY-SA from the Wikimedia projects.

Base URL
https://gateway.apiosk.com/wikipedia
Technical Specs
Auth Methodnone
Response FormatJSON
Endpoints3
Endpoints
MethodPathDescriptionCost
GET /api/rest_v1/page/html Full rendered Wikipedia article as clean HTML (Parsoid). Append the page title to the path, e.g. /api/rest_v1/page/html/Bitcoin.
$0.02 default
View details
GET /api/rest_v1/page/summary Concise summary of a Wikipedia article: title, description, plain-text extract and thumbnail. Append the page title to the path, e.g. /api/rest_v1/page/summary/Bitcoin.
$0.02 default
View details
GET /w/rest.php/v1/search/page Full-text search across Wikipedia. Returns matching pages with title, description and a match excerpt.
$0.02 default
View details
Endpoint documentation
GET/api/rest_v1/page/html
$0.02 default
Description

Full rendered Wikipedia article as clean HTML (Parsoid). Append the page title to the path, e.g. /api/rest_v1/page/html/Bitcoin.

Pricing
$0.02 default
Parameters
{}
Response schema
{
  "description": "The full article as standards-compliant HTML (Content-Type text/html).",
  "type": "string"
}
Example response
"<!DOCTYPE html><html>... full article HTML ...</html>"
GET/api/rest_v1/page/summary
$0.02 default
Description

Concise summary of a Wikipedia article: title, description, plain-text extract and thumbnail. Append the page title to the path, e.g. /api/rest_v1/page/summary/Bitcoin.

Pricing
$0.02 default
Parameters
{}
Response schema
{
  "description": "JSON summary: title, description, extract, thumbnail, content_urls.",
  "type": "object"
}
Example response
{
  "description": "Decentralized digital currency",
  "extract": "Bitcoin is the first decentralized cryptocurrency...",
  "title": "Bitcoin"
}
GET/w/rest.php/v1/search/page
$0.02 default
Description

Full-text search across Wikipedia. Returns matching pages with title, description and a match excerpt.

Pricing
$0.02 default
Parameters
{
  "limit": {
    "default": 5,
    "description": "Max results (1-100)",
    "example": 5,
    "required": false,
    "type": "integer"
  },
  "q": {
    "description": "Search query",
    "example": "Bitcoin",
    "required": true,
    "type": "string"
  }
}
Response schema
{
  "description": "JSON with a 'pages' array; each item has id, key, title, excerpt, description and thumbnail.",
  "type": "object"
}
Example request
{
  "limit": 5,
  "q": "Bitcoin"
}
Example response
{
  "pages": [
    {
      "description": "Decentralized digital currency",
      "excerpt": "<span class=\"searchmatch\">Bitcoin</span> is the first decentralized cryptocurrency.",
      "title": "Bitcoin"
    }
  ]
}