WikipediaSearch[keywords]
returns a list of Wikipedia articles whose titles include the given keywords.
WikipediaSearch["Title"keywords,options]
returns a list of Wikipedia articles whose titles include the given keywords.
WikipediaSearch["Category"keywords,options]
returns a list of Wikipedia categories whose titles include the given keywords.
WikipediaSearch["Content"keywords]
returns a list of Wikipedia articles whose content includes the given keywords.
WikipediaSearch[loc]
returns a list of Wikipedia articles whose associated coordinates are near the given location.
WikipediaSearch
WikipediaSearch[keywords]
returns a list of Wikipedia articles whose titles include the given keywords.
WikipediaSearch["Title"keywords,options]
returns a list of Wikipedia articles whose titles include the given keywords.
WikipediaSearch["Category"keywords,options]
returns a list of Wikipedia categories whose titles include the given keywords.
WikipediaSearch["Content"keywords]
returns a list of Wikipedia articles whose content includes the given keywords.
WikipediaSearch[loc]
returns a list of Wikipedia articles whose associated coordinates are near the given location.
Details and Options
- WikipediaSearch utilizes MediaWiki's API to find article and category pages in the English-language Wikipedia.
- In WikipediaSearch[loc], loc must be a GeoDisk with a radius between 10 and 10000 meters.
- Options supported by WikipediaSearch include:
-
MaxItems 500 number of results to return
Examples
open all close allBasic Examples (3)
WikipediaSearch["Artificial intelligence"]WikipediaSearch["Title" -> "gold", MaxItems -> 10]Search for articles by content:
WikipediaSearch["Content" -> "Richard Feynman", MaxItems -> 10]Find Wikipedia articles with coordinates near a given location:
WikipediaSearch[GeoDisk[Entity["Building", "EiffelTower::5h9w8"], Quantity[500, "Meters"]]]Find Wikipedia articles with coordinates near a given article:
WikipediaSearch[GeoDisk[WikipediaData["Central Park", "GeoPosition"], Quantity[500, "Meters"]]]Scope (1)
WikipediaSearch can be used as a starting point for exploratory analysis of topics:
titles = WikipediaSearch["black cat", MaxItems -> 10];Retrieve summaries for the matching articles and extract the most frequent terms with WikipediaData:
terms = TextCases[WikipediaData[titles, "SummaryPlaintext"], "Noun"];Visualize the most common concepts appearing across the articles:
WordCloud[terms]History
Text
Wolfram Research (2014), WikipediaSearch, Wolfram Language function, https://reference.wolfram.com/language/ref/WikipediaSearch.html.
CMS
Wolfram Language. 2014. "WikipediaSearch." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WikipediaSearch.html.
APA
Wolfram Language. (2014). WikipediaSearch. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WikipediaSearch.html
BibTeX
@misc{reference.wolfram_2026_wikipediasearch, author="Wolfram Research", title="{WikipediaSearch}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/WikipediaSearch.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_wikipediasearch, organization={Wolfram Research}, title={WikipediaSearch}, year={2014}, url={https://reference.wolfram.com/language/ref/WikipediaSearch.html}, note=[Accessed: 13-June-2026]}