# Wikipedia API

> 6 public methods for Wikipedia (wikipedia.org), each 1 credit per completed run.

Unofficial. Not affiliated with or endorsed by Wikipedia.

- Page: https://fous.com/methods/wikipedia.org

## Methods

### [Get article summary](https://fous.com/methods/wikipedia.org/get-article-summary.md)

`wikipedia.org/get_article_summary`, read. Returns the opening summary, short description, main image, article link and last edit time for a Wikipedia topic in the chosen language. For ambiguous names it uses the top matching article and lists up to five alternatives.

Returns: article title, short description, summary, main image link, article link, last edit time, other possible articles

### [Get page views](https://fous.com/methods/wikipedia.org/get-page-views.md)

`wikipedia.org/get_page_views`, read. Returns human-reader view counts for a Wikipedia article by day or month, with totals, daily averages and the peak period.

Returns: article title and link, date range, total views, average views per day, peak day or month, chronological views

### [Search articles](https://fous.com/methods/wikipedia.org/search-articles.md)

`wikipedia.org/search_articles`, read. Searches a Wikipedia language edition by keywords and returns matching articles in relevance order, with descriptions, snippets, word counts, last edit dates and links.

Returns: title, description, snippet, word count, last edited date, link, page id, total hits

### [Get Wikipedia On this day](https://fous.com/methods/wikipedia.org/get-on-this-day.md)

`wikipedia.org/get_on_this_day`, read. Returns Wikipedia's On this day events, births, deaths and holidays for a month and day, in a chosen Wikipedia language; events, births and deaths come newest year first.

Returns: day, events, births, deaths, holidays (year, description, article title and link)

### [Get full article](https://fous.com/methods/wikipedia.org/get-full-article.md)

`wikipedia.org/get_full_article`, read. Returns the full text of a Wikipedia article in ordered sections, with its last edit time, reference count and visible categories, in any language edition. Footnotes, tables and navigation material are excluded; a topic that is not an exact title uses the best search match.

Returns: title, link, last edited, sections (heading, level, text), reference count, categories

### [Get key facts from an article](https://fous.com/methods/wikipedia.org/get-key-facts.md)

`wikipedia.org/get_key_facts`, read. Returns the labeled facts, in order, from the information box of a Wikipedia article in any language edition. Articles without an information box have no facts.

Returns: article title, article link, labeled facts
