GET /feed/v1/wikipedia/{language}/onthisday/{type}/{MM}/{DD}

Returns events that occurred on a given date in history, including notable historical events, international holidays, and births and deaths of notable people.

Examples

curl

# Get information about this day in history from English Wikipedia
https://api.wikimedia.org/feed/v1/wikipedia/en/onthisday/all/12/30

Python

# Python 3
# Get information about this day in history from English Wikipedia

import datetime
import requests

today = datetime.datetime.now()
date = today.strftime('%m/%d')

url = 'https://api.wikimedia.org/feed/v1/wikipedia/en/onthisday/all/' + date

headers = {
  'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
  'User-Agent': 'YOUR_APP_NAME (YOUR_EMAIL_OR_CONTACT_PAGE)'
}

response = requests.get(url, headers=headers)
data = response.json()
print(data)

PHP

<?php
// Get information about this day in history from English Wikipedia

$url = 'https://api.wikimedia.org/feed/v1/wikipedia/en/onthisday/all/' . date( 'm/d' );

$token = 'YOUR_ACCESS_TOKEN';
$authorization = 'Authorization: Bearer ' . $token;

$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( $authorization ));
curl_setopt( $ch, CURLOPT_USERAGENT, 'YOUR_APP_NAME (YOUR_EMAIL_OR_CONTACT_PAGE)' );
$output = curl_exec( $ch );
curl_close( $ch );

echo( $output );
?>

JavaScript

// Get information about this day in history from English Wikipedia

let today = new Date();
let month = String(today.getMonth() + 1).padStart(2,'0');
let day = String(today.getDate()).padStart(2,'0');
let url = `https://api.wikimedia.org/feed/v1/wikipedia/en/onthisday/all/${month}/${day}`;

let response = await fetch( url,
    {
        headers: {
            'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
            'Api-User-Agent': 'YOUR_APP_NAME (YOUR_EMAIL_OR_CONTACT_PAGE)'
        }
    }
);
response.json()
    .then(console.log).catch(console.error);

Parameters

language

required path

Language code. For example: ar (Arabic), en (English), es (Spanish). List supported languages.
type

required path

Type of event:
  • all: Returns all types
  • selected: Curated set of events that occurred on the given date
  • births: Notable people born on the given date
  • deaths: Notable people who died on the given date
  • holidays: Fixed holidays celebrated on the given date
  • events: Events that occurred on the given date that are not included in another type
MM

required path

Zero-padded month, 01 through 12
DD

required path

Zero-padded day of the month, 01 through 31

Responses

