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_code | string | Yes | ISO 3166-1 alpha-2 country code (e.g., "RO", "BG") |
| county_code | string | Yes | County/state code (e.g., "AB", "AR") - Example: ?country_code=RO&county_code=AB |
Response Codes
| Code | Status | Description |
|---|---|---|
| 200 | Success | Localities list retrieved |
| 400 | Bad Request | Invalid or missing parameters |
| 401 | Unauthorized | Invalid or missing API key |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Internal Server Error | Server error occurred |
Response Format
| Field | Type | Description |
|---|---|---|
| id | integer | Unique locality identifier |
| name | string | Locality/city name |
| county_code | string | County code the locality belongs to |
| county_name | string | County 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
