Docs/APIs/Random Data Generator

Random Data Generator

Generate random data

OperationalCredits 2 per callp50 1156msData GenerationStar

Overview

A random data API and random number generator API in one: pick a type and get JSON test data back. There are fourteen types: number, dice, coin, boolean, string, uuid, guid, color, phone, name, email, username, address and date. Numbers, dice, coins, booleans and strings come from a cryptographically secure generator, with min, max, decimals and unique (no repeats) for numbers, sides for dice, and length and charset for strings. Names, emails, usernames, phone numbers, addresses and dates are realistic fake values for seeding test databases and mock APIs; they don't belong to real people. Phone numbers are valid US numbers in national format with no extension, and each address pairs its state with a ZIP code from that state's range, so both pass form validation. The Free plan returns one value per call; paid plans return up to 100 at a time and can attach an AI-generated face to each name.

Live Test Random Data 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/randomgenerator
curl "https://api.apiverve.com/v1/randomgenerator?type=number&count=10&includeAvatar=true&min=1&max=100&decimals=2&unique=true&sides=20&length=16&charset=alphanumeric" \
  -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
typeOptionalstringThe type of random data to generate
numberdicephonedatecoinuuidguidcolor+6
default number
countOptionalPremiumintegerThe number of random data to generate (1 to 100)
default 1 · range 1–100
includeAvatarOptionalPremiumbooleanInclude an AI-generated face avatar (only applies when type=name)
minOptionalnumberSmallest number to draw, inclusive (type=number). Defaults to 0
maxOptionalnumberLargest number to draw, inclusive (type=number). Defaults to 999999
default 999999
decimalsOptionalintegerDecimal places for type=number (0 to 10); 0 draws whole numbers
range 0–10
uniqueOptionalbooleanDraw without repeats (type=number with whole numbers, or type=dice)
sidesOptionalintegerNumber of sides on each die for type=dice (2 to 1000)
default 6 · range 2–1000
lengthOptionalintegerLength of each value for type=string (1 to 256)
default 16 · range 1–256
charsetOptionalstringCharacters for type=string
alphanumericalphanumerichexlowercaseuppercase
default alphanumeric

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": {
    "type": "phone",
    "count": 10,
    "data": [
      "967-950-4587",
      "792-611-7468 x1293",
      "(933) 311-9829",
      "389.357.7403 x793",
      "1-621-490-6394",
      "1-699-562-6833 x8558",
      "875.226.1530 x641",
      "744-991-0150 x1974",
      "1-393-784-0533 x15199",
      "954-876-6958 x0398"
    ]
  }
}

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
typestring"phone"The kind of random data generated (e.g. phone, name, email)
countnumber10Number of random values generated
dataarray[967-950-4587, ...]The generated random values; item shape depends on the requested type

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

Database Seeding
Populate staging tables with synthetic names, addresses, and phone numbers before running integration tests against newly deployed schemas.
UI Prototype Mocking
Front-end developers render placeholder user profiles with generated usernames, emails, and color names while building interface layouts.
Unique Key Generation
When verifying record deduplication pipelines, QA engineers inject generated UUIDs and timestamps into intake streams.
Game Mechanics Simulation
To test random drop rates and turn orders, game creators draw coin flips and dice rolls directly into prototype loops.

Other ways to use Random Data Generator

Set up Random Data 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?