Day in History API

Today's Deaths

List deaths for today's date (paginated).

GET
/v1/today/deaths

Authorization

Authorization

AuthorizationBearer <token>

API key for premium users. Use format: Bearer dih_yourkey

In: header

Query Parameters

page?integer

A page number within the paginated result set.

Response Body

TypeScript Definitions

Use the response body type in TypeScript.

countinteger
next?string | null
Format"uri"
previous?string | null
Format"uri"
resultsarray<object>

@minItems 0

@minItems 0

curl -X GET "https://api.dayinhistory.dev/v1/today/deaths/?page=0"
fetch("https://api.dayinhistory.dev/v1/today/deaths/?page=0")
package main

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

func main() {
  url := "https://api.dayinhistory.dev/v1/today/deaths/?page=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/today/deaths/?page=0"

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

print(response.text)
{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2",
  "results": [
    {
      "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"
    }
  ]
}