Endpoint
Authentication
| Header | Required | Value |
|---|---|---|
X-API-Key | Yes | Your API key (bun_...) |
Content-Type | Yes | application/json |
Overview
Generate realistic, locale-aware fake data for testing and development. Choose from seven schema types: people, companies, addresses, internet identities, finance details, phone numbers, and dates. Each record is a full object with multiple fields. Request up to 50 records in a single call with optional locale support for region-specific data.Use cases
- Seed development and staging databases with realistic test data
- Generate sample data for demos and prototypes
- Populate automated test fixtures without storing PII
- Create mock API responses for frontend development
Details
Supported types:person, company, address, internet, finance, phone, date. Each type returns an array of objects (not plain strings). The locale parameter accepts en, pt-BR, or es. Count defaults to 1 and is capped at 50.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
type | string | No | Schema type to generate (default: person). One of: person, company, address, internet, finance, phone, date |
count | number | No | Number of records to generate (default: 1, max: 50) |
locale | string | No | Locale for region-specific data: en, pt-BR, or es (default: en) |
Example
Response
200 OK
| Field | Type | Description |
|---|---|---|
type | string | The requested schema type |
locale | string | The locale used to generate the data |
count | number | Number of records returned |
data | object[] | Array of generated records; the shape of each object depends on type (see below) |
record | object | Convenience alias for data[0] — the first generated record |
| Type | Fields |
|---|---|
person | first_name, last_name, full_name, email, phone, avatar, bio |
company | name, catch_phrase, industry, email, website, phone |
address | street, city, state, country, zip, lat, lon |
internet | username, email, password, url, ip, mac, user_agent |
finance | account, amount, currency, iban, bic, credit_card |
phone | number, imei |
date | past, future, recent, birth_date |

