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.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Year optional
year Birth year, such as 2024. Defaults to the latest available year.
2024
Whole number.
- State optional
state U.S. state name or two-letter code, such as California or CA. Leave blank for the whole United States.
California
- Max Results optional
max_results Maximum ranks to return, such as 20. Up to 100 for a state, or 1000 nationwide.
20
Whole number from 1 to 1000. Default
20.
Input as JSON
{ "year": 2024, "state": "California", "max_results": 20}Output
{ "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 } ]}Code
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}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "ssa.gov/list_top_baby_names" , "input": { "year": 2024, "state": "California", "max_results": 20 }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "ssa.gov/list_top_baby_names" , "input": { "year": 2024, "state": "California", "max_results": 20 } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run ssa.gov/list_top_baby_names# with {"year":2024,"state":"California","max_results":20}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "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
{ "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}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
ssa.gov/list_top_baby_names- Returns
- rank, boy and girl names with birth counts, area, year, SSA page link
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method ssa.gov/list_top_baby_names with the inputs above.
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?
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.
ssa.gov/get_name_popularityRanks 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.
worldbank.org/compare_countriesLists 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.
stockanalysis.com/list_recent_iposLists 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.
fortune.com/list_fortune_500Lists 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.
ballotpedia.org/list_ballot_measuresLists 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.
similarweb.com/list_top_websitesFinds 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.
bls.gov/get_occupation_wagesLists the highest-grossing movies of a calendar year, ranked by domestic or worldwide gross, with release dates and distributors.
boxofficemojo.com/list_top_grossing_movies