200 Success
Example
{
  "selected": [
    {
      "text": "Evo Morales (pictured) was inaugurated as President of Bolivia, becoming the country's first democratically elected indigenous leader.",
      "pages": [
        {
          "type": "standard",
          "title": "Evo_Morales",
          "displaytitle": "Evo Morales",
          "namespace": {
            "id": 0,
            "text": ""
          },
          "wikibase_item": "Q42410",
          "titles": {
            "canonical": "Evo_Morales",
            "normalized": "Evo Morales",
            "display": "Evo Morales"
          },
          "pageid": 284163,
          "thumbnail": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Evo_Morales_Ayma_%28cropped_2%29.jpg/254px-Evo_Morales_Ayma_%28cropped_2%29.jpg",
            "width": 254,
            "height": 320
          },
          "originalimage": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/a/a5/Evo_Morales_Ayma_%28cropped_2%29.jpg",
            "width": 1831,
            "height": 2304
          },
          "lang": "en",
          "dir": "ltr",
          "revision": "987990861",
          "tid": "78b43050-2351-11eb-a76e-2fe5f0ccb7f5",
          "timestamp": "2020-11-10T12:37:04Z",
          "description": "Former Bolivian President and politician",
          "description_source": "local",
          "content_urls": {
            "desktop": {
              "page": "https://en.wikipedia.org/wiki/Evo_Morales",
              "revisions": "https://en.wikipedia.org/wiki/Evo_Morales?action=history",
              "edit": "https://en.wikipedia.org/wiki/Evo_Morales?action=edit",
              "talk": "https://en.wikipedia.org/wiki/Talk:Evo_Morales"
            },
            "mobile": {
              "page": "https://en.m.wikipedia.org/wiki/Evo_Morales",
              "revisions": "https://en.m.wikipedia.org/wiki/Special:History/Evo_Morales",
              "edit": "https://en.m.wikipedia.org/wiki/Evo_Morales?action=edit",
              "talk": "https://en.m.wikipedia.org/wiki/Talk:Evo_Morales"
            }
          },
          "extract": "Juan Evo Morales Ayma is a Bolivian politician and former cocalero activist who served as the President of Bolivia from 2006 to 2019. Widely regarded as the country's first president to come from its indigenous population, his administration focused on the implementation of leftist policies, social programs, and combating the influence of the United States and multinational corporations. Ideologically a socialist, he is the head of the Movement for Socialism (MAS) party.",
          "extract_html": "<p><b>Juan Evo Morales Ayma</b> is a Bolivian politician and former cocalero activist who served as the President of Bolivia from 2006 to 2019. Widely regarded as the country's first president to come from its indigenous population, his administration focused on the implementation of leftist policies, social programs, and combating the influence of the United States and multinational corporations. Ideologically a socialist, he is the head of the Movement for Socialism (MAS) party.</p>",
          "normalizedtitle": "Evo Morales"
        },
        {
          "type": "standard",
          "title": "President_of_Bolivia",
          "displaytitle": "President of Bolivia",
          "namespace": {
            "id": 0,
            "text": ""
          },
          "wikibase_item": "Q373548",
          "titles": {
            "canonical": "President_of_Bolivia",
            "normalized": "President of Bolivia",
            "display": "President of Bolivia"
          },
          "pageid": 188806,
          "thumbnail": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/06/Coat_of_arms_of_Bolivia.svg/320px-Coat_of_arms_of_Bolivia.svg.png",
            "width": 320,
            "height": 289
          },
          "originalimage": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/06/Coat_of_arms_of_Bolivia.svg/1907px-Coat_of_arms_of_Bolivia.svg.png",
            "width": 1907,
            "height": 1723
          },
          "lang": "en",
          "dir": "ltr",
          "revision": "988022036",
          "tid": "29d9fa80-2371-11eb-900a-47f5e7f60369",
          "timestamp": "2020-11-10T16:24:04Z",
          "content_urls": {
            "desktop": {
              "page": "https://en.wikipedia.org/wiki/President_of_Bolivia",
              "revisions": "https://en.wikipedia.org/wiki/President_of_Bolivia?action=history",
              "edit": "https://en.wikipedia.org/wiki/President_of_Bolivia?action=edit",
              "talk": "https://en.wikipedia.org/wiki/Talk:President_of_Bolivia"
            },
            "mobile": {
              "page": "https://en.m.wikipedia.org/wiki/President_of_Bolivia",
              "revisions": "https://en.m.wikipedia.org/wiki/Special:History/President_of_Bolivia",
              "edit": "https://en.m.wikipedia.org/wiki/President_of_Bolivia?action=edit",
              "talk": "https://en.m.wikipedia.org/wiki/Talk:President_of_Bolivia"
            }
          },
          "extract": "The President of Bolivia, officially known as the President of the Plurinational State of Bolivia, is head of state and head of government of Bolivia. According to the Bolivian Constitution, the president is elected by popular vote to a five-year term with a two-term limit. If no candidate wins a majority, the top two candidates advance to a runoff election.",
          "extract_html": "<p>The <b>President of Bolivia</b>, officially known as the <b>President of the Plurinational State of Bolivia</b>, is head of state and head of government of Bolivia. According to the Bolivian Constitution, the president is elected by popular vote to a five-year term with a two-term limit. If no candidate wins a majority, the top two candidates advance to a runoff election.</p>",
          "normalizedtitle": "President of Bolivia"
        },
        {
          "type": "standard",
          "title": "Indigenous_peoples_of_the_Americas",
          "displaytitle": "Indigenous peoples of the Americas",
          "namespace": {
            "id": 0,
            "text": ""
          },
          "wikibase_item": "Q36747",
          "titles": {
            "canonical": "Indigenous_peoples_of_the_Americas",
            "normalized": "Indigenous peoples of the Americas",
            "display": "Indigenous peoples of the Americas"
          },
          "pageid": 2402376,
          "thumbnail": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/thumb/2/28/Indigenous_peoples_americas_1535.png/231px-Indigenous_peoples_americas_1535.png",
            "width": 231,
            "height": 320
          },
          "originalimage": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/2/28/Indigenous_peoples_americas_1535.png",
            "width": 849,
            "height": 1176
          },
          "lang": "en",
          "dir": "ltr",
          "revision": "987234446",
          "tid": "6910b840-21b6-11eb-80d2-0fe08405a1bf",
          "timestamp": "2020-11-05T19:28:44Z",
          "description": "Pre-Columbian inhabitants of the Americas and their descendants",
          "description_source": "local",
          "content_urls": {
            "desktop": {
              "page": "https://en.wikipedia.org/wiki/Indigenous_peoples_of_the_Americas",
              "revisions": "https://en.wikipedia.org/wiki/Indigenous_peoples_of_the_Americas?action=history",
              "edit": "https://en.wikipedia.org/wiki/Indigenous_peoples_of_the_Americas?action=edit",
              "talk": "https://en.wikipedia.org/wiki/Talk:Indigenous_peoples_of_the_Americas"
            },
            "mobile": {
              "page": "https://en.m.wikipedia.org/wiki/Indigenous_peoples_of_the_Americas",
              "revisions": "https://en.m.wikipedia.org/wiki/Special:History/Indigenous_peoples_of_the_Americas",
              "edit": "https://en.m.wikipedia.org/wiki/Indigenous_peoples_of_the_Americas?action=edit",
              "talk": "https://en.m.wikipedia.org/wiki/Talk:Indigenous_peoples_of_the_Americas"
            }
          },
          "extract": "The indigenous peoples of the Americas are the pre-Columbian peoples of North, Central and South America and their descendants.",
          "extract_html": "<p>The <b>indigenous peoples of the Americas</b> are the pre-Columbian peoples of North, Central and South America and their descendants.</p>",
          "normalizedtitle": "Indigenous peoples of the Americas"
        }
      ],
      "year": 2006
    }
  ],
  "births": [
    {
      "text": "Silento, American rapper, singer and songwriter",
      "pages": [
        {
          "type": "standard",
          "title": "Silentó",
          "displaytitle": "Silentó",
          "namespace": {
            "id": 0,
            "text": ""
          },
          "wikibase_item": "Q20354248",
          "titles": {
            "canonical": "Silentó",
            "normalized": "Silentó",
            "display": "Silentó"
          },
          "pageid": 47849978,
          "lang": "en",
          "dir": "ltr",
          "revision": "985587583",
          "tid": "ceb76550-2183-11eb-9cba-a592a35487b8",
          "timestamp": "2020-10-26T19:50:16Z",
          "content_urls": {
            "desktop": {
              "page": "https://en.wikipedia.org/wiki/Silent%C3%B3",
              "revisions": "https://en.wikipedia.org/wiki/Silent%C3%B3?action=history",
              "edit": "https://en.wikipedia.org/wiki/Silent%C3%B3?action=edit",
              "talk": "https://en.wikipedia.org/wiki/Talk:Silent%C3%B3"
            },
            "mobile": {
              "page": "https://en.m.wikipedia.org/wiki/Silent%C3%B3",
              "revisions": "https://en.m.wikipedia.org/wiki/Special:History/Silent%C3%B3",
              "edit": "https://en.m.wikipedia.org/wiki/Silent%C3%B3?action=edit",
              "talk": "https://en.m.wikipedia.org/wiki/Talk:Silent%C3%B3"
            }
          },
          "extract": "Richard Lamar \"Ricky\" Hawk, better known as Silentó or Prince Silentó, is an American rapper and singer. He is best known for his debut single \"Watch Me \", which charted at number three on the US Billboard Hot 100. He later released a project titled Fresh Outta High School in August 2018 after some delay. He is a native of Stone Mountain, Georgia.",
          "extract_html": "<p><b>Richard Lamar \"Ricky\" Hawk</b>, better known as <b>Silentó</b> or<b> Prince Silentó</b>, is an American rapper and singer. He is best known for his debut single \"Watch Me \", which charted at number three on the US <span><i>Billboard</i> Hot 100</span>. He later released a project titled <i>Fresh Outta High School</i> in August 2018 after some delay. He is a native of Stone Mountain, Georgia.</p>",
          "normalizedtitle": "Silentó"
        },
        {
          "type": "standard",
          "title": "January_22",
          "displaytitle": "January 22",
          "namespace": {
            "id": 0,
            "text": ""
          },
          "wikibase_item": "Q2275",
          "titles": {
            "canonical": "January_22",
            "normalized": "January 22",
            "display": "January 22"
          },
          "pageid": 15940,
          "lang": "en",
          "dir": "ltr",
          "revision": "987893224",
          "tid": "8d497450-22d2-11eb-b447-e5b00b0a9c1a",
          "timestamp": "2020-11-09T21:28:39Z",
          "description": "Date",
          "description_source": "local",
          "content_urls": {
            "desktop": {
              "page": "https://en.wikipedia.org/wiki/January_22",
              "revisions": "https://en.wikipedia.org/wiki/January_22?action=history",
              "edit": "https://en.wikipedia.org/wiki/January_22?action=edit",
              "talk": "https://en.wikipedia.org/wiki/Talk:January_22"
            },
            "mobile": {
              "page": "https://en.m.wikipedia.org/wiki/January_22",
              "revisions": "https://en.m.wikipedia.org/wiki/Special:History/January_22",
              "edit": "https://en.m.wikipedia.org/wiki/January_22?action=edit",
              "talk": "https://en.m.wikipedia.org/wiki/Talk:January_22"
            }
          },
          "extract": "January 22 is the 22nd day of the year in the Gregorian calendar. 343 days remain until the end of the year.",
          "extract_html": "<p><b>January 22</b> is the 22nd day of the year in the Gregorian calendar. 343 days remain until the end of the year.</p>",
          "normalizedtitle": "January 22"
        }
      ],
      "year": 1998
    }
  ],
  "deaths": [
    {
      "text": "Ursula K. Le Guin, American sci-fi and fantasy novelist (b. 1929)",
      "pages": [
        {
          "type": "standard",
          "title": "Ursula_K._Le_Guin",
          "displaytitle": "Ursula K. Le Guin",
          "namespace": {
            "id": 0,
            "text": ""
          },
          "wikibase_item": "Q181659",
          "titles": {
            "canonical": "Ursula_K._Le_Guin",
            "normalized": "Ursula K. Le Guin",
            "display": "Ursula K. Le Guin"
          },
          "pageid": 32037,
          "thumbnail": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/thumb/2/25/Ursula_Le_Guin_%283551195631%29_%28cropped%29.jpg/269px-Ursula_Le_Guin_%283551195631%29_%28cropped%29.jpg",
            "width": 269,
            "height": 320
          },
          "originalimage": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/2/25/Ursula_Le_Guin_%283551195631%29_%28cropped%29.jpg",
            "width": 3185,
            "height": 3791
          },
          "lang": "en",
          "dir": "ltr",
          "revision": "987944939",
          "tid": "7ce35680-230e-11eb-94a4-3bf52e3c9cc9",
          "timestamp": "2020-11-10T04:27:14Z",
          "description": "American fantasy and science fiction author (1929-2018)",
          "description_source": "local",
          "content_urls": {
            "desktop": {
              "page": "https://en.wikipedia.org/wiki/Ursula_K._Le_Guin",
              "revisions": "https://en.wikipedia.org/wiki/Ursula_K._Le_Guin?action=history",
              "edit": "https://en.wikipedia.org/wiki/Ursula_K._Le_Guin?action=edit",
              "talk": "https://en.wikipedia.org/wiki/Talk:Ursula_K._Le_Guin"
            },
            "mobile": {
              "page": "https://en.m.wikipedia.org/wiki/Ursula_K._Le_Guin",
              "revisions": "https://en.m.wikipedia.org/wiki/Special:History/Ursula_K._Le_Guin",
              "edit": "https://en.m.wikipedia.org/wiki/Ursula_K._Le_Guin?action=edit",
              "talk": "https://en.m.wikipedia.org/wiki/Talk:Ursula_K._Le_Guin"
            }
          },
          "extract": "Ursula Kroeber Le Guin was an American author best known for her works of speculative fiction, including science fiction works set in her Hainish universe, and the Earthsea fantasy series. She was first published in 1959, and her literary career spanned nearly sixty years, yielding more than twenty novels and over a hundred short stories, in addition to poetry, literary criticism, translations, and children's books. Frequently described as an author of science fiction, Le Guin has also been called a \"major voice in American Letters.\" Le Guin herself said she would prefer to be known as an \"American novelist\".",
          "extract_html": "<p><b>Ursula Kroeber Le Guin</b> was an American author best known for her works of speculative fiction, including science fiction works set in her Hainish universe, and the <i>Earthsea</i> fantasy series. She was first published in 1959, and her literary career spanned nearly sixty years, yielding more than twenty novels and over a hundred short stories, in addition to poetry, literary criticism, translations, and children's books. Frequently described as an author of science fiction, Le Guin has also been called a \"major voice in American Letters.\" Le Guin herself said she would prefer to be known as an \"American novelist\".</p>",
          "normalizedtitle": "Ursula K. Le Guin"
        },
        {
          "type": "standard",
          "title": "January_22",
          "displaytitle": "January 22",
          "namespace": {
            "id": 0,
            "text": ""
          },
          "wikibase_item": "Q2275",
          "titles": {
            "canonical": "January_22",
            "normalized": "January 22",
            "display": "January 22"
          },
          "pageid": 15940,
          "lang": "en",
          "dir": "ltr",
          "revision": "987893224",
          "tid": "8d497450-22d2-11eb-b447-e5b00b0a9c1a",
          "timestamp": "2020-11-09T21:28:39Z",
          "description": "Date",
          "description_source": "local",
          "content_urls": {
            "desktop": {
              "page": "https://en.wikipedia.org/wiki/January_22",
              "revisions": "https://en.wikipedia.org/wiki/January_22?action=history",
              "edit": "https://en.wikipedia.org/wiki/January_22?action=edit",
              "talk": "https://en.wikipedia.org/wiki/Talk:January_22"
            },
            "mobile": {
              "page": "https://en.m.wikipedia.org/wiki/January_22",
              "revisions": "https://en.m.wikipedia.org/wiki/Special:History/January_22",
              "edit": "https://en.m.wikipedia.org/wiki/January_22?action=edit",
              "talk": "https://en.m.wikipedia.org/wiki/Talk:January_22"
            }
          },
          "extract": "January 22 is the 22nd day of the year in the Gregorian calendar. 343 days remain until the end of the year.",
          "extract_html": "<p><b>January 22</b> is the 22nd day of the year in the Gregorian calendar. 343 days remain until the end of the year.</p>",
          "normalizedtitle": "January 22"
        }
      ],
      "year": 2018
    }
  ],
  "events": [
    {
      "text": "An explosion near a civilian trolley-bus in Donetsk kills at least thirteen people.",
      "pages": [
        {
          "type": "standard",
          "title": "Donetsk",
          "displaytitle": "Donetsk",
          "namespace": {
            "id": 0,
            "text": ""
          },
          "wikibase_item": "Q43070",
          "titles": {
            "canonical": "Donetsk",
            "normalized": "Donetsk",
            "display": "Donetsk"
          },
          "pageid": 562951,
          "thumbnail": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/thumb/1/1c/%D0%A1%D0%B0%D0%BC%D1%8B%D0%B9_%D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%BE%D0%B9_%D1%85%D1%80%D0%B0%D0%BC_%D0%94%D0%BE%D0%BD%D0%B5%D1%86%D0%BA%D0%B0._-_panoramio.jpg/320px-%D0%A1%D0%B0%D0%BC%D1%8B%D0%B9_%D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%BE%D0%B9_%D1%85%D1%80%D0%B0%D0%BC_%D0%94%D0%BE%D0%BD%D0%B5%D1%86%D0%BA%D0%B0._-_panoramio.jpg",
            "width": 320,
            "height": 248
          },
          "originalimage": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/1/1c/%D0%A1%D0%B0%D0%BC%D1%8B%D0%B9_%D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%BE%D0%B9_%D1%85%D1%80%D0%B0%D0%BC_%D0%94%D0%BE%D0%BD%D0%B5%D1%86%D0%BA%D0%B0._-_panoramio.jpg",
            "width": 1300,
            "height": 1008
          },
          "lang": "en",
          "dir": "ltr",
          "revision": "986824575",
          "tid": "400d07a0-2300-11eb-81c1-59d3b9ea4aed",
          "timestamp": "2020-11-03T06:30:39Z",
          "description": "City of regional significance in Donetsk People's Republic, Ukraine",
          "description_source": "local",
          "coordinates": {
            "lat": 48.00277778,
            "lon": 37.80527778
          },
          "content_urls": {
            "desktop": {
              "page": "https://en.wikipedia.org/wiki/Donetsk",
              "revisions": "https://en.wikipedia.org/wiki/Donetsk?action=history",
              "edit": "https://en.wikipedia.org/wiki/Donetsk?action=edit",
              "talk": "https://en.wikipedia.org/wiki/Talk:Donetsk"
            },
            "mobile": {
              "page": "https://en.m.wikipedia.org/wiki/Donetsk",
              "revisions": "https://en.m.wikipedia.org/wiki/Special:History/Donetsk",
              "edit": "https://en.m.wikipedia.org/wiki/Donetsk?action=edit",
              "talk": "https://en.m.wikipedia.org/wiki/Talk:Donetsk"
            }
          },
          "extract": "Donetsk, formerly known as Aleksandrovka, Hughesovka, Yuzovka, Stalin and Stalino, is an industrial city in eastern Ukraine located on the Kalmius River in the disputed Donetsk region. While internationally recognized as in Ukraine, the city is under the de facto administration of the unrecognized Donetsk People's Republic, which claims it as its capital city. The population was estimated at 929,063 (2016 est.)\n in the city core, with over 2,000,000 in the metropolitan area (2011). According to the 2001 Ukrainian Census, Donetsk was the fifth-largest city in Ukraine.",
          "extract_html": "<p><b>Donetsk</b>, formerly known as <b>Aleksandrovka</b>, <b>Hughesovka</b>, <b>Yuzovka</b>, <b>Stalin</b> and <b>Stalino</b>, is an industrial city in eastern Ukraine located on the Kalmius River in the disputed Donetsk region. While internationally recognized as in Ukraine, the city is under the de facto administration of the unrecognized Donetsk People's Republic, which claims it as its capital city. The population was estimated at <span class=\"nowrap\">929,063 (2016 est.)</span>\n in the city core, with over 2,000,000 in the metropolitan area (2011). According to the 2001 Ukrainian Census, Donetsk was the fifth-largest city in Ukraine.</p>",
          "normalizedtitle": "Donetsk"
        }
      ],
      "year": 2015
    }
  ],
  "holidays": [
    {
      "text": "Christian feast day:\nAnastasius of Persia",
      "pages": [
        {
          "type": "standard",
          "title": "Anastasius_of_Persia",
          "displaytitle": "Anastasius of Persia",
          "namespace": {
            "id": 0,
            "text": ""
          },
          "wikibase_item": "Q254896",
          "titles": {
            "canonical": "Anastasius_of_Persia",
            "normalized": "Anastasius of Persia",
            "display": "Anastasius of Persia"
          },
          "pageid": 8199021,
          "thumbnail": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/87/Anastasius_of_Persia_%28Menologion_of_Basil_II%29.jpg/320px-Anastasius_of_Persia_%28Menologion_of_Basil_II%29.jpg",
            "width": 320,
            "height": 196
          },
          "originalimage": {
            "source": "https://upload.wikimedia.org/wikipedia/commons/8/87/Anastasius_of_Persia_%28Menologion_of_Basil_II%29.jpg",
            "width": 1751,
            "height": 1071
          },
          "lang": "en",
          "dir": "ltr",
          "revision": "985613742",
          "tid": "3207df00-17dd-11eb-8e5a-5f4f300231db",
          "timestamp": "2020-10-26T22:47:09Z",
          "content_urls": {
            "desktop": {
              "page": "https://en.wikipedia.org/wiki/Anastasius_of_Persia",
              "revisions": "https://en.wikipedia.org/wiki/Anastasius_of_Persia?action=history",
              "edit": "https://en.wikipedia.org/wiki/Anastasius_of_Persia?action=edit",
              "talk": "https://en.wikipedia.org/wiki/Talk:Anastasius_of_Persia"
            },
            "mobile": {
              "page": "https://en.m.wikipedia.org/wiki/Anastasius_of_Persia",
              "revisions": "https://en.m.wikipedia.org/wiki/Special:History/Anastasius_of_Persia",
              "edit": "https://en.m.wikipedia.org/wiki/Anastasius_of_Persia?action=edit",
              "talk": "https://en.m.wikipedia.org/wiki/Talk:Anastasius_of_Persia"
            }
          },
          "extract": "Saint Anastasius of Persia, was originally a Zoroastrian soldier in the Sasanian army. He later became a convert to Christianity and was martyred in 628.",
          "extract_html": "<p><b>Saint Anastasius of Persia</b>, was originally a Zoroastrian soldier in the Sasanian army. He later became a convert to Christianity and was martyred in 628.</p>",
          "normalizedtitle": "Anastasius of Persia"
        }
      ]
    }
  ]
}
400 Error: Invalid parameter
Example
{
  "type": "https://mediawiki.org/wiki/HyperSwitch/errors/bad_request",
  "title": "Invalid parameters",
  "method": "get",
  "detail": "data.params.type should be equal to one of the allowed values: [all, selected, births, deaths, events, holidays]",
  "uri": "{request URL}"
}
404 Error: No data found for the requested date
Example
{
  "type": "server_error#empty_response",
  "title": "HyperSwitch error: No content returned by backend.",
  "method": "get"
}
501 Error: Unsupported language
Example
{
  "type": "https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route",
  "title": "Not found.",
  "method": "get",
  "uri": "{request URL}"
}

