Skip to main content

Get summary of wikipedia articles

Get the summary of a wikipedia article.
Specifically, it is the part of the article that is listed at the top of the article.

URL

https://api.excelapi.org/wikipedia/summary2

Configuration

ConfigurationRequiredDescription
wordSpecify the word that corresponds to the title part of wikipedia. URL encoding is required for Japanese and other languages.
langSpecify the language code. If not specified, the default is JP (Japan).
modeSpecifies the formatting method of the article. If not specified, the default is simple.
full: Outputs all of the summary.
simple: Remove parentheses and output only the first sentence.

Example

サンプル

=WEBSERVICE("https://api.excelapi.org/wikipedia/summary2?word="&ENCODEURL(A2))

Example (Compare mode)

サンプル

C2:simple (デフォルト)

=WEBSERVICE("https://api.excelapi.org/wikipedia/summary2?word="&ENCODEURL(A2)&"&mode=simple")

C3:full

=WEBSERVICE("https://api.excelapi.org/wikipedia/summary2?word="&ENCODEURL(A2)&"&mode=full")

Example (Compare lang)

サンプル

C2:

=WEBSERVICE("https://api.excelapi.org/wikipedia/summary2?word="&ENCODEURL(A2)&"&lang="&B2)
info

If there are multiple articles for the term you are searching, an ambiguous page may be returned.