Celebrity API
The Celebrity API provides the most popular information, such as net worth, profession, and birthday, on famous individuals all around the world. Our comprehensive database contains actors/actresses, athletes, politicians, business leaders, and much more.
From 4,930 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 288ms | 303ms | 337ms | 649ms | 957ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/celebrity GET
https://api.api-ninjas.com/v1/celebrity
Returns a list of up to 30 celebrities that match the search parameters. To get more than 30 results, use the offset parameter.
Parameters
nameoptionalName of the celebrity you wish to search. This field is case-insensitive.
min_net_worthoptionalMinimum net worth of celebrities.
max_net_worthoptionalMaximum net worth of celebrities.
nationalityoptionalNationality of celebrities. Must be an ISO 3166 Alpha-2 country code (e.g.
US).min_heightoptionalMinimum height of celebrities in meters (e.g.
1.65).max_heightoptionalMaximum height of celebrities in meters (e.g.
1.80).offsetpremium optionalNumber of results to offset for 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 celebrity.
net_worthNet worth in US dollars.
genderGender of the celebrity. Possible values:
male,female.nationality2-letter ISO 3166 Alpha-2 country code.
occupationArray of occupations.
heightHeight in meters.
birthdayBirthday in YYYY-MM-DD format.
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/celebrity?name=Michael JordanHeaders
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/celebrity?name=Michael%20Jordan" \
-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 Celebrity API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Celebrity 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 Celebrity 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 Celebrity 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 filter celebrities by wealth, height, or nationality instead of searching by name?
The/v1/celebrityendpoint accepts several optional filter parameters, includingmin_net_worthandmax_net_worth(in US dollars),min_heightandmax_height(in meters, e.g.1.65), andnationalityas an ISO 3166 Alpha-2 country code such asUS. You can combine these without anamevalue to discover celebrities matching a profile; see the full parameter list in the API catalog.How many results does a single Celebrity API request return, and how do I get more?
Each request returns a JSON array of up to 30 celebrities matching your search parameters. To page beyond the first 30 results, use theoffsetparameter, which is a premium feature available on paid plans.What fields are included in a celebrity record?
Each object includes the celebrity'sname,net_worth(in US dollars),gender(maleorfemale),nationality(a 2-letter country code), anoccupationarray,heightin meters, andbirthdayin YYYY-MM-DD format. If a request fails you will instead receive an error response, documented on the error codes page.Does this API cover historical or deceased figures, or just famous contemporary people?
The Celebrity API focuses on famous living and contemporary individuals such as actors, athletes, politicians, and business leaders. For notable people from history, use the dedicated Historical Figures API instead.