# First Name Popularity – Official Baby Name Statistics (`rj-tools/apify-name-popularity`) Actor

How popular is a first name? Yearly baby counts, ranks, peaks and 5-year trends from official statistics of the USA, France, Poland, Austria, Spain and Italy. 145,000 names, 1950–2025. No scraping: licensed open data, fast and cheap.

- **URL**: https://apify.com/rj-tools/apify-name-popularity.md
- **Developed by:** [RJ Tools](https://apify.com/rj-tools) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 name results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does First Name Popularity do?

**First Name Popularity** tells you how popular any first name is, using **official birth statistics from six countries**: the United States, France, Poland, Austria, Spain and Italy. For each name you get how many babies were given it each year, its official rank, its peak year, its share of all births and its 5-year trend.

There is no scraping. The data comes from national statistics offices under open licences and is bundled with the Actor, so runs are fast, cheap and always return the same answer for the same input.

### Why use it?

- **Baby name apps and websites**: show real popularity data instead of guesses.
- **Marketing and CRM teams**: estimate the age and country profile of a customer list from first names (a "Linda" was most popular in 1950s America, an "Ollie" in the 2020s).
- **Researchers and journalists**: compare naming trends across countries over decades.
- **Game and content designers**: pick names that are realistic for a given country and generation.
- **AI agents**: call it through the Apify MCP server to answer questions like "Is Zofia still the top girls' name in Poland?"

### What data can I get?

| Field | Description |
|---|---|
| `name` | Most common spelling of the name |
| `country`, `countryName` | ISO code and country name |
| `sex` | `female` or `male` (each sex is a separate row) |
| `lastYear`, `lastCount` | Latest year with data and number of babies given the name |
| `lastRank` | Official rank in the latest year |
| `lastPer10k` | Babies per 10,000 births of that sex in the latest year |
| `peakYear`, `peakCount`, `peakPer10k` | The name's most popular year |
| `trend5yPct` | Change over the last 5 years, in % |
| `totalCount` | Babies given the name in the selected period |
| `series` | Optional year-by-year counts and rates |
| `source`, `license` | Where the numbers come from |

#### Coverage

| Country | Years | Source |
|---|---|---|
| United States | 1950–2025 | Social Security Administration (public domain) |
| France | 1950–2025 | Insee, Fichier des prénoms (Licence Ouverte 2.0) |
| Poland | 2000–2025 | dane.gov.pl, PESEL register (CC0) |
| Austria | 1984–2025 | Statistik Austria (CC BY 4.0) |
| Spain | 2002–2024 | INE (top 100 names per sex only) |
| Italy | 1999–2024 | ISTAT (CC BY 3.0 IT; 2018, 2019 and 2021 missing) |

About 145,000 distinct names. Agencies do not publish very rare names (for example the SSA omits names given to fewer than 5 babies), so those are not included.

### How to use it

1. Enter one or more first names (up to 10,000 per run). Accents and case do not matter.
2. Optionally pick countries, sex and a year range.
3. Click **Start** and download the results as JSON, CSV or Excel, or read them through the API.

To get a ranking instead, switch **Mode** to **Top names of a year**, choose countries and how many names you want (1–100).

#### Example input

```json
{
  "names": ["Emma", "Zofia", "Matteo"],
  "countries": ["us", "pl", "it"],
  "includeSeries": false
}
```

#### Example output

```json
{
  "input": "Zofia",
  "name": "Zofia",
  "country": "pl",
  "countryName": "Poland",
  "sex": "female",
  "firstYear": 2000,
  "lastYear": 2025,
  "lastCount": 4415,
  "lastRank": 1,
  "lastPer10k": 368.57,
  "peakYear": 2017,
  "peakCount": 8585,
  "trend5yPct": -37.6,
  "source": "dane.gov.pl, imiona nadawane dzieciom (PESEL register)",
  "license": "CC0 1.0"
}
```

### How much does it cost?

You pay per result row (one name in one country for one sex). Rows for names that are not found are free.

### Data sources and attribution

Social Security Administration (USA); Insee, Fichier des prénoms (France, Licence Ouverte / Open Licence 2.0); Ministry of Digital Affairs, dane.gov.pl (Poland, CC0); Statistik Austria, data.statistik.gv.at (Austria, CC BY 4.0); Instituto Nacional de Estadística (Spain); Istituto Nazionale di Statistica (Italy, CC BY 3.0 IT). Counts are as published by each agency; spelling variants with the same letters (e.g. Zoe and Zoë) are combined. Browse the same data at [firstnamesatlas.com](https://firstnamesatlas.com/).

### Is it legal?

Yes. All data comes from official open-data publications whose licences allow commercial re-use with attribution. The data contains counts of names only, never information about individual people.

# Actor input Schema

## `mode` (type: `string`):

Look up specific names, or list the most popular names of a year.

## `names` (type: `array`):

First names to look up (up to 10,000 per run). Accents and case do not matter: Zoë, zoe and ZOE return the same name.

## `countries` (type: `array`):

Countries to include. Leave empty for all six.

## `sex` (type: `string`):

Restrict results to girls or boys.

## `yearFrom` (type: `integer`):

Lookup mode: ignore years before this one.

## `yearTo` (type: `integer`):

Lookup mode: ignore years after this one.

## `includeSeries` (type: `boolean`):

Lookup mode: add the full year-by-year counts and rate per 10,000 births to each row.

## `includeNotFound` (type: `boolean`):

Lookup mode: add a free row for every name that is not in the data.

## `topYear` (type: `integer`):

Top mode: year of the ranking (2010 onwards). Leave empty for the latest year available in each country.

## `topN` (type: `integer`):

Top mode: number of names per country and sex (1–100).

## Actor input object example

```json
{
  "mode": "lookup",
  "names": [
    "Emma",
    "Liam",
    "Zofia",
    "Matteo"
  ],
  "countries": [],
  "sex": "any",
  "includeSeries": false,
  "includeNotFound": false,
  "topN": 10
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "names": [
        "Emma",
        "Liam",
        "Zofia",
        "Matteo"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rj-tools/apify-name-popularity").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "names": [
        "Emma",
        "Liam",
        "Zofia",
        "Matteo",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("rj-tools/apify-name-popularity").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "names": [
    "Emma",
    "Liam",
    "Zofia",
    "Matteo"
  ]
}' |
apify call rj-tools/apify-name-popularity --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rj-tools/apify-name-popularity"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/sZXCZ08lJ4CL1P3bb/builds/pew1nnkvtRtQCT89g/openapi.json
