# Social Security Administration API: List top baby names

> Lists the ranked top baby names and birth counts for a U.S. birth year, nationwide or for one state.

Unofficial. Not affiliated with or endorsed by Social Security Administration.

- Page: https://fous.com/methods/ssa.gov/list-top-baby-names
- Method: `ssa.gov/list_top_baby_names`, version 1
- Website: ssa.gov
- Returns: rank, boy and girl names with birth counts, area, year, SSA page link
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `year` | integer | no | `2024` | Birth year, such as 2024. Defaults to the latest available year. |
| `state` | string | no | `"California"` | U.S. state name or two-letter code, such as California or CA. Leave blank for the whole United States. |
| `max_results` | integer | no | `20` | Maximum ranks to return, such as 20. Up to 100 for a state, or 1000 nationwide. Default 20. |

## Output

From a run on Oct 23, 2026, shortened. Its input:

```json
{
  "year": 2024,
  "state": "California",
  "max_results": 20
}
```

Its output:

```json
{
  "area": "California",
  "year": 2024,
  "names": [
    {
      "rank": 1,
      "boy_name": "Liam",
      "girl_name": "Mia",
      "page_link": "https://www.ssa.gov/oact/babynames/state/",
      "number_of_boys": 2727,
      "number_of_girls": 1991
    },
    {
      "rank": 2,
      "boy_name": "Noah",
      "girl_name": "Olivia",
      "page_link": "https://www.ssa.gov/oact/babynames/state/",
      "number_of_boys": 2685,
      "number_of_girls": 1938
    },
    {
      "rank": 3,
      "boy_name": "Mateo",
      "girl_name": "Camila",
      "page_link": "https://www.ssa.gov/oact/babynames/state/",
      "number_of_boys": 2369,
      "number_of_girls": 1887
    }
  ]
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"ssa.gov/list_top_baby_names","input":{"year":2024,"state":"California","max_results":20}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- What were the most popular baby names in the US in 2023?
- Show me the top 10 girl and boy names for births in Texas in 2021
- Which names ranked highest for newborns in CA last year?
- Give me the top 50 baby names nationwide for 2019 with birth counts
- What were the top boy names in Ohio in 2015 according to the Social Security Administration?

## Input schema

```json
{
  "type": "object",
  "required": [],
  "properties": {
    "year": {
      "type": "integer",
      "description": "Birth year, such as 2024. Defaults to the latest available year."
    },
    "state": {
      "type": "string",
      "description": "U.S. state name or two-letter code, such as California or CA. Leave blank for the whole United States."
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 1000,
      "minimum": 1,
      "description": "Maximum ranks to return, such as 20. Up to 100 for a state, or 1000 nationwide."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "year",
    "area",
    "names"
  ],
  "properties": {
    "area": {
      "type": "string",
      "description": "United States or state name."
    },
    "year": {
      "type": "integer",
      "description": "Birth year."
    },
    "names": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "rank",
          "boy_name",
          "number_of_boys",
          "girl_name",
          "number_of_girls",
          "page_link"
        ],
        "properties": {
          "rank": {
            "type": "integer"
          },
          "boy_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "girl_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "page_link": {
            "type": "string",
            "description": "SSA page where visitors can select and view this list."
          },
          "number_of_boys": {
            "type": "integer"
          },
          "number_of_girls": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
```

## See more

- [Social Security Administration API: Get baby name popularity](https://fous.com/methods/ssa.gov/get-name-popularity.md): Gets yearly U.S. baby-name ranks and reported birth counts for a first name from Social Security data. Ranks cover the top 1,000 names for each sex; counts are given for the years the name is in that top 1,000.
- [World Bank API: Compare countries by a statistic](https://fous.com/methods/worldbank.org/compare-countries.md): Ranks countries by a World Development Indicators statistic for a given year, or for the latest year with broad country coverage. Regional aggregates and countries without data for that year are left out.
- [Stock Analysis API: List recent IPOs](https://fous.com/methods/stockanalysis.com/list-recent-ipos.md): Lists US IPOs from a chosen year, newest first. Each IPO comes with its IPO price, current price and return since IPO. Coverage begins in 2019.
- [Fortune API: List Fortune 500 companies](https://fous.com/methods/fortune.com/list-fortune-500.md): Lists the Fortune 500 for a year. You can filter by industry or sector and by headquarters state. Each company comes with its public financial and company details.
- [Ballotpedia API: List ballot measures](https://fous.com/methods/ballotpedia.org/list-ballot-measures.md): Lists statewide ballot measures in a US state and year, in Ballotpedia order, with election dates, topics, measure types, yes/no vote meanings and results. Years without statewide measures return an empty list.
- [Similarweb API: List top websites](https://fous.com/methods/similarweb.com/list-top-websites.md): Lists Similarweb's most visited websites for a category and country, with rankings and engagement figures for the reported month. Anonymous view limits may restrict results, especially for country rankings.
- [BLS API: Get occupation wages](https://fous.com/methods/bls.gov/get-occupation-wages.md): Finds the latest published BLS pay and employment for an occupation in the US, a state, or a metro area, and compares it with the national median.
- [Box Office Mojo API: List top grossing movies](https://fous.com/methods/boxofficemojo.com/list-top-grossing-movies.md): Lists the highest-grossing movies of a calendar year, ranked by domestic or worldwide gross, with release dates and distributors.
- [All Social Security Administration methods](https://fous.com/methods/ssa.gov.md)
