Mock Data Generator API: Realistic Test Fixtures in One Call
Hard-coded fixtures go stale and hand-writing fake users is tedious. Generate realistic test data on demand instead.
Pass a count and an optional seed and get back an array of realistic records as JSON. The same seed always returns the same data, so your tests stay deterministic.
Generate fake users
curl -G "https://mock-data-generator2.p.rapidapi.com/user" \
-d "count=2" -d "seed=12345" \
-H "X-RapidAPI-Key: YOUR_KEY" \
-H "X-RapidAPI-Host: mock-data-generator2.p.rapidapi.com"const res = await fetch(
"https://mock-data-generator2.p.rapidapi.com/user?count=2&seed=12345",
{ headers: {
"X-RapidAPI-Key": "YOUR_KEY",
"X-RapidAPI-Host": "mock-data-generator2.p.rapidapi.com",
} }
);
const users = await res.json();Make fixtures reproducible with a seed
Pass the same seed and you get byte-identical output every time — ideal for snapshot tests, reproducible demos, and seeding a dev database. Omit the seed for fresh random data on each call.
Beyond users
The listing generates other record types the same way, all in-process with no third-party calls, so latency is near zero and nothing is stored. The data is synthetic — no real personal information is involved.
Run it in production
Mock Data Generator has a permanent free tier — 1,000 requests a month, no credit card. Paid plans start at $5/month for 100,000 requests.
FAQ
Is the seed deterministic across calls?
Yes. The same seed and count return identical records, which keeps tests and demos stable.
How many records can I request at once?
Set count for the batch size; the records come back as a single JSON array.
Is the data real?
No. It is synthetic data generated locally; no real personal data is used.