Historical Events API
The Historical Events API allows you to search for famous events in history. From ancient antiquity to modern times, events from all parts of human civilization are recorded.
From 10,001 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 341ms | 362ms | 403ms | 731ms | 1067ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/historicalevents GET
https://api.api-ninjas.com/v1/historicalevents
Returns a list of up to 10 events that match the search parameters. Use the offset parameter to paginate through more results.
Parameters
textoptionalQuery text to search events by. Use keywords or short phrases for best match results.
yearoptional4-digit year (e.g.
1776). For BC/BCE years, use a negative integer (e.g.-351for 351 BC).monthoptionalInteger month (e.g.
3for March).dayoptionalCalendar day of the month.
offsetoptional premium onlyNumber of results to offset pagination.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
Returns an array of historical event objects, each containing:
yearThe year of the event. For BC/BCE years, this is a negative integer (e.g.,
"-45"for 45 BC).monthThe month of the event as a 2-digit string (e.g.,
"01"for January).dayThe day of the month as a 2-digit string.
eventDescription of the historical event.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/historicalevents?text=roman%20empireHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/historicalevents?month=1&day=1" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.