/nomenclatures/{list}gratuitNomenclatoare
Județe, localități SIRUTA (?county=CJ&q=…) sau clasele CAEN (?q=…).
listobligatoriucountieslocalitiescaenstringcountyopționalqopționalpageopționalperPageopționalcurl \
-H "X-API-Key: $INFOCOMP_KEY" \
"https://api.infocomp.ro/api/client/v1/nomenclatures/counties?perPage=2"const res = await fetch("https://api.infocomp.ro/api/client/v1/nomenclatures/counties?perPage=2", {
headers: { "X-API-Key": process.env.INFOCOMP_KEY },
});
const { data, meta } = await res.json();$ch = curl_init('https://api.infocomp.ro/api/client/v1/nomenclatures/counties?perPage=2');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('INFOCOMP_KEY')],
]);
$result = json_decode(curl_exec($ch), true);
$data = $result['data'];import os, requests
r = requests.get(
"https://api.infocomp.ro/api/client/v1/nomenclatures/counties?perPage=2",
headers={"X-API-Key": os.environ["INFOCOMP_KEY"]},
)
data = r.json()["data"]{
"data": [
{
"code": "AB",
"name": "Alba",
"attributes": {
"sirutaCode": null
},
"retired": false
},
{
"code": "AR",
"name": "Arad",
"attributes": {
"sirutaCode": null
},
"retired": false
}
],
"meta": {
"total": 42,
"page": 1,
"perPage": 2
}
}