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

Baby Names API

The Baby Names API provides tens of thousands of unique and popular baby names for boys, girls, and gender-neutral names.

Online
(4.8)

From 8,625 users

200+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
259ms270ms356ms746ms969ms

Didn't find what you were looking for? Suggest an improvement

https://api.api-ninjas.com/v1/babynames

Returns 10 baby name results.

Parameters

  • gender  optional

    Baby name gender. Must be one of the following: boy, girl, neutral

  • popular_only  optional

    Whether to only return popular (top 10%) of names. Must be either true or false. If unset, default is true.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

The /v1/babynames endpoint returns a JSON array of strings, or an error if the request is unsuccessful.

Live Demo

Live demo · no API key required
Query parameters
gender

Get a free API key to get started — no credit card required.

Headers
X-Api-KeyLog in or sign up to get your API key
GET
https://api.api-ninjas.com/v1/babynames?gender=neutral
Sample response
[
"Quinn",
"Mackenzie",
"Cody",
"Kelly",
"Duncan",
"Shelby",
"Shane",
"Zane",
"Jordan",
"Lake"
]

Code Examples

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

  • 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.
  • 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.
  • The optional gender parameter accepts boy, girl, or neutral, 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.
  • Set the popular_only parameter to true to return only the top 10% most popular names, or false to include rarer, more unique names; if unset it defaults to true. Check your usage tier on the pricing page.
  • Each request to /v1/babynames returns a JSON array of 10 name strings, or an error if the request is unsuccessful.
  • 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.