DataRomania API
Quick start
#Three steps from account to your first JSON response:
Create a key
From My account → API (Business plan). The key starts with “dr_live_” and is shown only once.
Send the key in a header
The Authorization: Bearer <key> header, server-side — never in code that runs in the browser.
Read the response
UTF-8 JSON; the X-RateLimit-* and X-Quota-* headers tell you how much of the limit is left.
curl -H "Authorization: Bearer $DATAROMANIA_KEY" \
https://dataromania.ro/api/v1/firma/14837428Authentication
#Every request sends the key in the Authorization header. Keys are created and revoked from My account → API; we show them only once, when they are created, and keep only their fingerprint (SHA-256). Never put the key in code that runs in the browser.
Authorization: Bearer dr_live_…Limits
#50,000 requests per month (per account), at most 60 per minute (per key), up to 5 active keys. Every response tells you how much is left:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
X-Quota-Limit: 50000
X-Quota-Remaining: 49120Company profile
#GET/api/v1/firma/{cui}
Full profile: ONRC (status, registration, address, CAEN), ANAF tax status, the last 10 financial statements, verdict.
Parameters
- Parameter: cui
- Type: path · number
- Description: the company's registration code (CUI), with or without “RO”
curl -H "Authorization: Bearer $DATAROMANIA_KEY" \
https://dataromania.ro/api/v1/firma/14837428{
"cui": 14837428,
"denumire": "…",
"onrc": { "nr_reg_com": "J…", "activa": true, "stari": ["funcțiune"], "caen": "6201", … },
"anaf": { "verificat_la": "2026-10-19", "platitor_tva": true, "inactiv": false, "e_factura": true, … },
"bilanturi": [ { "an": 2025, "cifra_afaceri": 1250000, "profit_net": 180000, "angajati": 12, … } ],
"verdict": { "ton": "ok", "titlu": "Niciun semnal de risc în datele oficiale", "verificari": [ … ] }
}Search
#GET/api/v1/cautare?q={text}&judet={slug}&limita={1–25}
Search by name (active companies first, then by turnover).
Parameters
- Parameter: q
- Type: required · text
- Description: the name to search for, at least 2 characters
- Parameter: judet
- Type: optional · slug
- Description: limit to one county, e.g. “cluj”, “bucuresti”
- Parameter: limita
- Type: optional · 1–25
- Description: number of results (default 10)
curl -G -H "Authorization: Bearer $DATAROMANIA_KEY" \
--data-urlencode "q=automobile dacia" \
https://dataromania.ro/api/v1/cautare{
"q": "automobile dacia",
"rezultate": [
{ "cui": 160796, "denumire": "AUTOMOBILE DACIA SA", "judet": "Argeș", "activa": true, … }
]
}Financial statements
#GET/api/v1/bilanturi/{cui}
Annual financial statements only (MFP), the last 10 years, in chronological order.
Parameters
- Parameter: cui
- Type: path · number
- Description: the company's registration code (CUI), with or without “RO”
curl -H "Authorization: Bearer $DATAROMANIA_KEY" \
https://dataromania.ro/api/v1/bilanturi/160796{
"cui": 160796,
"bilanturi": [ { "an": 2016, … }, … ],
"sursa": "MFP — situații financiare anuale, data.gov.ro (CC BY 4.0)"
}Errors
#Errors always have the form { "eroare": { "cod", "mesaj" } }. Requests with invalid parameters (400) do not count towards the quota.
- Status: 400
- Codes: cui_invalid, q_lipsa, judet_invalid
- Meaning: invalid parameters (not counted towards the quota)
- Status: 401
- Codes: neautentificat, cheie_invalida
- Meaning: missing, invalid or revoked key
- Status: 403
- Codes: plan_fara_api
- Meaning: the account's plan does not include API access
- Status: 404
- Codes: negasit
- Meaning: no company with this CUI
- Status: 429
- Codes: limita_minut, cota_lunara
- Meaning: too many requests — see the Retry-After header
- Status: 503
- Codes: indisponibil, surse_indisponibile
- Meaning: API being configured or the official source is not responding
{ "eroare": { "cod": "cui_invalid", "mesaj": "…" } }Sources and freshness
#ONRC and MFP: the public datasets on data.gov.ro (CC BY 4.0), updated monthly. ANAF: the public PlatitorTvaRest v9 web service, queried on demand and cached for at most 24 hours (the anaf.verificat_la field). The verdict uses public rules, described on each company's page; it is not a credit assessment.