Gender from an email address
ayse.yilmaz84@example.com becomes ayse, and ayse becomes female. The second step is the one with benchmarks; the first is the one that actually breaks.
100 free credits every day. No card.
The exact transform
Four steps, no cleverness. Everything before the @ is lowercased. Runs of dot, underscore, hyphen, plus and digits become spaces. Titles and single letters are dropped. The first surviving token is looked up.
So jean.dupont+news@x.fr resolves as jean, and dr.hans.mueller@x.de drops the title and resolves as hans.
curl "https://namegender.com/api/email?email=ayse.yilmaz84%40example.com" \
-H "Authorization: Bearer YOUR_KEY"
Where it goes wrong, with real output
These are live results, no country hint. The first three behave; the last two are the ones to plan around.
| Input | Extracted | Answer |
|---|---|---|
| ayse.yilmaz84@example.com | Ayse | female, 100, 655 obs, high |
| info@acme.com | Info | null, unknown |
| mgarcia@x.es | Mgarcia | null, unknown |
| admin@acme.com | Admin | male, 95, 0 obs, unverified |
| j.smith@example.com | Smith | male, 100, 552 obs, high |
The pre-filter that removes most of the damage
Drop role addresses locally before you spend a credit: admin, info, sales, support, contact, hello, help, office, billing, accounts, noreply, postmaster, webmaster, marketing, press, jobs, careers, hr, legal, security, team. These are not people, and filtering them is faster than a round trip.
Treat a local part with no separator as low-trust regardless of the confidence field. mgarcia and j.smith are both an initial glued to a surname; the first fails safely and the second does not.
Then read the name field. If you expected a given name and got a surname, the answer is an extraction failure wearing a confidence tier.
Use a real name column when you have one
Email extraction is a fallback for rows with nothing else, not a substitute for data you already hold. Where both exist, the name column wins every time — it removes an entire class of failure that no confidence field can see.
There is also a limit no parser can fix: a mailbox is not always one person. Shared household addresses, assistant-managed inboxes and aliases forwarding to a team all carry one name and belong to somebody else, or to several people. That error is invisible in the data and no vendor can detect it for you.
So measure the hit rate on your own addresses before you commit. Run a representative sample, count how many rows come back at high or medium confidence after the role filter, and decide from that number. On a consumer list built from real signups it is usually respectable; on a B2B list full of firstinitial-lastname corporate addresses it is often not worth the credits.
Questions
How accurate is gender from an email address?
Classification accuracy is the same as for the extracted name; the extra error comes from extraction. That is why we publish the failing cases above rather than a single blended percentage.
Do you handle plus-addressing and dots?
Yes. Both are separators, so jean.dupont+news@x.fr resolves as jean.
Can I pass a country as well?
Yes, and you should when you have one. It changes the answer for names whose dominant gender differs by country.
Is an email address personal data?
In most jurisdictions you are likely to operate in, yes, and so is inferred gender. The processor terms are in the data processing agreement.
Related pages
Detect gender from a username or handle. camelCase splitting, separator and digit stripping, and the handles that are not names at all.
Predict gender from a full name. How the given name is extracted from titles, initials, particles and surname-first orders, and how to audit that it worked.
Append a gender column to a customer list, CRM export or lead database, with a confidence field you can filter on and no monthly credit expiry.
Turning an address into a gender is two jobs, and almost every failure is in the first. The exact transform, the confidently wrong cases, and a pre-filter.
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.