POST
/person
Generate people (JSON body)

Authentication

Every request must include a valid API key in the X-APIKEY header. Missing or invalid keys receive 403 Forbidden.

Request body fields

FieldRequiredNotes
countryCodeYesTwo-letter country code, case-insensitive.
genderYesmale or female.
countNoWhole number 1–100. Defaults to 1.

Example request

POST /person
Content-Type: application/json
X-APIKEY: your-api-key

{
  "countryCode": "ES",
  "gender": "male",
  "count": 1
}

Example response (200 OK)

{
  "success": true,
  "countryCode": "ES",
  "gender": "male",
  "count": 1,
  "people": [
    {
      "countryCode": "ES",
      "gender": "male",
      "firstName": {
        "original": "Álvaro",
        "normalized": "Alvaro"
      },
      "surname": {
        "original": "García López",
        "normalized": "Garcia Lopez"
      },
      "fullName": {
        "original": "Álvaro García López",
        "normalized": "Alvaro Garcia Lopez"
      }
    }
  ]
}

Error responses

StatusCodeReason
403FORBIDDENMissing or invalid API key.
400INVALID_COUNTRYMissing or invalid country code.
400INVALID_GENDERGender is not male or female.
400INVALID_COUNTCount is not a whole number between 1 and 100.
404NO_NAME_DATANo name data available for the country and gender.
500INTERNAL_ERRORUnexpected server error.