# Random User Generator API

> Random User Generator produces realistic mock user profiles complete with full names, email addresses, usernames, birth dates, and phone numbers. Paid plans add batch generation, random passwords, and matching AI avatars.

**Endpoint:** `GET https://api.apiverve.com/v1/randomusergenerator`  
**Category:** Data Generation  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/randomusergenerator

## 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.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/randomusergenerator?count=1&includeAvatar=true&gender=value&nationality=value&seed=value" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | integer | No | The number of users to generate. default 1. range 1-100. Premium field |
| `includeAvatar` | boolean | No | Include an AI-generated face avatar matching user's gender and age. default false. Premium field |
| `gender` | string | No | Only generate users of this gender. One of: male, female |
| `nationality` | string | No | ISO country code for localised names, phone numbers and addresses (e.g. DE, JP, BR). Defaults to US. One of: US, GB, AU, CA, IE, IN, ZA, NG, GH, DE, AT, CH, FR, ES, MX, IT, NL, BE, PT, BR, SE, NO, DK, FI, PL, TR, UA, RU, JP, KR, CN, VN, ID, CZ, GR, HU, RO, SK, HR, IR, IL, TH |
| `seed` | string | No | Any string; the same seed (with the same other parameters) returns the same users, for repeatable test data |

## Response fields

  - `0.id` — string · Unique identifier for the generated user
  - `0.name` — string · Full name of the randomly generated user
  - `0.gender` — string · Gender designation for the random user
  - `0.username` — string · Randomly generated username for the user
  - `0.email` — string · Randomly generated email address for user
  - `0.password` — string · Randomly generated password for the user · (premium)
  - `0.registered` — string · ISO 8601 date when user registered account
  - `0.phone` — string · Randomly generated landline number for user, valid for the nationality's numbering plan, in national format with no extension
  - `0.cell` — string · Randomly generated mobile number for user, drawn from the nationality's mobile ranges, in national format with no extension
  - `0.birthdate` — string · ISO 8601 date representing user's birth date
  - `0.age` — number · Age in whole years from the birthdate
  - `0.nationality` — string · ISO country code the user was generated for
  - `0.location` — object · A street address in a real city of that country, with coordinates near the city centre and its timezone · (premium)
    - `0.location.street` — string · Street address (generated) · (premium)
    - `0.location.city` — string · A real city in the country · (premium)
    - `0.location.state` — string · State or province of that city · (premium)
    - `0.location.postcode` — string · Postcode in the country's format (generated); US ZIP codes fall in the range for the user's state, and CA, GB, AU, DE, FR, IT, ES and KR postcodes in the range for the city or region · (premium)
    - `0.location.country` — string · Country name · (premium)
    - `0.location.countryCode` — string · ISO country code · (premium)
    - `0.location.latitude` — number · Latitude within about 5 km of the city centre · (premium)
    - `0.location.longitude` — number · Longitude within about 5 km of the city centre · (premium)
    - `0.location.timezone` — string · IANA timezone of the city · (premium)
  - `0.login` — object · Hashes of password + salt, for seeding a test user table · (premium)
    - `0.login.salt` — string · Random 8-character salt · (premium)
    - `0.login.md5` — string · MD5 of password + salt · (premium)
    - `0.login.sha1` — string · SHA-1 of password + salt · (premium)
    - `0.login.sha256` — string · SHA-256 of password + salt · (premium)
  - `0.avatar` — string · URL to AI-generated face avatar matching gender and age · (premium)

## Sample response

```json
{
  "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=..."
    }
  ]
}
```

## 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.

## SDKs

- **npm** — `npm install @apiverve/randomusergenerator` (https://www.npmjs.com/package/@apiverve/randomusergenerator)
- **PyPI** — `pip install apiverve-randomusergenerator` (https://pypi.org/project/apiverve-randomusergenerator/)
- **NuGet** — `dotnet add package APIVerve.API.RandomUserGenerator` (https://www.nuget.org/packages/APIVerve.API.RandomUserGenerator)
- **Source** — https://github.com/apiverve/randomusergenerator-api

## More

- Full reference: https://docs.apiverve.com/ref/randomusergenerator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
