Baby Names API
DataMAINTAINED2 tokens / call

Baby Names API

Popularity, gender split and year-by-year trends for every US baby name since 1880

Popularity, gender split, and year-by-year trends for baby names, backed by the full US Social Security Administration dataset (every name × year × gender since 1880). Look up a name, get the top names for any year, chart a name's popularity over time, or pull a random name.

Every call needs an X-Api-Key header. A free key includes 500 tokens a month, no card required. 2 tokens per call, so the free plan covers about 250 calls a month.

No credit card requiredAccess to 125+ APIsCancel anytime
response.json
{
  "name": "Emma",
  "by_gender": {
    "F": {
      "total_count": 1023456,
      "first_year": 1880,
      "last_year": 2023,
      "peak_year": 2003,
      "peak_count": 25562,
      "best_rank": 1,
      "latest": {
        "year": 2023,
        "count": 14376,
        "rank": 2
      }
    }
  }
}
Production Ready
Battle-tested infrastructure with a 99.9% uptime SLA. Rate limits are generous, responses are consistent.
Simple Integration
Standard REST + JSON. Works with any HTTP client. Copy-ready code snippets in 4 languages.
One Key, 125+ APIs
Your DataAndAPIs subscription unlocks every API on the platform — anime, finance, sports, and more.

Use cases for Baby Names API

  • Build a baby-name explorer with rankings, trends and random suggestions.

  • Show how a name's popularity rose and fell across decades on a content site.

  • List the top names of any year for articles, quizzes and nostalgia features.

  • Compare the gender split of a name over time.

Baby Names API endpoints

Every endpoint with its parameters and a real example response.

GETGet Name

https://api-baby-names.dataandapis.com/v1/names/{name}

Path parameters

ParameterExample
nameEmmaRequired

Query parameters

ParameterExample
year1990Optional

Example request

curl "https://api-baby-names.dataandapis.com/v1/names/Emma?year=1990" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "name": "Emma",
  "by_gender": {
    "F": {
      "total_count": 1023456,
      "first_year": 1880,
      "last_year": 2023,
      "peak_year": 2003,
      "peak_count": 25562,
      "best_rank": 1,
      "latest": {
        "year": 2023,
        "count": 14376,
        "rank": 2
      }
    }
  }
}

GETName Trend

https://api-baby-names.dataandapis.com/v1/names/trend/{name}

Path parameters

ParameterExample
nameEmmaRequired

Query parameters

ParameterExample
genderFOptional

Example request

curl "https://api-baby-names.dataandapis.com/v1/names/trend/Emma?gender=F" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "name": "Emma",
  "gender": "F",
  "points": [
    {
      "year": 2000,
      "count": 12305,
      "rank": 17
    },
    {
      "year": 2003,
      "count": 25562,
      "rank": 1
    },
    {
      "year": 2023,
      "count": 14376,
      "rank": 2
    }
  ]
}

GETRandom Name

https://api-baby-names.dataandapis.com/v1/names/random

Query parameters

ParameterExample
genderFOptional
starts_withAOptional

Example request

curl "https://api-baby-names.dataandapis.com/v1/names/random?gender=F&starts_with=A" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "name": "Aaliyah",
  "sex": "F",
  "year": 2023,
  "count": 1234,
  "rank": 58
}

GETTop Names

https://api-baby-names.dataandapis.com/v1/names/top

Query parameters

ParameterExample
genderFRequired
limit100Optional
year1990Required

Example request

curl "https://api-baby-names.dataandapis.com/v1/names/top?gender=F&limit=100&year=1990" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "year": 1990,
  "gender": "F",
  "count": 3,
  "names": [
    {
      "name": "Jessica",
      "count": 46466,
      "rank": 1
    },
    {
      "name": "Ashley",
      "count": 45554,
      "rank": 2
    },
    {
      "name": "Emily",
      "count": 24379,
      "rank": 3
    }
  ]
}

Where the data comes from

Source
US Social Security Administration baby names dataset since 1880 (public domain).
Freshness
Annual reload when the SSA publishes the next year.

One install. Every endpoint.

No proprietary SDKs needed. Any HTTP client works. Pick your language and paste.

3languages
4endpoints
RESTarchitecture
1key for all APIs
  • Fully typed responses — auto-completion in your IDE
  • Tracks the API in lockstep — new endpoints land same day
  • One key works across 125+ APIs on the platform
import axios from 'axios';

const { data } = await axios.get(
  'https://api-baby-names.dataandapis.com/v1/names/{name}',
  { headers: { 'X-Api-Key': process.env.API_KEY } }
);

Baby Names API · X-Api-Key

Explore the endpoints

Browse request parameters and inspect live example responses.

Available Endpoints

Request Parameters

API URL

Headers

X-Api-Key

Query Parameters

year(Optional)

Path Parameters

name
import axios from 'axios';

const url = 'https://api-baby-names.dataandapis.com/v1/names/{name}';
const { data } = await axios.get(url, {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});

One subscription. Every API.

Tokens unlock this API and 125+ others on DataAndAPIs. Switch APIs any time — we promote.

FREE

$0/mo

500 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Community support
Start free
Most Popular

STARTER

$6.99/mo

25,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Email support
Subscribe

PRO

$24.99/mo

100,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority email support
Subscribe

ULTRA

$99.99/mo

1,000,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority support
Subscribe

Need higher volume, dedicated infra, or a custom contract? Talk to sales →

Questions about Baby Names API

Ship Baby Names API this afternoon.

500 free tokens. No card. Plus 125+ other APIs on the same key.