← Back to API Ninjas
GET/v1/babynames

Retrieve baby names

Returns baby names, optionally filtered by `gender` (boy, girl or neutral). By default only popular names, the top 10%, are returned; set popular_only to false for the full pool.

API Ninjas·$0.001 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "api-ninjas", path: "/v1/babynames" }); console.log(output);

Query parameters

gender
string

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

popular_only
boolean

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

    Orthogonal - Giving AI agents the tools they need.