# Human Name Parser API

> Human Name Parser splits full name strings into first, middle, and last names, titles, nicknames, and suffixes. It also generates initials directly from the detected components.

**Endpoint:** `GET https://api.apiverve.com/v1/humannameparser`  
**Category:** Parsers  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/humannameparser

## Overview

Human Name Parser works by analyzing the human name provided and parsing it into its components. It uses advanced algorithms to parse the human name into its components and returns the parsed components.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/humannameparser?name=MR.%20MARTINO%20PETROS%20DE%20FLORENCE%20(TINO)%20Jr." \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | The human name to parse |

## Response fields

- `name` — string · The original human name provided for parsing
- `parsed` — object · The name split into its parts
  - `parsed.title` — string · Title or prefix extracted from the name (e.g., Mr., Mrs.)
  - `parsed.first` — string · First name component of the parsed name
  - `parsed.middle` — string · Middle name component of the parsed name
  - `parsed.last` — string · Last name or surname component of the parsed name
  - `parsed.nick` — string · Nickname or preferred name extracted from parentheses
  - `parsed.suffix` — string · Suffix or post-nominal letters (e.g., Jr., Sr., PhD)
- `initials` — string · Initials derived from first, middle, and last name
- `formalName` — string · Formally formatted name (Title Last, First M. Suffix) · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "name": "MR. MARTINO PETROS DE FLORENCE (TINO) Jr.",
    "parsed": {
      "title": "Mr.",
      "first": "Martino",
      "middle": "Petros",
      "last": "de Florence",
      "nick": "Tino",
      "suffix": "Jr."
    },
    "initials": "MPF",
    "formalName": "Mr. de Florence, Martino P. Jr."
  }
}
```

## Use cases

- **Checkout Registration Form** — When customers submit a single name field at checkout, separate their first and last names to populate billing and shipping records correctly.
- **CRM Contact Import** — Sales teams importing raw lead lists parse contact strings into prefixes, given names, surnames, and post-nominals before syncing with databases.
- **Email Personalization Tokens** — To address recipients casually in campaign greetings, extract nicknames or given names instead of sending unformatted full string headers.
- **User Avatar Generation** — Feed derived initials into account dashboards to render placeholder profile graphics whenever a user signs up without uploading an avatar.

## SDKs

- **npm** — `npm install @apiverve/humannameparser` (https://www.npmjs.com/package/@apiverve/humannameparser)
- **PyPI** — `pip install apiverve-humannameparser` (https://pypi.org/project/apiverve-humannameparser/)
- **NuGet** — `dotnet add package APIVerve.API.HumanNameParser` (https://www.nuget.org/packages/APIVerve.API.HumanNameParser)
- **Source** — https://github.com/apiverve/humannameparser-api

## More

- Full reference: https://docs.apiverve.com/ref/humannameparser
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
