Skip to content

Wikipedia API

Wikipedia (wikipedia.org) has 6 public methods: get article summary, get page views, search articles, get Wikipedia On this day, get full article and get key facts from an article. Each costs 1 credit per completed run (1¢ with pay as you go); failed runs are free.

Unofficial. Not affiliated with or endorsed by Wikipedia.

Methods

6
  • 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

    Readwikipedia.org/get_article_summary
  • 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

    Readwikipedia.org/get_page_views
  • 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

    Readwikipedia.org/search_articles
  • 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)

    Readwikipedia.org/get_on_this_day
  • 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

    Readwikipedia.org/get_full_article
  • 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

    Readwikipedia.org/get_key_facts