Full Name Parser: split names into first, middle and last avatar

Full Name Parser: split names into first, middle and last

Pricing

from $0.30 / 1,000 parsed names

Go to Apify Store
Full Name Parser: split names into first, middle and last

Full Name Parser: split names into first, middle and last

Splits full names into title, first, middle and last name, suffix and nickname. A small language model, not a rule list: handles "Last, First", particles (van der, de la, bin), double surnames, patronymics, initials, ALL CAPS and non-Latin scripts. Run it on a list or dataset, or call it as an API.

Pricing

from $0.30 / 1,000 parsed names

Rating

0.0

(0)

Developer

loice.ai

loice.ai

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

6 days ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

Share

Turn a full name into its parts: title, first name, middle name, last name, suffix and nickname. Give the Actor a list of names or a dataset, or call it as a real-time API, and get one clean row per name.

Full nameTitleFirstMiddleLastSuffixNickname
Dr. Martin Luther King Jr.Dr.MartinLutherKingJr.
García Márquez, Gabriel JoséGabrielJoséGarcía Márquez
William Jefferson "Bill" ClintonWilliamJeffersonClintonBill
Ludwig van BeethovenLudwigvan Beethoven
Ms. JANE A. DOE, MDMs.JANEA.DOEMD
Mohammed bin Salman Al SaudMohammedbin SalmanAl Saud
Иванов Иван ИвановичИванИвановичИванов

Why use it

Most name splitters are a list of rules: "the last word is the surname". That breaks on García Márquez, van der Berg, Smith, John and SMITH John. This Actor runs a small language model that reads the whole name before it decides.

It handles:

  • Titles and suffixes, also stacked: Prof. Dr., Lt. Col., Jr., III, PhD, MD
  • "Last, First" order and family-name-first order: Smith, John A., SMITH John, Иванов Иван Иванович
  • Particles that belong to the surname: van der, de la, von, bin, Al-
  • Double surnames (García Márquez), hyphenated names and patronymics (Иванович)
  • Nicknames in quotes or brackets: Robert "Bob" Smith, John (Jack) Kennedy
  • Initials, including joined ones: J.R.R. Tolkien
  • ALL CAPS, lowercase and mixed case input
  • Non-Latin scripts that separate words with spaces, such as Cyrillic, Greek and Arabic
  • Romanized Chinese and Korean names, such as Kim Min-jun

Each result keeps the spelling of the input. The Actor moves words into fields; it never corrects, translates or guesses a name.

How accurate is it

"Exact match" means every word of the name got the right label.

Test setNamesExact match
Names from 42 countries7,79096.7%
US names1,62594.2%
Names from many cultures17195.3%

See Limitations for the names the model finds hard.

What you can do with it

  • Clean a CRM or mailing list. Fill separate first-name and last-name columns from one "Full name" column.
  • Personalize outreach. Greet people by first name, without "Dear Dr." or "Hi Smith,".
  • Enrich scraped data. Chain it after a scraper whose results have a name or author field.
  • Deduplicate and match records. Compare Smith, John A. and John Smith on the same fields.
  • Split names in real time, in a sign-up form, an n8n or Make workflow, or an AI agent.

How to use it

1. Parse a list (input interface)

Paste the names into Full names, one per line, and start the run. The results are in the run's dataset, one row per name and in the same order. Download them as JSON, CSV or Excel.

{
"names": ["Dr. Martin Luther King Jr.", "García Márquez, Gabriel José"],
"includeConfidence": true
}

2. Parse a dataset

To parse the results of another Actor, pick its dataset in Source dataset and name the field that holds the full name. Turn on Keep the source item to get each parsed name next to the data it came from.

{
"datasetId": "YOUR_DATASET_ID",
"nameField": "author.fullName",
"keepSourceFields": true
}

Use a dataset for large jobs as well. An Actor input holds roughly 200,000 names; a dataset has no such limit.

3. Call the API (server interface)

The Actor is also an HTTP API that answers at once, with no run to start or wait for. Copy the URL from the Actor's Server tab and send your Apify API token in the Authorization header.

curl -X POST "https://<ACTOR-SERVER-URL>/parse" \
-H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"names": ["Smith, John \"Jack\" A.", "Ludwig van Beethoven"], "confidence": true}'
{
"results": [
{
"name": "Smith, John \"Jack\" A.",
"prefix": "",
"first": "John",
"middle": "A.",
"last": "Smith",
"suffix": "",
"nickname": "Jack",
"confidence": 0.9927,
"error": null
},
{
"name": "Ludwig van Beethoven",
"prefix": "",
"first": "Ludwig",
"middle": "",
"last": "van Beethoven",
"suffix": "",
"nickname": "",
"confidence": 0.8782,
"error": null
}
],
"count": 2,
"parsed": 2
}
EndpointInput
POST /parseJSON body: name (string), names (array), optional confidence, tags
GET /parseQuery: name (repeat it for several names), optional confidence=true, tags=true
GET /The model version and the limits of this API

