Historical Figures API
The Historical Figures API allows you to search for famous (or infamous) people in history. From ancient civilizations to the current decade, our database contains a wide range of notable individuals from all walks of life.
From 10,175 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 283ms | 326ms | 360ms | 494ms | 978ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/historicalfigures GET
https://api.api-ninjas.com/v1/historicalfigures
Returns a list of up to 10 people that match the search parameters.
Parameters
namerequiredName of the person to search. Includes partial results (e.g.
juliuswill match Julius Caesar).offsetoptionalNumber of results to offset pagination.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.
nameFull name of the historical figure.
titleTitle or description of the person's role/occupation.
infoObject containing detailed biographical information about the historical figure.
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/historicalfigures?name=julius%20caesarHeaders
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/historicalfigures?name=julius%20caesar" \
-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.
Frequently Asked Questions
Can I use the Historical Figures API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Historical Figures API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the Historical Figures API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the Historical Figures API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.How do I search for a specific historical figure?
Send a GET request to the/v1/historicalfiguresendpoint with the requirednameparameter, which supports partial matches (for example,juliusmatches Julius Caesar). The endpoint returns up to 10 matching people per call, and you can use the optionaloffsetparameter to paginate through additional results.What does the Historical Figures API response include?
Each result is a JSON object with the figure'sname, atitledescribing their role or occupation, and aninfoobject holding detailed biographical fields such as born, died, occupation, notable_work, awards, and cause_of_death. If a request is unsuccessful you receive an error instead.What coverage does the Historical Figures API provide?
The database spans notable individuals from ancient civilizations to the current decade, covering tens of thousands of famous and infamous people across all walks of life. For related historical data you may also find the Historical Events API and the Day in History API useful.What are some use cases for the Historical Figures API?
It is well suited for building educational tools, trivia and quiz apps, biography lookups, and content that enriches articles with vital details like a figure'stitleand biographicalinfo. You can pair it with the Quotes API for famous sayings or browse all offerings on the APIs page.