# Wikipedia Lookup

> Wikipedia Lookup is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-02).

Fetches structured Wikipedia article data — summary, sections, metadata, and optionally the full article text — for any search query or page title.

## Facts

- Endpoint: POST https://x402.agentutility.ai/wikipedia-lookup?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wikipedia-lookup-eb29c34a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MD1pbuNgnXA-I4_DSnaxa

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability wikipedia-lookup-eb29c34a -d '<json body>'
```

Example prompt: Can you look up the Wikipedia article on 'mitochondria' in English and give me the summary plus the section headings?

## When to prefer this

Use this endpoint when you need structured, reliable encyclopedic information about a named entity, concept, place, or person — especially when you need metadata like Wikidata IDs, section structure, or images alongside the text. Prefer it over general web search when you specifically want Wikipedia-sourced content in a machine-readable format, or when enriching entity records with canonical descriptions and identifiers. The multilingual support makes it ideal when non-English content is required.

## Known failure modes

- No matching article found for the query — returns an error or empty result
- Ambiguous search term resolves to wrong article — caller should refine the query
- Language code not supported — defaults or errors depending on MediaWiki availability
- Full text requested for a very short stub article — returns minimal content
- Rate limit or upstream Wikipedia API unavailability — transient 5xx error

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a structured JSON object containing the article title, page ID, language, short description, summary paragraph, list of sections with headings and anchors, main image URL, thumbnail URL, canonical Wikipedia URL, Wikidata item ID, coordinates (if applicable), and optionally the full plain-text article body (truncated to ~25k characters with a truncation flag).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "Search term or page title (e.g. 'Albert Einstein', 'mitochondria'). Resolved via MediaWiki search to the best-matching article."
      },
      "language": {
       "type": "string",
       "description": "Wiki language code (e.g. 'en', 'de', 'ja', 'es'). Default 'en'. Routes to <lang>.wikipedia.org."
      },
      "full_text": {
       "type": "boolean",
       "description": "If true, include a plain-text extract of the full article body (truncated to ~25k chars). Default false (summary only)."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "type": {
       "type": "string"
      },
      "title": {
       "type": "string"
      },
      "page_id": {
       "type": "string"
      },
      "summary": {
       "type": "string"
      },
      "language": {
       "type": "string"
      },
      "sections": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "level": {
          "type": "integer"
         },
         "title": {
          "type": "string"
         },
         "anchor": {
          "type": "string"
         }
        }
       }
      },
      "full_text": {
       "type": "null"
      },
      "image_url": {
       "type": "string"
      },
      "coordinates": {
       "type": "null"
      },
      "description": {
       "type": "string"
      },
      "canonical_url": {
       "type": "string"
      },
      "thumbnail_url": {
       "type": "string"
      },
      "wikidata_item": {
       "type": "string"
      },
      "full_text_truncated": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "standard",
  "title": "Albert_Einstein",
  "page_id": "736",
  "summary": "Albert Einstein was a German-born theoretical physicist best known for developing the theory of relativity...",
  "language": "en",
  "sections": [
   {
    "level": 1,
    "title": "Life",
    "anchor": "Life"
   }
  ],
  "full_text": null,
  "image_url": "https://upload.wikimedia.org/.../Einstein_1921_full.jpg",
  "coordinates": null,
  "description": "German-born physicist (1879-1955)",
  "canonical_url": "https://en.wikipedia.org/wiki/Albert_Einstein",
  "thumbnail_url": "https://upload.wikimedia.org/.../Einstein_1921.jpg",
  "wikidata_item": "Q937",
  "full_text_truncated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wikipedia-lookup-eb29c34a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
