Vai al contenuto
GET /v1/events

Notable events on a date

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/onthisday-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/onthisday-api/v1/events" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/onthisday-api/v1/events", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/onthisday-api/v1/events");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/onthisday-api/v1/events",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "date": "07-20",
        "count": 68,
        "items": [
            {
                "url": "https://en.wikipedia.org/wiki/Jeff_Bezos",
                "page": "Jeff Bezos",
                "text": "American businessman Jeff Bezos flies to space aboard New Shepard NS-16 operated by his private spaceflight company Blue Origin.",
                "year": 2021
            },
            {
                "url": "https://en.wikipedia.org/wiki/Soyuz_MS-13",
                "page": "Soyuz MS-13",
                "text": "Soyuz MS-13 is launched to the International Space Station on the 50th anniversary of the Apollo 11 moon landing.",
                "year": 2019
            },
            {
                "url": "https://en.wikipedia.org/wiki/O._J._Simpson",
                "page": "O. J. Simpson",
                "text": "O. J. Simpson is granted parole to be released from prison after serving nine years of a 33-year sentence after being convicted of armed robbery in Las Vegas.",
                "year": 2017
            },
            {
                "url": "https://en.wikipedia.org/wiki/Suru%C3%A7_bombing",
                "page": "Suruç bombing",
                "text": "A huge explosion in the mostly Kurdish border town of Suruç, Turkey, targeting the Socialist Youth Associations Federation, kills at least 31 people and injures over 100.",
                "year": 2015
            },
            {
                "url": "https://en.wikipedia.org/wiki/United_States",
                "page": "United States",
                "text": "The United States and Cuba resume full diplomatic relations after five decades.",
                "year": 2015
            },
            {
                "url": "https://en.wikipedia.org/wiki/2013_Colombian_clashes",
                "page": "2013 Colombian clashes",
                "text": "Seventeen government soldiers are killed in an attack by FARC revolutionaries in the Colombian department of Arauca.",
                "year": 2013
            },
            {
                "url": "https://en.wikipedia.org/wiki/Syrian_civil_war",
                "page": "Syrian civil war",
                "text": "Syrian civil war: The Battle of Ras al-Ayn ends with the expulsion of Islamist forces from the city by the People's Protection Units (YPG).",
                "year": 2013
            },
            {
                "url": "https://en.wikipedia.org/wiki/James_Holmes_(mass_murderer)",
                "page": "James Holmes (mass murderer)",
                "text": "James Holmes opened fire at a movie theater in Aurora, Colorado, killing 12 and injuring 70 others.",
                "year": 2012
            },
            {
                "url": "https://en.wikipedia.org/wiki/Syrian_civil_war",
                "page": "Syrian civil war",
                "text": "Syrian civil war: The People's Protection Units (YPG) capture the cities of Amuda and Efrîn without resistance.",
                "year"
…