Today's Events
List all historical events for today's date (paginated).
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
curl -X GET "https://api.dayinhistory.dev/v1/today/events/?page=0"fetch("https://api.dayinhistory.dev/v1/today/events/?page=0")package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.dayinhistory.dev/v1/today/events/?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/events/?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",
"year": "string",
"title": "string",
"description": "string"
}
]
}