Name Formatter
Formats a full name nicely, with correct upper/lower case.
See also the Swagger specification.
See also the Swagger specification.
"jean-claude LAFORGE" => "Jean-Claude Laforge"
application/json (you must set the content-type as http header)
POST
We have integrated Swagger directly into our API.
Visit https://api.nameapi.org/rest/swagger-ui/.
Visit https://api.nameapi.org/rest/swagger-ui/.
Input
See InputPerson.
See Context.
{ "context" : { "priority" : "REALTIME", "properties" : [ ] }, "inputPerson" : { "type" : "NaturalInputPerson", "personName" : { "nameFields" : [ { "string" : "PETER", "fieldType" : "GIVENNAME" }, { "string" : "VAN DER SAR", "fieldType" : "SURNAME" } ] }, "gender" : "UNKNOWN" } }
Output
The nicely formatted string, possibly the same as the input.
If true then server didn't understand the input, but still tried to format it. This feature must be enabled specifically in the input properties.
{ "formatted" : "Peter van der Sar", "unknown" : false }