Look up many companies by CUI
lookup_companiesLook up up to 100 Romanian companies by CUI in one call, returning one result per input in order with found status and company record.
Instructions
Look up many Romanian companies by CUI in one call (up to 100): one result per input, in input order, each with found true/false and the company record. Each row counts as one lookup; a batch larger than what is left today is refused whole. fields or compact trims each record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cuis | Yes | Up to 100 CUIs, as a list or one comma-separated string ('RO', spaces and leading zeros accepted, as in lookup_business). | |
| fields | No | Optional: keep only these company fields in each row, comma-separated (companyName,cui,county,risk; dotted paths such as risk.level work). Without it the full record is returned. | |
| compact | No | Optional: true keeps a short preset per row (name, CUI, county, city, legal form, risk level and what it did not check, phone, website, latest revenue and headcount, record url). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | What to cite: registry (ONRC snapshot date), financialYear (fiscal year of the figures), anaf (day of the ANAF data), snapshot, published, source. | |
| error | No | Set only when there is no answer (empty_query, invalid_cui, data_unavailable, plan_required ...); such a call is not counted. | |
| found | No | Rows that matched a firm. | |
| total | No | Number of input rows. | |
| errors | No | Rows that are input errors (empty, not a CUI, wrong control digit). | |
| fields | No | The company fields kept when fields or compact trimmed the rows. | |
| source | No | Data source: onrc (registry) or mfp (Ministry of Finance filings). | |
| message | No | A sentence for the caller. | |
| results | No | Per input: input, cui, found, and company (the record) or error/reason. | |
| metering | No | What the batch cost: rows, counted, notCounted (input-error rows are not counted) and the rule. | |
| notFound | No | Well-formed CUIs not in the snapshot. | |
| warnings | No | Notes on how the request was read (a clamped limit, a widened CAEN code, an ignored field). | |
| attribution | No | The credit line to keep when redistributing the data (CC BY 4.0). |