Wikitoday is scrapper for scrapping On-This-Day from wikipedia, made with NodeJs. This also supports three categories, and also customizable dates. You will get avarage 100 events per category usually!
This returns all the events including birtsh, deaths, and other events if event
parameter is not specified. You can also customize the date here with month
and day
. You can just leave it blank to get Todays history!
Endpoint: /{event}/{month}/{day} |
---|
Parameter | Description | Optional |
---|---|---|
event | You can choose what type of event (event | births | death ) |
Yes |
month | The month in which you want the history | Yes |
day | The day of the month in which you want the history | Yes |
http://localhost:8000/1/10
{ "categories": [
"events",
"births",
"deaths"
],
"date": "January 10",
"results": {
"events": [
{
"year": "49 BC",
"snippet": "Julius Caesar crosses the Rubicon, signalling the start of civil war."
},
{
"year": "9",
"snippet": "The Western Han dynasty ends when Wang Mang claims that the divine Mandate of Heaven called for the end of the dynasty and the beginning of his own, the Xin dynasty."
},
{
"year": "69",
"snippet": "Lucius Calpurnius Piso Licinianus is appointed by Galba as deputy Roman Emperor."
}
//...
],
"births": [
{
"year": "626",
"snippet": "Husayn ibn Ali the third Shia Imam"
},
{
"year": "1480",
"snippet": "Margaret of Austria, Duchess of Savoy"
},
{
"year": "1538",
"snippet": "Louis of Nassau"
}
// ...
],
"deaths": [
{
"year": "259",
"snippet": "Polyeuctus, Roman saint"
},
{
"year": "314",
"snippet": "Miltiades, pope of the Catholic Church"
},
{
"year": "681",
"snippet": "Agatho, pope of the Catholic Church"
}
// ...
]
}
}
http://localhost:8000/births/1/10
{
"results": {
"births": [
{
"year": "626",
"snippet": "Husayn ibn Ali the third Shia Imam"
},
{
"year": "1480",
"snippet": "Margaret of Austria, Duchess of Savoy"
},
{
"year": "1538",
"snippet": "Louis of Nassau"
}
//...
]
},
"categories": [
"births"
],
"date": "January 10"
}
You can deploy this to Heroku or Vercel or, Clone this project and deploy somewhere else!
If you want to support me, You can buy me some coffee and ⭐ This Repo!