Response schema

selected

array

Curated set of events that occurred on the given date
Properties
text

string

Event description
year

integer

Year the event took place
pages

array

Articles related to the event
Properties
type

string

Type of article:
  • standard: Encyclopedia article
  • disambiguation: Page that links to articles covering topics with similar titles
  • no-extract: Article without an extract
  • mainpage: A wiki's homepage
title

deprecated

Deprecated. Use titles.canonical instead.
displaytitle

deprecated

Deprecated. Use titles.display instead.
namespace

object

Article namespace
Properties
id

integer

Namespace identifier
text

string

Localized name of the namespace
wikibase_item

string

Wikidata identifier
titles

object

Article title in multiple formats
Properties
canonical

string

Article title in URL-friendly format
normalized

string

Article title with underscores replaced with spaces
display

string

Article title in reading-friendly format
pageid

integer

Article identifier
thumbnail

object

Reduced-size version of the article's lead image
Properties
source

string

Image URL
width

integer

Image width in pixels
height

integer

Image height in pixels
originalimage

object

Original-size version of the article's lead image
Properties
source

string

Image URL
width

integer

Image width in pixels
height

integer

Image height in pixels
lang

string

Language code for the language of the article
dir

string

Language direction: ltr for left-to-right languages or rtl for right-to-left languages
revision

