Catalog/wiki-search

Data

Wikipedia full-text search with freshness & size signals API

Full-text Wikipedia search returning cleaned plain-text snippets plus per-result word count, a length bucket (stub/short/medium/long), days-since-last-edit and a recentlyEdited flag. More than a proxy: it strips MediaWiki markup and derives quality/freshness signals. Answers 'search Wikipedia for X', 'which article best matches', 'is the top hit a stub or recently edited'.

Price$0.01per request
MethodPOST
Route/v1/data/wiki-search
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache3600s public
datawikipediasearchfulltextsnippetfreshnessrankingwikimedia
API URLhttps://x402.hexl.dev/v1/data/wiki-search
Integration docs
Example request
{
  "query": "quantum entanglement",
  "limit": 3
}
Example response
{
  "query": "quantum entanglement",
  "totalHits": 1144,
  "count": 3,
  "results": [
    {
      "title": "Quantum entanglement",
      "pageId": 25336,
      "snippet": "Quantum entanglement is the phenomenon in which the quantum state of each particle in a group cannot be described independently of the state of the others",
      "wordCount": 13681,
      "length": "long",
      "lastEditDays": 3,
      "recentlyEdited": true,
      "url": "https://en.wikipedia.org/wiki/Quantum_entanglement"
    },
    {
      "title": "Entanglement swapping",
      "pageId": 77765161,
      "snippet": "In quantum mechanics, entanglement swapping is a protocol to transfer quantum entanglement from one pair of particles to another, even if the second pair",
      "wordCount": 1103,
      "length": "short",
      "lastEditDays": 247,
      "recentlyEdited": false,
      "url": "https://en.wikipedia.org/wiki/Entanglement_swapping"
    },
    {
      "title": "Quantum information science",
      "pageId": 659094,
      "snippet": "designing quantum algorithms, constructing quantum hardware, and implementing quantum communication protocols. Quantum teleportation, entanglement and the",
      "wordCount": 1276,
      "length": "short",
      "lastEditDays": 76,
      "recentlyEdited": false,
      "url": "https://en.wikipedia.org/wiki/Quantum_information_science"
    }
  ]
}
Input schema
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Free-text search query."
    },
    "limit": {
      "type": "number",
      "description": "Max results 1-20 (default 8)."
    },
    "project": {
      "type": "string",
      "description": "Wikimedia project host (default 'en.wikipedia')."
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}