NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server

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.

(4.3)

From 10,175 users

800+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
283ms326ms360ms494ms978ms

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

  • name  required

    Name of the person to search. Includes partial results (e.g. julius will match Julius Caesar).

  • offset  optional

    Number of results to offset pagination.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.

  • name

    Full name of the historical figure.

  • title

    Title or description of the person's role/occupation.

  • info

    Object containing detailed biographical information about the historical figure.

Sample Request Live Demo!

name
offset

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%20caesar

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
[
    {
      name:"Julius Caesar",
      title:"Roman general and statesman",
      info:{
        born:"12 July 100 BC Rome Italy",
        died:"15 March 44 BC Rome, Italy",
        years:"81-45 BC",
        awards:"Civic Crown",
        office:[
          "Consul (59, 48, 46-45, 44 BC)",
          "Dictator (49-44 BC)"
        ],
        parents:[
          "Gaius Julius Caesar",
          "Aurelia"
        ],
        spouses:"Cossutia (disputed) Cornelia (m. 84 BC; d. 69 BC) Pompeia (m. 67 BC; div. 61 BC) Calpurnia (m. 59 BC)",
        children:[
          "Julia",
          "Caesarion (unacknowledged)",
          "Augustus (adoptive)"
        ],
        partners:"Cleopatra",
        conflicts:[
          "War against Mytilene Siege of Mytilene",
          "Siege of Mytilene",
          "Third Mithridatic War",
          "Gallic Wars Battle of the Arar Battle of Bibracte Battle of Vosges Battle of the Axona Battle of the Sabis Siege of the Atuatuci Crossing of the Rhine Invasions of Britain Siege of Avaricum Siege of Gergovia Battle of Alesia Siege of Uxellodunum",
          "Battle of the Arar",
          "Battle of Bibracte",
          "Battle of Vosges",
          "Battle of the Axona",
          "Battle of the Sabis",
          "Siege of the Atuatuci",
          "Crossing of the Rhine",
          "Invasions of Britain",
          "Siege of Avaricum",
          "Siege of Gergovia",
          "Battle of Alesia",
          "Siege of Uxellodunum",
          "Caesar's Civil War Siege of Corfinium Siege of Brundisium Siege of Massilia Battle of Ilerda Siege of Oricum Siege of Dyrrhachium Siege of Gomphi Battle of Pharsalus Siege of Alexandria Battle of the Nile Battle of Zela Battle of Ruspina Battle of Thapsus Battle of Munda Siege of Corduba",
          "Siege of Corfinium",
          "Siege of Brundisium",
          "Siege of Massilia",
          "Battle of Ilerda",
          "Siege of Oricum",
          "Siege of Dyrrhachium",
          "Siege of Gomphi",
          "Battle of Pharsalus",
          "Siege of Alexandria",
          "Battle of the Nile",
          "Battle of Zela",
          "Battle of Ruspina",
          "Battle of Thapsus",
          "Battle of Munda",
          "Siege of Corduba"
        ],
        occupation:[
          "Politician",
          "soldier"
        ],
        notable_work:[
          "Bellum Gallicum",
          "Bellum Civile"
        ],
        resting_place:"Temple of Caesar Rome 41deg53'31''N 12deg29'10''E / 41.891943degN 12.486246degE / 41.891943; 12.486246",
        cause_of_death:"Assassination ( stab wounds )"
      }
    }
]

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

  • 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.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • 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.
  • 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.
  • Send a GET request to the /v1/historicalfigures endpoint with the required name parameter, which supports partial matches (for example, julius matches Julius Caesar). The endpoint returns up to 10 matching people per call, and you can use the optional offset parameter to paginate through additional results.
  • Each result is a JSON object with the figure's name, a title describing their role or occupation, and an info object 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.
  • 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.
  • 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's title and biographical info. You can pair it with the Quotes API for famous sayings or browse all offerings on the APIs page.