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.
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
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.
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
type | text | Type | 3 of 3 |
year | number | Year | 3 of 3 |
years_ago | number | Years ago | 3 of 3 |
text | text | Text | 3 of 3 |
month | number | Month | 3 of 3 |
day | number | Day | 3 of 3 |
related_pages | list | Related pages | 3 of 3 |
related_page_urls | list | Related page links | 3 of 3 |
wikidata_ids | list | Wikidata IDs (hidden) | 3 of 3 |
image | image link | Image | 3 of 3 |
language | text | Language | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Text | Type | Month | Day | Related pages | Related page links | Language | Year | Years ago | Image |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | The International Olympic Committee bans Russia from competing at the 2018 Winter Olympics for doping at the 2014 Winter Olympics. | events | 12 | 5 | International Olympic Committee, Russia, 2018 Winter Olympics, 2014 Winter Olympics | https://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_Olympics | en | 2017 | 9 | thumb.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 |
| 2 | Exploration Flight Test-1, the first flight test of Orion, is launched. | events | 12 | 5 | Exploration Flight Test-1, Orion (spacecraft) | https://en.wikipedia.org/wiki/Exploration_Flight_Test-1, https://en.wikipedia.org/wiki/Orion_(spacecraft) | en | 2014 | 12 | thumb.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 |
| 3 | Militants attack a Defense Ministry compound in Sanaa, Yemen, killing at least 56 people and injuring 200 others. | events | 12 | 5 | 2013 Yemeni Ministry of Defense attack, Sanaa | https://en.wikipedia.org/wiki/2013_Yemeni_Ministry_of_Defense_attack, https://en.wikipedia.org/wiki/Sanaa | en | 2013 | 13 | thumb.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.
- 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.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.