Overview
A random user API that doubles as a random name API: each call returns fake users as JSON, with a name, gender, username, email and phone number per profile. Random User Generator works by generating random user data based on predefined rules and providing it in a structured format. The algorithm ensures that the generated data is realistic and diverse.
Live Test Random User Generator API →
Endpoint
One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.
curl "https://api.apiverve.com/v1/randomusergenerator?count=1&includeAvatar=true" \
-H "x-api-key: your_api_key_here"const res = await fetch('https://api.apiverve.com/v1/randomusergenerator?count=1&includeAvatar=true', {
headers: { 'x-api-key': 'your_api_key_here' },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data } = await res.json();
console.log(data);import requests
res = requests.get(
"https://api.apiverve.com/v1/randomusergenerator?count=1&includeAvatar=true",
headers={"x-api-key": "your_api_key_here"},
timeout=15,
)
res.raise_for_status()
print(res.json()["data"])package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/randomusergenerator?count=1&includeAvatar=true", nil)
req.Header.Set("x-api-key", "your_api_key_here")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.
Authentication
Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.
A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.
Parameters
Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.
| Parameter | Type | Description |
|---|---|---|
countOptionalPremium | integer | The number of users to generate default 1 · range 1–100 |
includeAvatarOptionalPremium | boolean | Include an AI-generated face avatar matching user's gender and age |
genderOptional | string | Only generate users of this gendermalefemale |
nationalityOptional | string | ISO country code for localised names, phone numbers and addresses (e.g. DE, JP, BR). Defaults to USUSGBAUCAIEINZANG+34 |
seedOptional | string | Any string; the same seed (with the same other parameters) returns the same users, for repeatable test data |
Response
Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.
{
"status": "ok",
"error": null,
"data": [
{
"id": "aeb01cae-300b-4e54-9cb0-76ce52d6b315",
"name": "Monique Torp",
"gender": "Female",
"username": "Monique.Torp",
"email": "Monique_Torp41@hotmail.com",
"password": "V7s6IHRMhlniG98",
"registered": "2026-01-10T15:18:03.898Z",
"phone": "1-967-684-8927 x83452",
"cell": "1-555-737-7469 x885",
"birthdate": "1976-03-25T20:38:58.998Z",
"age": 50,
"nationality": "US",
"location": {
"street": "6858 Darrick Ramp",
"city": "Parkersburg",
"state": "West Virginia",
"postcode": "31811-8127",
"country": "United States of America",
"countryCode": "US",
"latitude": 39.27687,
"longitude": -81.56839,
"timezone": "America/New_York"
},
"login": {
"salt": "xh1696HT",
"md5": "5ebad82435f817d5837916fa2885b95c",
"sha1": "b62baac1003eed109f32b3305bf049516f175819",
"sha256": "02a99836191088b702972c5153c9d4ce2290d39bb90de141b467f302e62e8143"
},
"avatar": "https://storage.googleapis.com/apiverve/APIResources/faces/Female/50-60/87654321.jpg?X-Goog-Signature=..."
}
]
}
Response fields
Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.
| Field | Type | Example | Description |
|---|---|---|---|
0 | array[1] | ||
id | string | "aeb01cae-300b-4e54-9cb0-76ce52d6b315" | Unique identifier for the generated user |
name | string | "Monique Torp" | Full name of the randomly generated user |
gender | string | "Female" | Gender designation for the random user |
username | string | "Monique.Torp" | Randomly generated username for the user |
email | string | "Monique_Torp41@hotmail.com" | Randomly generated email address for user |
passwordPremium | string | "V7s6IHRMhlniG98" | Randomly generated password for the user |
registered | string | "2026-01-10T15:18:03.898Z" | ISO 8601 date when user registered account |
phone | string | "1-967-684-8927 x83452" | Randomly generated phone number for user |
cell | string | "1-555-737-7469 x885" | Randomly generated cell phone number for user |
birthdate | string | "1976-03-25T20:38:58.998Z" | ISO 8601 date representing user's birth date |
age | number | 50 | Age in whole years from the birthdate |
nationality | string | "US" | ISO country code the user was generated for |
locationPremium | object | {...} | A street address in a real city of that country, with coordinates near the city centre and its timezone |
streetPremium | string | "6858 Darrick Ramp" | Street address (generated) |
cityPremium | string | "Parkersburg" | A real city in the country |
statePremium | string | "West Virginia" | State or province of that city |
postcodePremium | string | "31811-8127" | Postcode in the country's format (generated) |
countryPremium | string | "United States of America" | Country name |
countryCodePremium | string | "US" | ISO country code |
latitudePremium | number | 39.27687 | Latitude within about 5 km of the city centre |
longitudePremium | number | -81.56839 | Longitude within about 5 km of the city centre |
timezonePremium | string | "America/New_York" | IANA timezone of the city |
loginPremium | object | {...} | Hashes of password + salt, for seeding a test user table |
saltPremium | string | "xh1696HT" | Random 8-character salt |
md5Premium | string | "5ebad82435f817d5837916fa2885b95c" | MD5 of password + salt |
sha1Premium | string | "b62baac1003eed109f32b3305bf049516f175819" | SHA-1 of password + salt |
sha256Premium | string | "02a99836191088b702972c5153c9d4ce2290d39bb90de141b467f302e62e8143" | SHA-256 of password + salt |
avatarPremium | string | "https://storage.googleapis.com/apiverve/APIResources/faces/Female/50-60/87654321.jpg?X-Goog-Signatur…" | URL to AI-generated face avatar matching gender and age |
Errors
Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted | A key restriction or IP allow-list; see key scoping. |
429 | Rate limited, or out of credits | Read error to tell them apart; see rate limits. |
Use cases
- Local Database Seeding
- To seed local staging tables without privacy risks, developers generate fake names, emails, and phone numbers directly into migration scripts.
- UI Prototype Demos
- Product designers fill mockups with generated names, birthdays, and registration dates to present realistic customer account views during stakeholder walkthroughs.
- Form Validation Testing
- Verify registration form validation rules before production by feeding unique usernames, emails, and phone records through automated test suites.
- Live Sales Demonstrations
- When preparing customer-facing sandbox instances, sales engineers generate sample user profiles so client prospects see believable accounts rather than placeholder text.
Other ways to use Random User Generator
Set up Random User Generator on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.
Related
More in Data Generation: