Continue → Overview

Salutation API: the right greeting for every name

Send a name and a language, get back a salutation you can paste into a letter or an email: “Sehr geehrte Frau Dr. Müller,”, “Sayın Ahmet Bey,”, “Estimado Sr. García:”, “山田様”. The gender lookup is included and costs the same single credit. When the gender is not certain, you get a neutral greeting instead of a guess.

100 free credits every day. No card.

One call: name in, greeting out

Most teams build salutations with a formula on top of a gender column, and every language ends up with its own special cases. The salutation endpoint does the parsing, the gender lookup and the language rules in one request, and returns three ready lines: formal, informal and neutral.

Titles in the name are kept where the language expects them, so “Dr. Anna Müller” becomes “Sehr geehrte Frau Dr. Müller,” in German. A courtesy title in the input, such as Frau or Mr, decides the gender over the lookup, and so does a gender your CRM already stores.

Only have an email list? Send the address instead of a name: anna.mueller@example.de gives “Sehr geehrte Frau Mueller,”, and role addresses such as info@ get the form for organisations. Addresses carry no accents, so use a stored name when you have one.

curl
curl -X POST https://namegender.com/api/v1/salutation \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Dr. Anna Müller", "language": "de"}'

# "salutation": {
#   "formal":   "Sehr geehrte Frau Dr. Müller,",
#   "informal": "Liebe Anna,",
#   "neutral":  "Guten Tag Dr. Anna Müller,"
# }

Copy failed. Select and copy the text.

Ten languages, each with its own rules

The hard part of a salutation is not the gender, it is everything around it. French formal letters use no surname at all. Spanish takes the first of two surnames and Portuguese the last. Dutch capitalises the surname particle once the first name is dropped. Turkish puts Bey or Hanım after the given name, and Polish needs no name at all in a formal opening.

Language Formal (female / male) Neutral
English (US) Dear Ms. Smith: / Dear Mr. Smith: Dear Alex Smith:
German Sehr geehrte Frau Müller, / Sehr geehrter Herr Müller, Guten Tag Alex Müller,
French Madame, / Monsieur, Madame, Monsieur,
Spanish Estimada Sra. García: / Estimado Sr. García: Hola, Alex García:
Italian Gentile Sig.ra Rossi, / Gentile Sig. Rossi, Gentile Alex Rossi,
Portuguese (BR) Prezada Sra. Silva, / Prezado Sr. Silva, Olá, Alex Silva,
Dutch Geachte mevrouw De Vries, / Geachte heer De Vries, Geachte Alex de Vries,
Turkish Sayın Ayşe Hanım, / Sayın Ahmet Bey, Sayın Deniz Yılmaz,
Polish Szanowna Pani, / Szanowny Panie, Szanowni Państwo,
Japanese 山田様 山田様

Neutral when the gender is not certain

A wrong gender in a salutation is worse than no gender at all. The gendered form is used only when the gender is known with at least 90% probability, a threshold you can change, and when the language has the name part it needs: “Sehr geehrter Herr Max” is wrong, so a German salutation without a surname falls back to “Guten Tag Max,”.

Every response says which form was used and why: gender unknown, below your threshold, no surname, or a neutral form requested. Companies and shared mailboxes get the language’s form for organisations, such as “Sehr geehrte Damen und Herren,” or “Sayın Yetkili,”.

In spreadsheets, Zapier, Make and n8n

In Google Sheets, =NAMEGENDER_SALUTATION(A2:A500, "de") fills a whole column, and results are cached so reopening the sheet does not spend credits again. Zapier has a Get Salutation action, Make a Get a Salutation module and n8n a Salutation operation, so a new CRM contact can get its greeting the moment it is created.

The client libraries for Python, JavaScript, PHP, Ruby, Go, Java, .NET, R, PowerShell and Rust all have a salutation method and a bulk version for up to 100 names per request.

Questions

Which languages are supported?

English (US and UK), German (including Swiss spelling), French, Spanish, Italian, Portuguese (Portugal and Brazil), Dutch, Turkish, Polish and Japanese.

What does it cost?

One credit per name, the same as a gender lookup, which is included. Neutral results cost the same.

Can I force a gender I already know?

Yes. Send gender as male, female or neutral and the lookup is overridden. A courtesy title in the name, such as Frau or Mr, does the same.

Is the language the same as the country?

No. The country hint improves the gender lookup (Andrea is male in Italy), while the language decides how the greeting is written. Write to Mr Müller in the US in English.

Are Polish and Czech vocatives supported?

Not yet. Polish formal openings need no name, so they work today; informal Polish and Czech with the vocative case are planned.

Related pages

Name validation API: catch junk names, not real people

Flag “asdf qwerty”, “Test Test” or “Mickey Mouse” in sign-up and lead forms, with the reasons. Real names like Jennifer Null pass. 1 credit.

Add gender to HubSpot contacts

Fill a gender property on every new HubSpot contact from the first name or email. Zapier and Make steps, plus a CSV route for existing contacts.

Customer and lead gender enrichment

Append a gender column to a customer list, CRM export or lead database, with a confidence field you can filter on and no monthly reset on purchased credits.

Andrea, Jean, Kim: the names where the answer depends on the country

Some ordinary names flip gender across borders, and the error is systematic rather than random. What the country parameter does, and where the data comes from.

probability, confidence and sample_size: reading a gender response properly

Reading the gender field alone discards everything that says whether to believe it. What each response field means and the thresholds behind confidence.

Check it against your own list

Every number on this page is reproducible with a free key. If your data breaks it, that is the more interesting result.