One request takes up to 1,000 names and a body of up to 2 MB. For more, split the list or start a run. Prefer POST: a name in a URL ends up in logs and browser history.

Input

FieldTypeDescription
names (Full names)arrayFull names to split. One result row per name, in the same order.
datasetId (Source dataset)stringA dataset whose items hold a full name.
nameField (Field with the full name)stringThe field to read from each dataset item. Dot for a nested field. Default name.
keepSourceFields (Keep the source item)booleanAdd the source dataset item to each row as source.
includeConfidence (Add a confidence score)booleanAdd confidence to each row.
includeTags (Add a label for every word)booleanAdd tags to each row.

Give names, datasetId, or both. With both, the list is parsed first.

Output

Every row has the same fields. A part the name does not have is an empty string.

FieldDescription
nameThe name as you gave it.
prefixTitle before the name: Dr., Prof. Dr., Mrs.
firstFirst (given) name.
middleMiddle names, second given names, patronymics and middle initials.
lastLast (family) name with its particles and second surname: van Beethoven, García Márquez.
suffixGenerational, academic or professional suffix: Jr., III, PhD.
nicknameNickname given in quotes or brackets.
confidenceOnly when asked for. Probability from 0 to 1 that the whole split is right.
tagsOnly when asked for. Every word with its label, in the order of the input.
errornull, or why the value was not parsed: empty, too_long (over 500 characters), not_a_string.
sourceOnly with Keep the source item. The dataset item the name came from.

A value that cannot be parsed never fails the run or the request. It comes back as a row with error set and empty parts, so the output always lines up with the input.

Use the confidence score

confidence is the model's own probability for the whole split. Most ordinary names score above 0.85. A low score means the name is ambiguous or is not one person's name: Mr. and Mrs. John Smith scores 0.38. Pick the threshold for manual review on a sample of your own data.

Errors of the API

Errors have one shape: { "error": { "code": "...", "message": "..." } }.

StatusCodeMeaning
400invalid_json, invalid_body, missing_namesThe request is malformed or holds no name.
404not_foundUnknown path. The endpoint is /parse.
405method_not_allowedUse GET or POST.
413too_many_names, body_too_largeMore than one request takes. Split the list, or start a run.
503billing_unavailableThe request could not be billed. Nothing is returned; try again.

A 401 or 429 comes from the Apify platform: a missing token, or more requests than your account's rate limit.

What is charged

  • A run through the input interface is charged per result row stored.
  • A request to the API is charged per name that was parsed. A value that comes back with an error is not charged, and neither is a failed request.
  • A run stops cleanly when it reaches the maximum cost you set for it. Rows stored up to then stay in the dataset.

Limitations

  • Short East Asian names without a comma are a guess. For two one-syllable words, such as Wang Wei, nothing in the name says which is the family name. Write Wang, Wei or WANG Wei when you know the order.
  • Middle name or second surname? For a three-word name such as María Fernanda Torres, the middle word can be either. The model sometimes picks the surname.
  • It expects one person's name. Couples (Mr. and Mrs. John Smith), company names and job titles are forced into the six fields. Use confidence to catch them.
  • Scripts without spaces are out of scope: Chinese, Japanese, Korean and Thai names written without spaces.
  • It does not validate, correct or gender a name, and it does not tell a real name from a made-up one.

Privacy

Names are personal data, so the Actor keeps as little as it can:

  • The API stores nothing. A request is parsed in memory and answered, and responses are marked no-store.
  • The Actor never writes a name to its log. Logs hold counts, timings and error codes.
  • A run stores its results only in that run's own dataset, under the data retention of the account that started it.
  • No name leaves the Apify platform. The model runs inside the Actor and calls no external service.

FAQ

Does it use an LLM? No. It uses a small language model that ships inside the Actor. The same input always gives the same output, and nothing is sent to a third party.

How fast is it? The model parses 1,000 names in about a tenth of a second. A run is limited by how fast results are written to the dataset, not by the model.

Can I use it from n8n, Make, Zapier or an AI agent? Yes. Use the API with any HTTP module, or your tool's Apify integration with the input above. AI agents can call the Actor through the Apify MCP server.

The split of a name is wrong. What can I do? Check the Limitations first. If you know the order, give the name as Last, First. Otherwise open an issue on the Actor's Issues tab with the name and the split you expected.