string

Revision identifier for the latest revision
tid

string

Time-based UUID used for rendering content changes
timestamp

string

Time when the article was last edited in ISO 8601 format
description

string

Short summary of the article
description_source

string

Source of the description: local for descriptions maintained within the page or central for descriptions imported from Wikidata
content_urls

object

Article URLs
Properties
desktop

object

Article URLs for desktop viewing
Properties
page

string

URL for the article
revisions

string

URL for the article's revision history
edit

string

URL to edit the article
talk

string

URL for the article's discussion page
mobile

object

Article URLs for mobile viewing
Properties
page

string

URL for the article
revisions

string

URL for the article's revision history
edit

string

URL to edit the article
talk

string

URL for the article's discussion page
extract

string

First several sentences of the article in plain text
extract_html

string

First several sentences of the article in simplified HTML
normalizedtitle

deprecated

Deprecated. Use titles.normalized instead.
births

array

Notable people born on the given date
Properties
text

string

Description of the person
year

integer

Birth year
pages

array

Articles related to the person
Properties
type

string

Type of article:
  • standard: Encyclopedia article
  • disambiguation: Page that links to articles covering topics with similar titles
  • no-extract: Article without an extract
  • mainpage: A wiki's homepage
title

deprecated

Deprecated. Use titles.canonical instead.
displaytitle

