Map & discovery · Map
get
/v1/map/citiesList distinct cities in a province
Public
Returns city names for places with at least one non-duplicate entity in the given country and province. Public: no credential needed. A Firebase ID token or an `fw_` key with `map:read` is optional (server-side partners); a key is held to 120 requests a minute and must be valid — an unknown or revoked key is a 401, a key without `map:read` a 403.
Parameters
countrystringRequiredquery
Country. Canonical is the ISO 3166-1 alpha-2 code ('CA'); matching is tolerant, so 'Canada' is equivalent.
provincestringRequiredquery
Province/state. Canonical is the ISO 3166-2 subdivision code ('NS'); matching is tolerant, so 'Nova Scotia' is equivalent.
Responses
200Success
400Validation error
401Unauthorized — an `fw_` key that is unknown or revoked (a bad Firebase ID token is treated as anonymous, not rejected).
403The `fw_` key lacks the `map:read` scope (`insufficient_scope`).
429Rate limit exceeded (`rate_limit_exceeded`): 120 requests a minute per `fw_` key across the map reads, or the 600/min per-IP flood gate. Wait `Retry-After` seconds.
500Internal error
Request
curl https://api.foodweb.network/v1/map/cities?country=CA&province=NSResponse · 200
{
"cities": [
"string"
]
}