{"uid":"cap_qGr1w6UCXDihDx1SNvGTD","slug":"2s-io-82777bf9","name":"2s.io Wikipedia Summary","description":"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.","url":"https://2s.io/api/wikipedia/summary","method":"GET","headers":{},"bodySchema":{"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}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"lang":"en","title":"Artificial Intelligence"}}},"response":{"data":{"url":"https://en.wikipedia.org/wiki/Artificial_intelligence","lang":"en","type":"standard","title":"Artificial intelligence","pageId":1164,"extract":"Artificial intelligence (AI) is the capability of computational systems to perform tasks typically associated with human intelligence, such as learning, reasoning, problem-solving, perception, and decision-making. It is a field of research in engineering, mathematics and computer science that develops and studies methods and software that enable machines to perceive their environment and use learning and intelligence to take actions that maximize their chances of achieving defined goals.","license":{"url":"https://creativecommons.org/licenses/by-sa/4.0/","name":"CC BY-SA 4.0"},"leadImage":null,"mobileUrl":"https://en.wikipedia.org/wiki/Artificial_intelligence","wordCount":67,"attribution":"Source: Wikipedia (https://en.wikipedia.org/wiki/Artificial_intelligence), CC BY-SA 4.0","description":"Intelligence of machines","extractHtml":"<p><b>Artificial intelligence</b> (<b>AI</b>) is the capability of computational systems to perform tasks typically associated with human intelligence, such as learning, reasoning, problem-solving, perception, and decision-making. It is a field of research in engineering, mathematics and computer science that develops and studies methods and software that enable machines to perceive their environment and use learning and intelligence to take actions that maximize their chances of achieving defined goals.</p>","displayTitle":"Artificial intelligence","lastModified":"2026-05-26T01:41:32Z"},"meta":{"cost":{"usd":0.001,"tier":0},"caller":"x402","version":null,"endpoint":"wikipedia.summary","settlement":{"txHash":"0xa94ef9cb229a5b5b7852ae79aafdf8df5c9a6a194e7cf316102afecd3f9a966e","network":"eip155:8453","success":true}}}},"exampleRequest":{"lang":"en","title":"Artificial Intelligence"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cud5FbEQ1Y5HyNZG4V9iz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetch a Wikipedia article summary in any of 30 supported languages, returning title, extract, lead image, metadata, and attribution.","exampleAgentPrompt":"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?","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:55:25.267Z","isFirstParty":false}