Județe și localități
Search Romanian localities (localități)
GRATUIT fără cheie necesară
MCP: search_cities
GET https://api.datero.ro/v1/cities
Romanian localities — municipalities, towns, communes, villages, Bucharest sectors — with type, county, ANAF and SIRUTA codes. Filter by "q" (name, diacritics-insensitive) and/or "county" (county ids). Free of charge.
Parametri
| Nume | În | Descriere |
|---|---|---|
q | query | Locality name, fuzzy (e.g. "cluj napoca"). |
id | query | Exact ids, comma-separated. |
county | query | County ids, comma-separated (see /v1/counties). |
limit | query | 1–100, default 25. |
offset | query | 0–999999, default 0. |
Exemple de răspuns
Căutare localitate după nume
Răspunsul include tipul localității, județul și codurile ANAF/SIRUTA.
curl "https://api.datero.ro/v1/cities?q=cluj-napoca&limit=1" {
"totalCount": 1,
"limit": 1,
"offset": 0,
"items": [
{
"id": 115,
"name": "Cluj-Napoca",
"slug": "cluj-napoca",
"type": "municipality",
"countyId": 12,
"countyName": "CLUJ",
"countyCode": "CJ",
"anafCode": 103,
"sirutaCode": 54975
}
]
} Același endpoint, prin MCP
Agenții AI pot apela această operație ca tool-ul search_cities
pe serverul MCP Datero — aceeași validare, același cost, același contor de credite.
curl "https://api.datero.ro/v1/cities?q=cluj-napoca&limit=1" Încearcă live
direct din browser