Day in History API

Historical Births by Date

API endpoint to list births for a specific date.

GET
/v1/births/{month}/{day}

Authorization

Authorization

AuthorizationBearer <token>

API key for premium users. Use format: Bearer dih_yourkey

In: header

Path Parameters

dayinteger
monthstring

Response Body

TypeScript Definitions

Use the response body type in TypeScript.

curl -X GET "https://api.dayinhistory.dev/v1/births/string/0/"
fetch("https://api.dayinhistory.dev/v1/births/string/0/")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.dayinhistory.dev/v1/births/string/0/"

  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/births/string/0/"

response = requests.request("GET", url)

print(response.text)
[
  {
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "type": "birth",
    "name": "string",
    "description": "string",
    "bio": "string",
    "birth_year": "string",
    "death_year": "string"
  }
]