Wikipedia

App · Misc References · 4 actions

Search Wikipedia, read article summaries and full page content, and pull a random article.

Actions

ActionWhat it does
Get page contentGet the full plain-text content of a Wikipedia article by its title.
Get random pageGet the summary of a random Wikipedia article, useful for discovery, prompts, or daily-fact style workflows.
Get summaryGet the short summary (lead extract) of a Wikipedia article by its title, along with its description, thumbnail, and link.
SearchSearch Wikipedia for articles matching a query and return the matching titles with short snippets and links.

Get page content

Get the full plain-text content of a Wikipedia article by its title. Optionally return only the lead section.

Inputs

Article titletitletextRequired
The title of the Wikipedia article to read. Redirects are followed automatically.
Intro onlyintro_onlytrue/false
Return only the article's lead section instead of the full text. Defaults to false.Default: false.
Languagelanguagetext
Wikipedia language edition to read, as a language code, for example 'en' (English), 'es' (Spanish), 'de' (German), or 'simple' (Simple English). Defaults to English.Default: en.

Outputs

contenttext
Plain-text content of the article.
languagetext
pageidnumber
titletext
urltext
Example output
{
  "content": "Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.\n\nPython is dynamically type-checked and garbage-collected.",
  "language": "en",
  "pageid": 23862,
  "title": "Python (programming language)",
  "url": "https://en.wikipedia.org/wiki/Python_(programming_language)"
}

Get random page

Get the summary of a random Wikipedia article, useful for discovery, prompts, or daily-fact style workflows.

Inputs

Languagelanguagetext
Wikipedia language edition to read, as a language code, for example 'en' (English), 'es' (Spanish), 'de' (German), or 'simple' (Simple English). Defaults to English.Default: en.

Outputs

descriptiontext
extracttext
languagetext
pageidnumber
thumbnailtext
titletext
urltext
Example output
{
  "description": "Scenic road in Virginia and North Carolina, United States",
  "extract": "The Blue Ridge Parkway is a National Parkway and All-American Road in the United States, noted for its scenic beauty. The parkway runs for 469 miles through 29 Virginia and North Carolina counties.",
  "language": "en",
  "pageid": 320321,
  "thumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Blue_Ridge_Parkway.jpg/320px-Blue_Ridge_Parkway.jpg",
  "title": "Blue Ridge Parkway",
  "url": "https://en.wikipedia.org/wiki/Blue_Ridge_Parkway"
}

Get summary

Get the short summary (lead extract) of a Wikipedia article by its title, along with its description, thumbnail, and link.

Inputs

Article titletitletextRequired
The exact title of the Wikipedia article, for example 'Python (programming language)'.
Languagelanguagetext
Wikipedia language edition to read, as a language code, for example 'en' (English), 'es' (Spanish), 'de' (German), or 'simple' (Simple English). Defaults to English.Default: en.

Outputs

descriptiontext
extracttext
Plain-text lead summary of the article.
languagetext
pageidnumber
thumbnailtext
URL of the article's thumbnail image, if any.
titletext
urltext
Canonical URL of the article.
Example output
{
  "description": "General-purpose programming language",
  "extract": "Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.",
  "language": "en",
  "pageid": 23862,
  "thumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Python-logo-notext.svg/320px-Python-logo-notext.svg.png",
  "title": "Python (programming language)",
  "url": "https://en.wikipedia.org/wiki/Python_(programming_language)"
}

Search Wikipedia for articles matching a query and return the matching titles with short snippets and links.

Inputs

Search queryquerytextRequired
What to search Wikipedia for, for example 'quantum computing'.
Result limitlimitnumber
Maximum number of results to return (1–50). Defaults to 10.From 1 to 50. Default: 10.
Languagelanguagetext
Wikipedia language edition to read, as a language code, for example 'en' (English), 'es' (Spanish), 'de' (German), or 'simple' (Simple English). Defaults to English.Default: en.

Outputs

countnumber
Number of results returned.
languagetext
querytext
resultslist
total_hitsnumber
Total number of matching articles on Wikipedia.
Example output
{
  "count": 2,
  "language": "en",
  "query": "python programming",
  "results": [
    {
      "pageid": 23862,
      "size": 178234,
      "snippet": "Python is a high-level, general-purpose programming language.",
      "timestamp": "2024-01-15T09:12:00Z",
      "title": "Python (programming language)",
      "url": "https://en.wikipedia.org/wiki/Python_(programming_language)",
      "wordcount": 12043
    },
    {
      "pageid": 21356332,
      "size": 41234,
      "snippet": "The programming language Python was conceived in the late 1980s.",
      "timestamp": "2024-01-10T14:00:00Z",
      "title": "History of Python",
      "url": "https://en.wikipedia.org/wiki/History_of_Python",
      "wordcount": 3120
    }
  ],
  "total_hits": 4213
}

On this page