date_of_birth
IdentityGenerate realistic dates of birth within configurable age ranges. Produces ISO dates that make sense — no 5-year-old account holders or 200-year-old users.
Example Outputs
1994-07-121988-03-222001-11-051975-08-30Parameters
| Parameter | Description |
|---|---|
| min_age | Minimum age (default 18) |
| max_age | Maximum age (default 80) |
API Usage
Send a POST request to generate date of birth data:
curl -X POST https://mockhero.dev/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tables": [
{
"name": "example",
"count": 5,
"fields": [
{
"name": "date_of_birth",
"type": "date_of_birth"
}
]
}
]
}'Common Use Cases
- User registration testing
- Age verification testing
- Insurance form seeding
- Healthcare data generation
Quick Info
- Field Type
- date_of_birth
- Category
- Identity
- Parameters
- 2 parameters
- Output Format
- JSON, CSV, SQL
Related Types
Generate Date of Birth + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.