
Random Person Generator API
Generate realistic fake person data instantly. Create complete profiles with names, contact info, demographics for testing and development.
All API requests require a valid API key passed in the Authorization header as a Bearer token.
120 requests per minute
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
https://opentools.ca/api/v1/tools/random-person-generatorRequest Body
Content-Type: application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
| count | number | Optional | Number of people to generate, an integer from 1 to 1,000.Default: 1 |
| minAge | number | Optional | Minimum age, an integer from 1 to 100.Default: 18 |
| maxAge | number | Optional | Maximum 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 | Optional | Genders to pick from. Empty or omitted means any. |
| countries | string[] | Optional | Countries 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
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"]
}'Rather use it in your browser? Open the Random Person Generator