# 2s.io Wikipedia Summary

> 2s.io Wikipedia Summary is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Fetch a Wikipedia article summary in any of 30 supported languages, returning title, extract, lead image, metadata, and attribution.

## Facts

- Endpoint: GET https://2s.io/api/wikipedia/summary
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-82777bf9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qGr1w6UCXDihDx1SNvGTD

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 2s-io-82777bf9
```

Example prompt: Can you grab me the Wikipedia summary for 'Marie Curie' in English — I need the plain text extract, the lead image, and the last-modified date?

## When to prefer this

Use this endpoint when you need a quick, structured Wikipedia summary with rich metadata (word count, license, attribution, lead image) for any of 30 languages, especially when you need attribution-ready content under CC BY-SA 4.0. Prefer it over raw Wikipedia scraping or the full Wikipedia API when you want a clean, normalized response with a consistent schema.

## Known failure modes

- Article not found for the given title — Wikipedia returns 404 and the endpoint likely surfaces a not-found error
- Ambiguous or redirected title — may return a different article than intended if disambiguation is needed
- Unsupported language code — request fails if lang value is not in the 30-item enum
- Title too long (>300 chars) or empty — schema validation error
- Wikipedia upstream rate-limiting or downtime — upstream 5xx propagated

## How this service works

Fetch a Wikipedia article summary in any of 30 supported languages. Returns title, displayTitle, lang, pageId, description, extract (plain text), extractHtml, lead image, canonical URLs, last-modified timestamp, word count, license, and an attribution string. Backed by https://<lang>.wikipedia.org/api/rest_v1/page/summary. Content is CC BY-SA 4.0 with attribution provided.

## Output

A JSON object containing the article title, displayTitle, language, pageId, short description, plain-text extract, HTML extract, lead image URL, canonical Wikipedia URL, last-modified timestamp, word count, CC BY-SA 4.0 license info, and a ready-to-use attribution string.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "lang": "en",
   "title": "Artificial Intelligence"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "title"
     ],
     "properties": {
      "lang": {
       "enum": [
        "en",
        "es",
        "fr",
        "de",
        "it",
        "pt",
        "ru",
        "ja",
        "zh",
        "ko",
        "ar",
        "nl",
        "pl",
        "tr",
        "sv",
        "cs",
        "fi",
        "da",
        "no",
        "el",
        "he",
        "hi",
        "th",
        "vi",
        "uk",
        "id",
        "ms",
        "ro",
        "hu",
        "simple"
       ],
       "type": "string",
       "default": "en"
      },
      "title": {
       "type": "string",
       "maxLength": 300,
       "minLength": 1
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-82777bf9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
