When calling the endpoint:
POST https://countriesnow.space/api/v0.1/countries/state/cities
with:
Country: France
State: Provence-Alpes-Côte d’Azur
Expected Result
The API should return only cities, for example:
Actual Result
The API returns neighborhoods or arrondissements of Marseille instead of cities.
Impact
This breaks the hierarchy:
COUNTRY → REGION → CITY
It makes it difficult to build a correct location selector.
Suggestion
Add filtering or provide an option/flag that returns only cities.
When calling the endpoint:
POST https://countriesnow.space/api/v0.1/countries/state/cities
with:
Country: France
State: Provence-Alpes-Côte d’Azur
Expected Result
The API should return only cities, for example:
Actual Result
The API returns neighborhoods or arrondissements of Marseille instead of cities.
Impact
This breaks the hierarchy:
COUNTRY → REGION → CITY
It makes it difficult to build a correct location selector.
Suggestion
Add filtering or provide an option/flag that returns only cities.