RNDCAPI documentation Request access

Guides

Identifying the NIS

Every document is linked to a building through its NIS. Here you find the building's NIS; if the building is not in the registry yet, declare it and get its NIS right away.

  1. Search for the buildingby cadastre, point, area or address
  2. Not found? Declare its geometryPOST /referential/insert/cladire/
  • Searching needs read access only. Declaring a building’s geometry needs an account approved with Read + write access; without it you get 403.
  • Nothing found is not an error. A search with no results returns 200 with count: 0 and mesaj: “Nu s-a putut identifica niciun NIS.” (no NIS could be identified).

1. Search for the building

Every criterion returns the list of matching NIS values. A plot can hold several buildings and a polygon can touch several, so treat the response as a list.

Cadastral number

  • nr_cadastral_imobil: the plot (land); returns every building on it.
  • nr_cadastral_cladire: the building (e.g. 53288-C1).
  • Exact match; spaces, letter case and leading zeros are ignored.
  • Cadastral numbers are unique only within a UAT: add siruta_uat.
bash
curl "http://registrulcladirilor.gov.ro/rndc/api/v1/referential/cladiri/?nr_cadastral_imobil=53288&siruta_uat=179132" \
  -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"

curl "http://registrulcladirilor.gov.ro/rndc/api/v1/referential/cladiri/?nr_cadastral_cladire=53288-C1&siruta_uat=179132" \
  -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"

Point

The building that contains the point. With toleranta (metres) you also get the nearby buildings, ordered by distance. Coordinates can be in Stereo70 (srid=3844, default) or WGS84 (srid=4326, lon/lat).

bash
curl "http://registrulcladirilor.gov.ro/rndc/api/v1/referential/cladiri/la-punct/?x=26.1025&y=44.4268&srid=4326&toleranta=5" \
  -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"

Area (polygon)

Every building whose footprint intersects the polygon. The polygon goes in the body, as GeoJSON or WKT.

  • Only Polygon or MultiPolygon, with no crossing edges (GEOM_004).
  • Area and number of vertices are capped (SEARCH_007, SEARCH_006).
  • Paging (page_size, cursor) is in the query string; request the next page with a POST to next, with the same body.
POST /referential/cladiri/in-poligon/
{
  "srid": 4326,
  "poligon": {
    "type": "Polygon",
    "coordinates": [[[26.1020, 44.4265], [26.1030, 44.4265],
                     [26.1030, 44.4272], [26.1020, 44.4272],
                     [26.1020, 44.4265]]]
  }
}

Address

strada and, optionally, numar (exact), together with at least one of siruta_judet, siruta_uat, siruta_localitate. A street without a SIRUTA code returns SEARCH_001.

The street is matched word by word, in any order, ignoring diacritics and letter case; “Str.”, “Strada”, “Bd.” are ignored. biruintei, Str. Biruinţei and BIRUINȚEI all find “Strada Biruinței”.

It only finds buildings that have their address linked in the registry. If the address finds nothing, try the point or the area.

bash
curl -G "http://registrulcladirilor.gov.ro/rndc/api/v1/referential/cladiri/" \
  --data-urlencode "strada=Mihai Viteazu" \
  --data-urlencode "numar=12" \
  --data-urlencode "siruta_uat=54975" \
  -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"

The response

The same shape for every criterion: count, results and, for long lists, next. From each card you need nis; href leads to the building detail.

response
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [{
    "nis": "ABCDEF-01",
    "nis_extins": "ABCDEF-01-A",
    "nr_cadastral_cladire": "53288-C1",
    "nr_cadastral_imobil": "53288",
    "adresa_principala": "Strada Mihai Viteazu 12",
    "siruta_uat": 179132,
    "href": "/api/v1/referential/cladire/ABCDEF-01/"
  }]
}

{"count": 0, "next": null, "previous": null, "results": [],
 "mesaj": "Nu s-a putut identifica niciun NIS."}

2. Declare the building’s geometry if it does not exist

Note: declaring the geometry does not mean that ANCPI has validated it. The building is recorded in the registry as “not validated” so that documents can be linked to it. ANCPI later validates or corrects the geometry, and the building’s status and colour on the map change accordingly.

Send the building footprint and the administrative unit. The response (201) contains nis; the building file is opened in the same call, so the NIS can be used immediately.

  • geometrie: the building polygon, GeoJSON or WKT, in Stereo70 (EPSG:3844, metres). Coordinates in degrees are refused (GEOM_009).
  • siruta_judet, siruta_uat are required; siruta_localitate, adrese, an and the cadastral numbers are optional.
  • The geometry must fall inside the declared UAT (GEOM_008).
  • The declared building is not validated (status B) until the registry confirms it. The validat field only applies to the authoritative source (ANCPI).
  • If it overlaps an existing building you get GEOM_007, with that building's NIS in the message: the building already exists, use that NIS.
POST /referential/insert/cladire/
{
  "geometrie": "POLYGON((588000 325000, 588020 325000, 588020 325015, 588000 325015, 588000 325000))",
  "existent": true,
  "siruta_judet": 403,
  "siruta_uat": 179132,
  "nr_cadastral_imobil": "53288",
  "adrese": [{"strada": "Mihai Viteazu", "nr_administrativ": "12"}]
}

→ 201
{"nis": "ABCDEF-01", "nis_extins": "ABCDEF-01-A"}

With the NIS found or declared, the path to the document reaching the building file is in Sending a document.