deprecated

Deprecated. Use titles.display instead.
namespace

object

Article namespace
Properties
id

integer

Namespace identifier
text

string

Localized name of the namespace
wikibase_item

string

Wikidata identifier
titles

object

Article title in multiple formats
Properties
canonical

string

Article title in URL-friendly format
normalized

string

Article title with underscores replaced with spaces
display

string

Article title in reading-friendly format
pageid

integer

Article identifier
thumbnail

object

Reduced-size version of the article's lead image
Properties
source

string

Image URL
width

integer

Image width in pixels
height

integer

Image height in pixels
originalimage

object

Original-size version of the article's lead image
Properties
source

string

Image URL
width

integer

Image width in pixels
height

integer

Image height in pixels
lang

string

Language code for the language of the article
dir

string

Language direction: ltr for left-to-right languages or rtl for right-to-left languages
revision

string

Revision identifier for the latest revision
tid

string

Time-based UUID used for rendering content changes
timestamp

string

Time when the article was last edited in ISO 8601 format
description

string

Short summary of the article
description_source

string

Source of the description: local for descriptions maintained within the page or central for descriptions imported from Wikidata
content_urls

object

Article URLs
Properties
desktop

object

Article URLs for desktop viewing
Properties
page

string

URL for the article
revisions

string

