🧪

Mock Data API

Generate realistic fake datasets from a schema: names, emails, addresses, dates, enums, and more. Built for frontend teams, QA automation, load tests, and demos.

API Endpoint

POST /v1/mock-data

Parameters

Name Type Required Description
schemaobjectYesField map. Example: {"id":"uuid","email":"email","role":{"type":"enum","values":["admin","user"]}}
countintegerNoNumber of rows (1-1000). Default: 10
localestringNoFaker locale (e.g. en_US, es_ES)
seedintegerNoDeterministic generation for reproducible test runs

Quick Example

curl -X POST "https://api.toolcenter.dev/v1/mock-data" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "count": 3,
    "seed": 42,
    "schema": {
      "id": "uuid",
      "name": "fullName",
      "email": "email",
      "role": {"type":"enum","values":["admin","user"]},
      "signup_date": {"type":"date","params":["Y-m-d"]}
    }
  }'

Features

  • 40+ built-in data types (name, email, company, geo, finance, dates)
  • Schema-driven generation with nested rules and method params
  • Deterministic mode using seed for stable CI tests
  • Enum, sequence, literal values, and nullable field control
  • Ready for frontend mocks, fixtures, load tests, and synthetic data seeding

Use Cases

Frontend development before backend is ready

E2E automation with fresh test fixtures every run

Load/performance testing with large randomized datasets

Synthetic demo data for sales and product demos

Start Using Mock Data API for Free

500 free API calls per month. No credit card required.

Get Started Free