Skip to content

API returns neighborhoods instead of cities #242

Description

@wane-merlin

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:

  • Marseille
  • Nice
  • Toulon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions