# Username Generator API

> Username Generator creates handle suggestions from a person's name or email address. It returns an array of suggested usernames based on the input, while paid plans can request multiple options at once.

**Endpoint:** `GET https://api.apiverve.com/v1/usernamegenerator`  
**Category:** Data Generation  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/usernamegenerator

## Overview

Use it to auto generate usernames at signup instead of making new users invent one. Username Generator works by generating usernames based on the specified criteria. It uses advanced algorithms to generate usernames and returns a list of usernames.

## 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/usernamegenerator?email=sean%40mail.com&count=10&platform=twitter&maxLength=15" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `email` | string | Yes | The email address to generate usernames from. A plus tag (john+news@) is dropped, and dots, dashes or underscores in the local part split it into name parts. email |
| `count` | integer | No | The number of usernames to generate. default 1. range 1-10. Premium field |
| `platform` | string | No | Only suggest handles this platform accepts (length and characters). One of: twitter, instagram, tiktok, github, reddit, discord, youtube |
| `maxLength` | integer | No | Longest handle to suggest (3 to 50); combined with platform, the shorter limit wins. range 3-50 |

## Response fields

- `count` — number · Total number of usernames generated in response
- `suggestions` — array · Array of generated username suggestions for user
- `email` — string · Email address used to generate usernames
- `platform` — object · Platform the suggestions were checked against, or null
- `maxLength` — object · Length limit the suggestions respect, or null when unlimited

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "count": 10,
    "suggestions": [
      "smoothsean",
      "sean-blade",
      "infinitesean",
      "jadesean",
      "sean777",
      "hiddensean23",
      "seantv596",
      "sean_brightdragon",
      "shiningsean",
      "the_sean"
    ],
    "email": "sean@mail.com",
    "platform": null,
    "maxLength": null
  }
}
```

## Use cases

- **Player Profile Setup** — Gaming platforms generate candidate gamer tags from a new player's real name during account creation.
- **Forum Handle Autofill** — To speed up community registration, web forums present handle suggestions derived from an applicant's entered email address.
- **Corporate Directory Provisioning** — When creating new workforce accounts, IT identity systems supply employee names to reserve standard internal usernames.
- **Student Account Provisioning** — Feed enrolled student names into the endpoint to recommend clean login handles across school portals and learning apps.

## SDKs

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

## More

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