NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Random Data Generator API

GET

Seed test suites and staging databases with realistic mock data.

Random Data Generator is a random data API that produces random numbers in any range (whole or decimal, with or without repeats), dice of any size, coin flips, booleans, random strings, UUIDs, and mock names, emails, addresses and dates for application testing. Numbers, dice, coins, booleans and strings come from a cryptographically secure generator. Paid plans can generate batches up to 100 items.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/randomgenerator?type=phone
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "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"
    ]
  }
}

About the Random Data Generator API

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.

What people use it for

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.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Random Data Generator

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Random Data Generator API.

Read the docs →
What types of mock data can I generate?
Fourteen types: numbers, dice rolls, coin flips, booleans, random strings, UUIDs (uuid or guid), color names, phone numbers, names, email addresses, usernames, street addresses and dates. Call the endpoint with list=types to get the list programmatically.
Can I generate profile photos alongside user names?
Yes, on paid plans. When setting the type to name, you can enable the avatar parameter to receive an AI-generated face image with each record. This option applies specifically to name requests and is ignored on other data types.
What is the maximum number of items returned per request?
The Free plan returns 1 item per call; on paid plans, the count parameter accepts values between 1 and 100 per call. If your application requires larger datasets, you will need to make multiple requests.
Is it random enough for a prize draw or a lottery pick?
Yes. Numbers, dice, coins, booleans and strings are drawn from a cryptographically secure generator. Set unique=true to draw whole numbers or dice faces without repeats, so picking 6 different numbers from 1 to 49 is one call with min=1, max=49 and count=6 (count above 1 needs a paid plan).
What range do random dates cover?
Dates are drawn from the past year and returned as ISO 8601 timestamps. There is no parameter to change the range; for a date in a specific window, draw a number between two Unix timestamps with type=number and convert it.
Can I request batches or AI avatars on the Free plan?
No, batch generation and profile avatars require a paid plan. Specifying a custom count up to 100 items or enabling AI-generated face avatars are premium features available on Starter and higher. The Free plan is limited to single-item requests without avatars.
Which plan fits 25,000 mock data requests a month?
The Starter plan easily covers that volume. Each request costs 2 credits, so 25,000 calls use 50,000 of Starter's 200,000 credits, working out to about $0.30 per 1,000 calls. The Free plan provides 100 calls per month for testing.

Ready to build with Random Data Generator? Start with 200 free credits — one key unlocks all 404+ APIs.

Explore the catalog

404+ APIs on the same key and the same response shape.

Browse all APIs