Wikipedia On This Day API

What happened on any day of the year, from Wikipedia's On This Day lists: historical events, notable births and deaths, holidays and the Main Page selection, each with its year, plain text, the linked Wikipedia articles, Wikidata ids and an image.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usEvents, 11 fieldsv1.0

Data from mediawiki.org/wiki/Wikifeeds

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Monthoptional
Month number from 1 to 12. Leave empty for the current month (UTC).
Example: 12
Dayoptional
Day of the month from 1 to 31. Leave empty for today (UTC).
Example: 5
Typeoptional
Which list to read: events, births, deaths, holidays, selected (the Main Page's short list) or all of them. Default events.
Languageoptional
Code of the Wikipedia language edition whose lists to read, such as en (English), de (German) or fr (French). Default en.

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/wikipedia-on-this-day/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/wikipedia-on-this-day/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"month":12},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

monthnumber
Month number from 1 to 12. Leave empty for the current month (UTC).
example: 12
daynumber
Day of the month from 1 to 31. Leave empty for today (UTC).
example: 5
typetext
Which list to read: events, births, deaths, holidays, selected (the Main Page's short list) or all of them. Default events.
default: eventsexample: eventsone of: events, births, deaths, holidays, selected, all
languagetext
Code of the Wikipedia language edition whose lists to read, such as en (English), de (German) or fr (French). Default en.
default: enexample: enone of: en, ar, bs, cs, de, es, fr, it, pt, ru, sv, tr, uk, zh

What's in each record

11 fields: 10 here, 1 technical one under Technical details.

Basics

  • Type

    The list the item comes from: events, births, deaths, holidays or selected.

    Example events

  • Text

    What happened, or who was born or died, in plain text.

    Example The International Olympic Committee bans Russia from competing at the 2018 Winter Olympics for doping at the 2014…

  • Month

    Month of the day asked for, 1 to 12.

    Example 12

  • Day

    Day of the month asked for.

    Example 5

  • Related pages

    Titles of the Wikipedia articles linked from the item.

    Example International Olympic Committee, Russia

  • Related page links

    Links to those Wikipedia articles, in the same order.

    Example https://en.wikipedia.org/wiki/International_Olympic_Committee, https://en.wikipedia.org/wiki/Russia

  • Language

    Code of the language edition, such as en.

    Example en

Dates

  • Year

    Year it happened; negative before the common era; empty for holidays.

    Example 2017

  • Years ago

    How many years ago that was, counted from the current year (UTC).

    Example 9

Pictures and media

  • Image

    Thumbnail image (about 330 pixels wide) of the first linked article that has one.

    Example Open the image

Technical detailsField names and types for developers, and the 1 field hidden above

Hidden by default

This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.

  • Wikidata IDs wikidata_idsWikidata ids of the linked articles, such as Q40970.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
typetextType3 of 3
yearnumberYear3 of 3
years_agonumberYears ago3 of 3
texttextText3 of 3
monthnumberMonth3 of 3
daynumberDay3 of 3
related_pageslistRelated pages3 of 3
related_page_urlslistRelated page links3 of 3
wikidata_idslistWikidata IDs (hidden)3 of 3
imageimage linkImage3 of 3
languagetextLanguage3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordTextTypeMonthDayRelated pagesRelated page linksLanguageYearYears agoImage
1The International Olympic Committee bans Russia from competing at the 2018 Winter Olympics for doping at the 2014 Winter Olympics.events125International Olympic Committee, Russia, 2018 Winter Olympics, 2014 Winter Olympicshttps://en.wikipedia.org/wiki/International_Olympic_Committee, https://en.wikipedia.org/wiki/Russia, https://en.wikipedia.org/wiki/2018_Winter_Olympics, https://en.wikipedia.org/wiki/2014_Winter_Olympicsen20179thumb.wikimedia.org/wikipedia/commons/thumb/c/c1/Si%C3%A8ge_CIO_2020_%281%29.jpg/330px-Si%C3%A8ge_CIO_2020_%281%29.jpg?utm_source=en.wikipedia.org&utm_campaign=api&utm_content=thumbnail
2Exploration Flight Test-1, the first flight test of Orion, is launched.events125Exploration Flight Test-1, Orion (spacecraft)https://en.wikipedia.org/wiki/Exploration_Flight_Test-1, https://en.wikipedia.org/wiki/Orion_(spacecraft)en201412thumb.wikimedia.org/wikipedia/commons/thumb/1/16/EFT-1_launch_-_view_from_pad.jpg/330px-EFT-1_launch_-_view_from_pad.jpg?utm_source=en.wikipedia.org&utm_campaign=api&utm_content=thumbnail
3Militants attack a Defense Ministry compound in Sanaa, Yemen, killing at least 56 people and injuring 200 others.events1252013 Yemeni Ministry of Defense attack, Sanaahttps://en.wikipedia.org/wiki/2013_Yemeni_Ministry_of_Defense_attack, https://en.wikipedia.org/wiki/Sanaaen201313thumb.wikimedia.org/wikipedia/en/thumb/e/e5/Yemeni_Ministry_of_Defense_complex_on_fire%2C_Sana%27a%2C_December_2013.jpg/330px-Yemeni_Ministry_of_Defense_complex_on_fire%2C_Sana%27a%2C_December_2013.jpg?utm_source=en.wikipedia.org&utm_campaign=api&utm_content=thumbnail

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • One calendar day per run. Leave month and day empty for today's date in UTC, which suits a daily schedule.
  • Available for 14 Wikipedia language editions: en, ar, bs, cs, de, es, fr, it, pt, ru, sv, tr, uk and zh. Italian has no births or deaths lists, and smaller editions list fewer items.
  • The lists are written by Wikipedia's editors and change as articles are edited. selected is the short list featured on Wikipedia's Main Page for that day.
  • Holidays and observances have no year. Years before the common era are negative numbers, such as -63 for 63 BC.
  • Text comes from Wikipedia under the CC BY-SA 4.0 license: credit Wikipedia when you publish it.

Version history

A run uses the live version unless the request names another one with version.