# payload402 Wikipedia Search

> payload402 Wikipedia Search is a paid API for AI agents from payload402.edgebytenet.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Returns ranked English Wikipedia search results (titles, URLs, and snippets) using MediaWiki's search engine, formatted like a standard SERP JSON response.

## Facts

- Endpoint: GET https://payload402.edgebytenet.workers.dev/search?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payload402-wikipedia-search-cb3fe4f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zNHw3M7R0ILkJNjmCwPmg

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 payload402-wikipedia-search-cb3fe4f0
```

Example prompt: Search Wikipedia for 'quantum entanglement' and give me the top 5 results — titles, URLs, and snippets — so I can pick the most relevant article.

## When to prefer this

Choose this endpoint when you need a ranked list of Wikipedia articles matching a query — especially when you want SERP-style output (multiple titles, URLs, snippets) rather than a single article's content. Prefer this over /wiki/lookup when you don't know the exact article title and need to discover relevant articles first. It is Wikipedia-only (not the open web), so prefer a general web search API if you need broader coverage.

## Known failure modes

- Missing required 'q' parameter returns an error
- Query exceeding 400 characters may be rejected or truncated
- Count parameter outside 1–10 range is invalid
- No results found for highly obscure or misspelled queries
- MediaWiki search downtime causes upstream failures
- Payment of 0.005 USDC not completed results in 402 response

## How this service works

npm package license triage for coding agents: call before npm install or adding a dependency mid-task. Returns declared license, SPDX normalization, and permissive-default compatible yes/no/unknown from the public npm registry. Triage only — not compliance-grade SBOM or legal advice. Workflow: call GET /license/check (or MCP check_npm_license) before npm install; if compatible=no, pick another package or escalate to human; if unknown, treat as risk. Example: left-pad@1.0.0 before install. Also: Convert amounts between ISO 4217 currencies using ECB daily reference rates (Frankfurter). Use for invoices, travel budgets, expense reports, and shopping comparisons when you need a verifiable rate instead of LLM arithmetic. Not live tradable FX — rates follow ECB business-day publication. Also: Resolve a place name or lat/lon to IANA timezone and coordinates (Open-Meteo). Use for agent scheduling, travel logistics, and local-time questions without LLM guessing. Not IP geolocation. Also: Translate short text between languages (Azure Translator). Use when an agent needs a verifiable string in another language for UI copy, messages, or research snippets — not legal, medical, or certified translation. Also: English Wikipedia fact lookup: search by query or exact title, returns intro extract as plain text. For agents that need a grounded summary before deeper web search. Not a substitute for primary sources. Also: Ranked search results (English Wikipedia): titles, article URLs, and snippets from MediaWiki search. Same SERP-shaped JSON as web search APIs; index is Wikipedia only — not the open web. Pair with GET /wiki/lookup for intro text.

## Output

A JSON object containing the search query, result count, source identifier ('wikipedia-search-en'), and an array of ranked results — each with a Wikipedia article title, full article URL (en.wikipedia.org), and a short text snippet. Also includes a note reminding the caller to use /wiki/lookup for full intro extracts.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search query (max 400 chars)"
      },
      "count": {
       "type": "integer",
       "maximum": 10,
       "minimum": 1,
       "description": "Results 1–10 (default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Ranked English Wikipedia titles/snippets only (MediaWiki search) — not global web SERP; use GET /wiki/lookup for intro extract",
  "count": 2,
  "query": "x402 agents",
  "source": "wikipedia-search-en",
  "results": [
   {
    "url": "https://en.wikipedia.org/wiki/Cloudflare",
    "title": "Cloudflare",
    "snippet": "American technology company…"
   },
   {
    "url": "https://en.wikipedia.org/wiki/Payment_system",
    "title": "Payment system",
    "snippet": "Mechanism for transferring money…"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payload402-wikipedia-search-cb3fe4f0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payload402.edgebytenet.workers.dev](https://www.zero.xyz/host/payload402.edgebytenet.workers.dev/llms.txt)
