city
LocationGenerate real city names appropriate for the target locale. German locale returns Berlin, Munich, Hamburg — not random US cities. Locale-aware by default.
Example Outputs
BerlinTokyoMumbaiTorontoStockholmAPI Usage
Send a POST request to generate city 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": "city",
"type": "city"
}
]
}
]
}'Common Use Cases
- Address form seeding
- Location-based app testing
- Shipping address generation
- Store locator testing
Quick Info
- Field Type
- city
- Category
- Location
- Parameters
- None required
- Output Format
- JSON, CSV, SQL
Related Types
Generate City + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.