Skip to content

Wiki-Today is a Wikipedia Api to get the Today-In-History from wikipedia with multiple categories and custom dates!

Notifications You must be signed in to change notification settings

Wikifox/wikitoday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WikiToday

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!

Made With

Quick jump

Usage

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

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

Examples

Example 1

  http://localhost:8000/1/10
Response
{    "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"
            }
            // ...
        ]
    }
}

Example 2

  http://localhost:8000/births/1/10
Response
{
    "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"
}

Deploy

You can deploy this to Heroku or Vercel or, Clone this project and deploy somewhere else!

Deploy to Heroku Deploy with Vercel

Support

If you want to support me, You can buy me some coffee and ⭐ This Repo!

Buy Me A Coffee

About

Wiki-Today is a Wikipedia Api to get the Today-In-History from wikipedia with multiple categories and custom dates!

Topics

Resources

Stars

Watchers

Forks

Languages