Description
Full-text search across Wikipedia. Returns matching pages with title, description and a match excerpt.
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"
}
]
}