Baby Names API

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

(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
240ms283ms309ms543ms893ms

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

  • 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

A JSON array of strings, or an error if the request is unsuccessful.

Sample Request Live Demo!

gender

Try this API endpoint with all available parameters in our API playground

https://api.api-ninjas.com/v1/babynames?gender=neutral

Headers

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

Sample Response

JSON

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.