Name Parser API.
Integrate our blazing fast RESTful API into your game, app or online application. It returns JSON objects that fit into any new or existing project, with documentation and examples for every endpoint.
Introduction
Our blazing fast RESTful API returns JSON objects that easily integrate into any new or existing project. For each endpoint listed below we have extensive documentation and code examples for PHP and Python.
All the endpoints are available via web app and API. To use our web app or API you need to create an account. After you activate your account you can start using the API or the example projects with your API key.
Example projects on GitHub
A list of available example projects for our API, with coding examples for different languages. Feel free to use all the provided examples within your new or existing projects.
Complete project written in PHP 7.1 with examples on how to use all endpoints available in the Name Parser API.
Complete project written in Python with examples on how to use all endpoints available in the Name Parser API.
We’re looking for some help to add more example projects, so feel free to contact us and discuss the possibilities.
Endpoints
Splits a full name or email address into first name, middle names and surname, with gender, salutation, title and nationality. Add validate=true to validate the name in the same request.
Documentation ›Checks whether the first name and surname exist and compares the name with 13.738 famous, fictional and humorous names. A parameter of parse.
Documentation ›Generates a random, fictional full name with a fictional email address, for any country code or gender.
Documentation ›Your account details, subscription, rate limits and usage. Used by default when no endpoint is given, and not rate limited.
Documentation ›Request objects
Each endpoint has different parameters. Three parameters are used globally: your API key, the response type and the gender type.
Your API key is required for every API call. Register for a free API key ›
93d471ea85d1937e713e8aafffb32090The API returns JSON objects written in key/value pairs by default. If needed you can get the response as a JSON array instead.
objectarraySets the wording of gender_formatted. By default the field returns “male” or “female”. You can change the formatting from sex (default) to gender, marital, birth or slang.
sexgendermaritalbirthslangResponse objects
The API returns JSON objects written in key/value pairs by default (JSON arrays are optional). The key is always a string and values are data types like string, integer, boolean, array or null. If a boolean, integer or string is empty the value contains a null. If an array is empty we return an empty array. Each response object has a structure like this:
The key results is an integer that tells you how many result objects you can expect in the data array. The error key will (hopefully) always be null, but if an error occurs it will contain a description as a string and the data array will be empty. Additionally, an appropriate status code will be returned.
The key error_code is the machine-readable version of the error.
Your code can act on it without parsing the error message, which may change.
Every error code is listed in our OpenAPI specification.
The request has no api_key.
The API key does not exist, is disabled or is not valid anymore.
The rate limit per hour, day or month is reached. Retry-After tells how many seconds to wait.
The API-Version header asks for a major version we do not serve.
The endpoint parameter is missing or unknown.
The endpoint is no longer available.
A parse request without name or email.
A parse request with both name and email.
More names or email addresses than your plan allows per request.
The country_code is not a supported two-letter code.
The language is not one of en, nl, de, fr or es.
The input does not seem to be a name.
The input does not seem to be an email address.
The gender is not f or m.
The number of results is not between 1 and 25.
No name could be found in the name or email address.
Several names or email addresses were sent and at least one has its own error in data.
Something is broken on our side. Try again later.
Rate limits
To make sure our APIs are running as efficiently as possible we have rate limits. Depending on your subscription you can send a limited number of requests per hour. Paid subscriptions have a higher rate limit.
The rate limits per day and per hour are a moving time window: for each request we look back in time and count how many requests were made during that window. The rate limit per month, for paid subscriptions, is a fixed window.
The rate limit applies to all endpoints except the account information endpoint. If you exceed the rate limit the response will contain an error and status code 429 will be raised. Requests that result in an error response are excluded from rate limit calculations.
Every rate-limited response carries the standard RateLimit-Policy and RateLimit headers.
A response with status 429 also carries Retry-After with the number of seconds to wait.
Your code can use these headers to slow down before it reaches the limit.
HTTP status codes
The API always returns the appropriate HTTP status code for every request. You can get the status code from the HTTP headers. Each endpoint has a code example showing how to use the status codes for error handling.
HTTP headers
The HTTP headers allow us to pass additional information with the response. An HTTP header consists of its case-insensitive name followed by a colon and then its value, without line breaks. The API passes the following information with each response.
Our API can be updated without notice. This header returns the version of the live API. Use it to detect updates programmatically. Changes can be found in our changelog.
Our name database can be updated without notice. This header returns the version of the live database. Use it to detect updates programmatically. Changes can be found in our changelog.
Time in milliseconds (ms) it took to execute the request. Use this to track the performance of our API.
Number of requests that you can still do in this hour. The rate limit per hour is a moving time window: it looks back an hour and counts the number of requests in that period.
Number of requests that you can still do during this 24 hour time window. The rate limit per day is a moving time window: it looks back 24 hours and counts the number of requests in that period.
Number of requests that you can still do during the current month.
Your quotas in the format of the IETF RateLimit header fields: hour;q=100;w=3600, day;q=100;w=86400. q is the number of requests, w the window in seconds.
The requests still available per quota after this request: hour;a=39, day;a=39.
The number of seconds until a request is possible again.
The date a version or endpoint was deprecated, and the date after which it stops answering. See versioning below.
Versioning
Our API is versioned with HTTP headers, not with paths: it always runs on https://api.parser.name/.
Every response returns the live version in X-API-Version as major.minor, and the version of the name database in X-Database-Version.
Minor versions only add endpoints, parameters or response fields.
Breaking changes only come in a new major version.
Send the optional request header API-Version: 2 to pin the major version you built against.
A request for a major version we do not serve gets status 400 with error_code unsupported_api_version, never an answer in a format your code does not expect.
Before we retire a major version or an endpoint, its responses carry the Deprecation header (RFC 9745) and the Sunset header (RFC 8594).
We announce it by email and on this page at least 12 months before the Sunset date.