# Parse names with titles, degrees and suffixes

**Use case:** 

Separate titles (Dr., Prof., Lt. Col.) and suffixes (Jr., III, PhD, MD) from names in lists of doctors, academics, lawyers and officers.

## Input

```json
{
  "names": [
    "Prof. Dr. Hans Müller",
    "Lt. Col. James T. Kirk",
    "Jane Doe, PhD",
    "Gregory House MD",
    "John D. Rockefeller Jr.",
    "Sarah Connor, Esq.",
    "Sir Paul McCartney"
  ],
  "nameField": "name",
  "keepSourceFields": false,
  "includeConfidence": false,
  "includeTags": false
}
```

## Output

```json
{
  "name": {
    "label": "Full name",
    "format": "string"
  },
  "prefix": {
    "label": "Title",
    "format": "string"
  },
  "first": {
    "label": "First",
    "format": "string"
  },
  "middle": {
    "label": "Middle",
    "format": "string"
  },
  "last": {
    "label": "Last",
    "format": "string"
  },
  "suffix": {
    "label": "Suffix",
    "format": "string"
  },
  "nickname": {
    "label": "Nickname",
    "format": "string"
  },
  "confidence": {
    "label": "Confidence",
    "format": "number"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Full Name Parser: split names into first, middle and last Actor is ready to run with the inputs already set for "Parse names with titles, degrees and suffixes". [Sign up or log in](https://console.apify.com/create-task-from-example/dYO8XBLRrLTTEhcAX) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Parse names with titles, degrees and suffixes" task

The Full Name Parser: split names into first, middle and last Actor will start running based on the input automatically. You can also change all the input fields, like full names, field with the full name, and more, to match your specific use case.

### 3. Receive the "Parse names with titles, degrees and suffixes" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as full name, title, first, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Parse names with titles, degrees and suffixes" task via API](https://apify.com/loice/name-parser.md).

## FAQ

### Which titles and suffixes does it recognize?

Common titles, also stacked, such as Dr., Prof. Dr., Lt. Col., Sir, Hon. and Rev., and suffixes such as Jr., Sr., III, PhD, MD and Esq. A suffix can come after a comma or without one.

### Does it keep the title and the suffix?

Yes, in their own fields: the title goes to prefix and the suffix to suffix. Nothing is dropped or rewritten, so you can rebuild the full name or leave them out.

### Are there names it gets wrong?

Regnal numbers are read as a last name: Henry VIII gives the last name VIII. Turn on Add a confidence score to find unusual rows for a check by hand.

### How much does it cost?

You pay per parsed name: $0.50 per 1,000 on the Free plan, less on paid plans, down to $0.30 per 1,000 on Business. Platform usage is included in the price.

## About this Actor

This example demonstrates how to use [Full Name Parser: split names into first, middle and last](https://apify.com/loice/name-parser.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/loice/name-parser.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/loice/name-parser.md

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`).
