Baby Names API
The Baby Names API provides tens of thousands of unique and popular baby names for boys, girls, and gender-neutral names.
From 8,625 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 259ms | 270ms | 356ms | 746ms | 969ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/babynames GET
https://api.api-ninjas.com/v1/babynames
Returns 10 baby name results.
Parameters
genderoptionalBaby name gender. Must be one of the following:
boy,girl,neutralpopular_onlyoptionalWhether to only return popular (top 10%) of names. Must be either
trueorfalse. If unset, default istrue.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of strings, or an error if the request is unsuccessful.
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/babynames?gender=neutralHeaders
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/babynames?gender=boy" \
-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 Baby Names API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Baby Names 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 Baby Names 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 Baby Names 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.What gender options does the Baby Names API support?
The optionalgenderparameter acceptsboy,girl, orneutral, letting you generate names for boys, girls, or gender-neutral names from a pool of tens of thousands of names. See the full API list for related generators.How do I get only popular baby names versus more unique ones?
Set thepopular_onlyparameter totrueto return only the top 10% most popular names, orfalseto include rarer, more unique names; if unset it defaults totrue. Check your usage tier on the pricing page.What does the Baby Names API response include?
Each request to/v1/babynamesreturns a JSON array of 10 name strings, or an error if the request is unsuccessful.What are some use cases for the Baby Names API?
It is great for parenting tools, baby name suggestion widgets, and randomized character or username generators for apps and games; for related randomized data you can pair it with the Random Word API or the Random User API.