MockHero

gender

Identity

Generate 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_say

Parameters

ParameterDescription
valuesCustom values array
weightsProbability 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

Try it now

Generate gender data instantly in the playground.

Generate Gender + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free