URL for the article's revision history
edit

string

URL to edit the article
talk

string

URL for the article's discussion page
mobile

object

Article URLs for mobile viewing
Properties
page

string

URL for the article
revisions

string

URL for the article's revision history
edit

string

URL to edit the article
talk

string

URL for the article's discussion page
extract

string

First several sentences of the article in plain text
extract_html

string

First several sentences of the article in simplified HTML
normalizedtitle

deprecated

Deprecated. Use titles.normalized instead.
deaths

array

Notable people who died on the given date
Properties
text

string

Description of the person
year

integer

Year of death
pages

array

Articles related to the person
Properties
type

string

Type of article:
  • standard: Encyclopedia article
  • disambiguation: Page that links to articles covering topics with similar titles
  • no-extract: Article without an extract
  • mainpage: A wiki's homepage
title

deprecated

Deprecated. Use titles.canonical instead.
displaytitle

deprecated

Deprecated. Use titles.display instead.
namespace

object

Article namespace
Properties
id

integer

Namespace identifier
text

string

Localized name of the namespace
wikibase_item

string

Wikidata identifier
titles

object

Article title in multiple formats
Properties
canonical

string

Article title in URL-friendly format
normalized

string

Article title with underscores replaced with spaces
display

string

Article title in reading-friendly format
pageid

