Random Person Generator

Random Person Generator API

Utilities

Generate realistic fake person data instantly. Create complete profiles with names, contact info, demographics for testing and development.

Authentication

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Rate Limit

120 requests per minute

Endpoints

1 endpoint available

Overview

Generates made-up people for test data, demos and mockups. Names, phone numbers and emails are random and do not belong to real people. Do not use the data for anything security related.

Fields on each person

  • firstName, lastName, fullName
  • age - whole number between minAge and maxAge
  • gender
  • nationality and countryOfResidence
  • phoneNumber - random number, formatted for a random country
  • email - built from the person's name
  • id - unique id for the record, starting with person_

Filters

  • genders: when you pass a list, each person gets one of those values. When empty, gender is any value from the generator's list, which includes more options than the five filter values.
  • countries: when you pass a list, nationality and country of residence are each picked from it, independently. When empty, they are any country. The 30 allowed values are listed below.
  • minAge and maxAge: 1 to 100, and minAge cannot be greater than maxAge.

Allowed countries: United States, Canada, United Kingdom, Australia, Germany, France, Japan, Brazil, India, China, Russia, Mexico, South Africa, Egypt, Nigeria, Kenya, South Korea, Italy, Spain, Netherlands, Sweden, Norway, Finland, Denmark, New Zealand, Argentina, Chile, Peru, Colombia, Venezuela.

Limits

1 to 1,000 people per request.

Endpoints

POST
https://opentools.ca/api/v1/tools/random-person-generator
Generate fake people with optional filters

Request Body

Content-Type: application/json

ParameterTypeRequiredDescription
count
number
OptionalNumber of people to generate, an integer from 1 to 1,000.Default: 1
minAge
number
OptionalMinimum age, an integer from 1 to 100.Default: 18
maxAge
number
OptionalMaximum age, an integer from 1 to 100. Must be at least minAge.Default: 80
genders
string[]
Enum: Male, Female, Non-binary, Other, Prefer not to say
OptionalGenders to pick from. Empty or omitted means any.
countries
string[]
OptionalCountries to pick nationality and residence from, from the list above. Empty or omitted means any country.

Response Example

{
  "success": true,
  "count": 1,
  "people": [
    {
      "firstName": "Sarah",
      "lastName": "Johnson",
      "fullName": "Sarah Johnson",
      "age": 34,
      "gender": "Female",
      "nationality": "Canada",
      "phoneNumber": "+1 555 123 4567",
      "email": "sarah.johnson@example.org",
      "countryOfResidence": "United States",
      "id": "person_1702489234567_0_k3j9x2a"
    }
  ]
}

Error Codes

400
Bad Request - A value is out of range, an unknown gender or country, or minAge greater than maxAge
401
Unauthorized - Invalid or missing API key
403
Forbidden - API key is inactive or expired, or the request IP is not allowed for this key
429
Too Many Requests - Rate limit exceeded
500
Internal Server Error

Code Examples

curl -X POST https://opentools.ca/api/v1/tools/random-person-generator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "count": 5,
    "minAge": 25,
    "maxAge": 45,
    "countries": ["Canada", "United States"]
  }'

Ready to get started?

Create an API key to start using the Random Person Generator API.

Rather use it in your browser? Open the Random Person Generator