Direct API

Localities

Get cities and localities within a county

GET
/locations/localities

Get cities and localities within a specific county for shipping address selection

Parameters

Name Type Required Description
country_codestringYesISO 3166-1 alpha-2 country code (e.g., "RO", "BG")
county_codestringYesCounty/state code (e.g., "AB", "AR") - Example: ?country_code=RO&county_code=AB

Response Codes

Code Status Description
200SuccessLocalities list retrieved
400Bad RequestInvalid or missing parameters
401UnauthorizedInvalid or missing API key
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer error occurred

Response Format

Field Type Description
idintegerUnique locality identifier
namestringLocality/city name
county_codestringCounty code the locality belongs to
county_namestringCounty name the locality belongs to

Response Example

RESPONSEJSON
[
  {
    "id": 1,
    "name": "Abrud",
    "county_code": "AB",
    "county_name": "Alba"
  },
  {
    "id": 2,
    "name": "Abrud-Sat",
    "county_code": "AB",
    "county_name": "Alba"
  }
]

Complete API Reference

For interactive testing and additional technical details, visit our complete Swagger documentation.

View in Swagger Documentation

Localities Data

Complete database of Romanian localities (CSV & XLSX)

Download Localities