integer

Article identifier
thumbnail

object

Reduced-size version of the article's lead image
Properties
source

string

Image URL
width

integer

Image width in pixels
height

integer

Image height in pixels
originalimage

object

Original-size version of the article's lead image
Properties
source

string

Image URL
width

integer

Image width in pixels
height

integer

Image height in pixels
lang

string

Language code for the language of the article
dir

string

Language direction: ltr for left-to-right languages or rtl for right-to-left languages
revision

string

Revision identifier for the latest revision
tid

string

Time-based UUID used for rendering content changes
timestamp

string

Time when the article was last edited in ISO 8601 format
description

string

Short summary of the article
description_source

string

Source of the description: local for descriptions maintained within the page or central for descriptions imported from Wikidata
content_urls

object

Article URLs
Properties
desktop

object

Article URLs for desktop viewing
Properties
page

string

URL for the article
revisions

string

URL for the article's revision history
edit

string

URL to edit the article
talk

string

URL for the article's discussion page
mobile

object

Article URLs for mobile viewing
Properties
page

string

URL for the article
revisions

string

URL for the article's revision history
edit

string

URL to edit the article
talk

string

URL for the article's discussion page
extract

string

First several sentences of the article in plain text
extract_html

string

First several sentences of the article in simplified HTML
normalizedtitle

