gender
IdentityGenerate gender values with fully configurable options and probability weights. Supports inclusive defaults (male, female, non-binary, prefer_not_to_say) or custom values.
Example Outputs
malefemalenon-binaryprefer_not_to_sayParameters
| Parameter | Description |
|---|---|
| values | Custom values array |
| weights | Probability weights for each value |
API Usage
Send a POST request to generate gender 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": "gender",
"type": "gender",
"params": {
"values": [
"active",
"inactive",
"pending"
]
}
}
]
}
]
}'Common Use Cases
- User profile seeding
- Demographic data testing
- Form dropdown testing
- Analytics data generation
Quick Info
- Field Type
- gender
- Category
- Identity
- Parameters
- 2 parameters
- Output Format
- JSON, CSV, SQL
Related Types
Generate Gender + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.