Docs/APIs/Random User Generator

Random User Generator

Generate random user data

OperationalCredits 2 per callp50 841msData GenerationStar

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.

GEThttps://api.apiverve.com/v1/randomusergenerator
curl "https://api.apiverve.com/v1/randomusergenerator?count=1&includeAvatar=true" \
  -H "x-api-key: your_api_key_here"

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.

401 is the only auth verdict

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.

ParameterTypeDescription
countOptionalPremiumintegerThe number of users to generate
default 1 · range 1–100
includeAvatarOptionalPremiumbooleanInclude an AI-generated face avatar matching user's gender and age
genderOptionalstringOnly generate users of this gender
malefemale
nationalityOptionalstringISO country code for localised names, phone numbers and addresses (e.g. DE, JP, BR). Defaults to US
USGBAUCAIEINZANG+34
seedOptionalstringAny 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.

Sample response
{
  "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.

FieldTypeExampleDescription
0array[1]
idstring"aeb01cae-300b-4e54-9cb0-76ce52d6b315"Unique identifier for the generated user
namestring"Monique Torp"Full name of the randomly generated user
genderstring"Female"Gender designation for the random user
usernamestring"Monique.Torp"Randomly generated username for the user
emailstring"Monique_Torp41@hotmail.com"Randomly generated email address for user
passwordPremiumstring"V7s6IHRMhlniG98"Randomly generated password for the user
registeredstring"2026-01-10T15:18:03.898Z"ISO 8601 date when user registered account
phonestring"1-967-684-8927 x83452"Randomly generated phone number for user
cellstring"1-555-737-7469 x885"Randomly generated cell phone number for user
birthdatestring"1976-03-25T20:38:58.998Z"ISO 8601 date representing user's birth date
agenumber50Age in whole years from the birthdate
nationalitystring"US"ISO country code the user was generated for
locationPremiumobject{...}A street address in a real city of that country, with coordinates near the city centre and its timezone
streetPremiumstring"6858 Darrick Ramp"Street address (generated)
cityPremiumstring"Parkersburg"A real city in the country
statePremiumstring"West Virginia"State or province of that city
postcodePremiumstring"31811-8127"Postcode in the country's format (generated)
countryPremiumstring"United States of America"Country name
countryCodePremiumstring"US"ISO country code
latitudePremiumnumber39.27687Latitude within about 5 km of the city centre
longitudePremiumnumber-81.56839Longitude within about 5 km of the city centre
timezonePremiumstring"America/New_York"IANA timezone of the city
loginPremiumobject{...}Hashes of password + salt, for seeding a test user table
saltPremiumstring"xh1696HT"Random 8-character salt
md5Premiumstring"5ebad82435f817d5837916fa2885b95c"MD5 of password + salt
sha1Premiumstring"b62baac1003eed109f32b3305bf049516f175819"SHA-1 of password + salt
sha256Premiumstring"02a99836191088b702972c5153c9d4ce2290d39bb90de141b467f302e62e8143"SHA-256 of password + salt
avatarPremiumstring"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.

StatusMeaningWhat to do
400Input was rejectedRead error; it names the parameter.
401Key missing or invalidCheck the header name and the key value.
403Key valid, but not permittedA key restriction or IP allow-list; see key scoping.
429Rate limited, or out of creditsRead 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.

Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →

More in Data Generation:

Was this page helpful?