deprecated

Deprecated. Use titles.normalized instead.
events

array

Events that occurred on the given date that are not included in another type
Properties
text

string

Event description
year

integer

Year the event took place
pages

array

Articles related to the event
Properties
type

string

Type of article:
  • standard: Encyclopedia article
  • disambiguation: Page that links to articles covering topics with similar titles
  • no-extract: Article without an extract
  • mainpage: A wiki's homepage
title

deprecated

Deprecated. Use titles.canonical instead.
displaytitle

deprecated

Deprecated. Use titles.display instead.
namespace

object

Article namespace
Properties
id

integer

Namespace identifier
text

string

Localized name of the namespace
wikibase_item

string

Wikidata identifier
titles

object

Article title in multiple formats
Properties
canonical

string

Article title in URL-friendly format
normalized

string

Article title with underscores replaced with spaces
display

string

Article title in reading-friendly format
pageid

integer

Article identifier
thumbnail

object

Reduced-size version of the article's lead image
Properties
source

string

Image URL
width

integer

Image width in pixels
height

integer

Image height in pixels
originalimage

object

Original-size version of the article's lead image
Properties
source

string

Image URL
width

integer

Image width in pixels
height

integer

Image height in pixels
lang

string

Language code for the language of the article
dir

string

Language direction: ltr for left-to-right languages or rtl for right-to-left languages
revision

string

Revision identifier for the latest revision
tid

string

Time-based UUID used for rendering content changes
timestamp

string

Time when the article was last edited in ISO 8601 format
description

string

Short summary of the article
description_source

string

Source of the description: local for descriptions maintained within the page or central for descriptions imported from Wikidata
content_urls

object

Article URLs
Properties
desktop

object

Article URLs for desktop viewing
Properties
page

string

URL for the article
revisions

string

URL for the article's revision history
edit

string

URL to edit the article
talk

string

URL for the article's discussion page
mobile

object

Article URLs for mobile viewing
Properties
page

string

URL for the article
revisions

string

URL for the article's revision history
edit

string

URL to edit the article
talk

string

URL for the article's discussion page
extract

string

First several sentences of the article in plain text
extract_html

string

First several sentences of the article in simplified HTML
normalizedtitle

deprecated

Deprecated. Use titles.normalized instead.
holidays

array

Fixed holidays celebrated on the given date
Properties
text

string

Holiday description
pages

array

Articles related to the holiday
Properties
type

string

Type of article:
  • standard: Encyclopedia article
  • disambiguation: Page that links to articles covering topics with similar titles
  • no-extract: Article without an extract
  • mainpage: A wiki's homepage
title

deprecated

Deprecated. Use titles.canonical instead.
displaytitle

deprecated

Deprecated. Use titles.display instead.
namespace

object

Article namespace
Properties
id

integer

Namespace identifier
text

string

Localized name of the namespace
wikibase_item

string

Wikidata identifier
titles

object

Article title in multiple formats
Properties
canonical

string

Article title in URL-friendly format
normalized

string

Article title with underscores replaced with spaces
display

string

Article title in reading-friendly format
pageid

integer

Article identifier
thumbnail

object

Reduced-size version of the article's lead image
Properties
source

string

Image URL
width

integer

Image width in pixels
height

integer

Image height in pixels
originalimage

object

Original-size version of the article's lead image
Properties
source

string

Image URL
width

integer

Image width in pixels
height

integer

Image height in pixels
lang

string

Language code for the language of the article
dir

string

Language direction: ltr for left-to-right languages or rtl for right-to-left languages
revision

string

Revision identifier for the latest revision
tid

string

Time-based UUID used for rendering content changes
timestamp

string

Time when the article was last edited in ISO 8601 format
description

string

Short summary of the article
description_source

string

Source of the description: local for descriptions maintained within the page or central for descriptions imported from Wikidata
content_urls

object

Article URLs
Properties
desktop

object

Article URLs for desktop viewing
Properties
page

string

URL for the article
revisions

string

URL for the article's revision history
edit

string

URL to edit the article
talk

string

URL for the article's discussion page
mobile

object

Article URLs for mobile viewing
Properties
page

string

URL for the article
revisions

string

URL for the article's revision history
edit

string

URL to edit the article
talk

string

URL for the article's discussion page
extract

string

First several sentences of the article in plain text
extract_html

string

First several sentences of the article in simplified HTML
normalizedtitle

deprecated

Deprecated. Use titles.normalized instead.