Wikipedia

Wikipedia provides article content for research workflows. Search for a topic, retrieve a summary or full page, or request a random article. Use the returned article links when citing the retrieved material.

Usage Instructions

Integrate Wikipedia into the workflow. Can get page summary, search pages, get page content, and get random page.

Actions

Wikipedia Page Summary

Get a summary and metadata for a specific Wikipedia page.

Input

ParameterTypeRequiredDescription
pageTitlestringYesTitle of the Wikipedia page to get summary for

Output

ParameterTypeDescription
summaryobjectWikipedia page summary and metadata
typestringPage type (standard, disambiguation, etc.)
titlestringPage title
displaytitlestringDisplay title with formatting
descriptionstringShort page description
extractstringPage extract/summary text
extract_htmlstringExtract in HTML format
thumbnailobjectThumbnail image data
sourcestringThumbnail image URL
widthnumberThumbnail width in pixels
heightnumberThumbnail height in pixels
originalimageobjectOriginal image data
sourcestringThumbnail image URL
widthnumberThumbnail width in pixels
heightnumberThumbnail height in pixels
content_urlsobjectURLs to access the page
desktopobjectDesktop URLs
pagestringPage URL
revisionsstringRevisions URL
editstringEdit URL
talkstringTalk page URL
mobileobjectMobile URLs
pagestringPage URL
revisionsstringRevisions URL
editstringEdit URL
talkstringTalk page URL
langstringPage language code
dirstringText direction (ltr or rtl)
timestampstringLast modification timestamp
pageidnumberWikipedia page ID
wikibase_itemstringWikidata item ID
coordinatesobjectGeographic coordinates
latnumberLatitude
lonnumberLongitude

Search for Wikipedia pages by title or content.

Input

ParameterTypeRequiredDescription
querystringYesSearch query to find Wikipedia pages
searchLimitnumberNoMaximum number of results to return (default: 10, max: 50)

Output

ParameterTypeDescription
searchResultsarrayArray of matching Wikipedia pages
idnumberResult index
keystringURL-friendly page key
titlestringPage title
excerptstringSearch result excerpt
matched_titlestringMatched title variant
descriptionstringPage description
thumbnailobjectThumbnail data
mimetypestringImage MIME type
sizenumberFile size in bytes
widthnumberWidth in pixels
heightnumberHeight in pixels
durationnumberDuration for video
urlstringThumbnail URL
urlstringPage URL
totalHitsnumberTotal number of search results found
querystringThe search query that was executed

Wikipedia Page Content

Get the full HTML content of a Wikipedia page.

Input

ParameterTypeRequiredDescription
pageTitlestringYesTitle of the Wikipedia page to get content for

Output

ParameterTypeDescription
contentobjectFull HTML content and metadata of the Wikipedia page
titlestringPage title
pageidnumberWikipedia page ID
htmlstringFull HTML content of the page
revisionnumberPage revision number
tidstringTransaction ID (ETag)
timestampstringLast modified timestamp
content_modelstringContent model (wikitext)
content_formatstringContent format (text/html)

Wikipedia Random Page

Get a random Wikipedia page.

Input

ParameterTypeRequiredDescription

Output

ParameterTypeDescription
randomPageobjectRandom Wikipedia page data
typestringPage type
titlestringPage title
displaytitlestringDisplay title
descriptionstringPage description
extractstringPage extract/summary
thumbnailobjectThumbnail image data
sourcestringThumbnail image URL
widthnumberThumbnail width in pixels
heightnumberThumbnail height in pixels
content_urlsobjectURLs to access the page
desktopobjectDesktop URL
pagestringPage URL
mobileobjectMobile URL
pagestringPage URL
langstringLanguage code
timestampstringTimestamp
pageidnumberPage ID