Today's Historical Events
Get historical events for today's date.
Authorization
AuthorizationBearer <token>
API key for premium users. Use format: Bearer dih_yourkey
In: header
Response Body
TypeScript Definitions
Use the response body type in TypeScript.
monthstring
Length
length <= 20
dayinteger
events?string
biographies?string
curl -X GET "https://api.dayinhistory.dev/v1/today/"
fetch("https://api.dayinhistory.dev/v1/today/")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.dayinhistory.dev/v1/today/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://api.dayinhistory.dev/v1/today/"
response = requests.request("GET", url)
print(response.text)
{
"month": "string",
"day": 0,
"events": "string",
"biographies": "string"
}