# Romania Company Register Scraper (ONRC + ANAF) (`studio-amba/onrc-ro-scraper`) Actor

Extract Romanian companies from the official trade register (ONRC open data) and the ANAF tax lookup: CUI, registration number, legal form, status, registration date, address, VAT status, CAEN code and e-Factura status. Search by name or look up by CUI. No login, no API key.

- **URL**: https://apify.com/studio-amba/onrc-ro-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 result scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Romania Company Register Scraper (ONRC + ANAF)

Extract Romanian companies from two official sources in one run: the trade register open data of ONRC (Oficiul Național al Registrului Comerțului) and the public company lookup of ANAF, the Romanian tax authority. Each record has the CUI, trade register number, EUID, legal form, ONRC status, registration date and registered address, plus VAT status, VAT number, CAEN code, tax-inactive flag and e-Factura status from ANAF. The register covers about 4.2 million entries: companies (SRL, SA), sole traders (PFA, II, IF) and deleted entities. No login, no API key, no proxy.

### How to scrape Romania company register data

There are two ways to use the actor.

#### Look up companies by CUI

Put one or more CUIs (cod unic de înregistrare, the Romanian fiscal code) in **CUIs**, with or without the `RO` prefix. Example: `14399840` or `RO14399840`. The actor asks ANAF directly and a run takes a few seconds. This is the fastest way to check a list of known companies, for example for KYB, supplier onboarding or invoice checks.

#### Search the trade register

Fill in one or more of these filters. The actor reads the full ONRC register and returns the matches.

- **Company name contains** matches part of the name, case-insensitive, with or without diacritics. `bucuresti` matches `Bucureşti`. Results are ranked: names that start with your text first, then names where it is a whole word, and active companies before deleted ones.
- **County (județ)** and **Locality contains** filter on the registered office: `Cluj`, `Timis`, `Sectorul 1`.
- **Legal forms** takes the ONRC abbreviations: `SRL`, `SA`, `PFA`, `II`, `IF`, `SNC`.
- **Only active companies** keeps companies with ONRC status `funcțiune` (operating).
- **ONRC status** takes a status name or code: `radiata` (deleted), `insolventa`, `faliment`, `dizolvare`, `lichidare`, `1048`.
- **Registered on or after** and **Registered on or before** take a date in the form `YYYY-MM-DD`.

A register search takes 1 to 3 minutes, because the full register is read on every run. **Add ANAF tax data to register results** is on by default and adds the ANAF fields to every result that has a CUI.

#### Limit the size of a run

**Max results** is a hard cap between 1 and 50,000.

### What data does the Romania Company Register Scraper extract?

| Field | Description |
|---|---|
| `name` | Registered company name |
| `cui` | CUI (fiscal code), without the RO prefix |
| `registrationNumber` | Trade register number, for example J40/1116/1991 or J2002000372404 |
| `euid` | European Unique Identifier, for example ROONRC.J40/1116/1991 |
| `legalForm` | Legal form, for example SRL, SA, PFA |
| `registeredAt` | Registration date, YYYY-MM-DD |
| `isActive` | True when the company operates |
| `statusCodes` / `statuses` | ONRC status codes and names, for example 1048 funcțiune |
| `address`, `county`, `locality`, `street`, `streetNumber`, `postalCode` | Registered office |
| `website` | Website as filed with ONRC, where present |
| `vatRegistered`, `vatNumber`, `vatSince` | VAT registration (ANAF) |
| `vatOnCollection`, `splitVat` | VAT on collection and split VAT (ANAF) |
| `taxInactive`, `taxInactiveSince`, `lastTaxReactivationAt`, `deregisteredAt` | Tax status (ANAF) |
| `eInvoiceRegistered` | Listed in the RO e-Factura register (ANAF) |
| `caenCode` | Main CAEN activity code (ANAF) |
| `phone` | Phone number declared to ANAF, where present |
| `taxOffice`, `fiscalAddress`, `registeredOfficeAddress` | Tax office and addresses (ANAF) |
| `dataSource` | `onrc` for register results, `anaf` for CUI lookups |
| `source` | Data source and licence attribution |
| `scrapedAt` | ISO timestamp of the scrape |

### Example output

```json
{
  "name": "DANTE INTERNATIONAL SA",
  "cui": "14399840",
  "registrationNumber": "J2002000372404",
  "legalForm": "SOCIETATE COMERCIALĂ PE ACŢIUNI",
  "registeredAt": "2002-01-23",
  "isActive": true,
  "address": "Şos. Virtuţii, 148, spatiul E47, Sector 6 Mun. Bucureşti, MUNICIPIUL BUCUREŞTI",
  "county": "MUNICIPIUL BUCUREŞTI",
  "locality": "Sector 6 Mun. Bucureşti",
  "vatRegistered": true,
  "vatNumber": "RO14399840",
  "vatSince": "2002-02-01",
  "vatOnCollection": false,
  "splitVat": false,
  "taxInactive": false,
  "caenCode": "4754",
  "taxOffice": "Direcţia Generală de Administrare a Marilor Contribuabili",
  "anafRegistrationStatus": "INREGISTRAT din data 29.08.2006",
  "country": "RO",
  "dataSource": "anaf",
  "source": "ANAF public VAT payer web service (webservicesp.anaf.ro)",
  "scrapedAt": "2026-11-14T11:05:20.000Z"
}
```

### Input examples

Look up two companies by CUI:

```json
{ "cuis": ["14399840", "RO1590082"] }
```

Active SRLs in Cluj registered since October 2026:

```json
{
  "onlyActive": true,
  "county": "Cluj",
  "legalForms": ["SRL"],
  "registeredAfter": "2026-10-01",
  "maxResults": 1000
}
```

Companies in insolvency in Timiș:

```json
{ "statuses": ["insolventa"], "county": "Timis", "maxResults": 5000 }
```

### Use cases

- KYB and supplier checks: legal status, VAT status and tax-inactive flag in one row.
- Lead lists of new Romanian companies by county, legal form and registration date.
- Monitoring companies that enter insolvency, dissolution or deletion.
- Matching a customer list to CUIs and VAT numbers before invoicing.

### How much does it cost?

The actor is billed per result: a small fee per run start and a fee per company returned, less on higher Apify plans. Maximum results per run: 50,000 (set by **Max results**). A CUI lookup takes a few seconds. A register search reads about 4.2 million entries and takes 1 to 3 minutes of compute, whatever the number of results. The usage cost of a run settles after the run has SUCCEEDED, so it does not show on a run that is still in progress.

### Data source and limits

- **ONRC**: the open data company file published by ONRC on data.gov.ro under CC BY 4.0. ONRC publishes a new snapshot about every six weeks. The `onrcDataset` field names the snapshot a result comes from, for example `firme-04-11-2026`. A company registered after that date is not in the register search yet, but a CUI lookup finds it through ANAF.
- **ANAF**: the public VAT payer web service, queried live on every run. ANAF accepts 100 CUIs per request and one request per second, so 1,000 CUIs take about 10 seconds.
- Entries without a CUI (mostly older sole traders) have no ANAF data.
- The register file does not include financial statements or shareholders. Legal representatives are published by ONRC but are not returned by this actor.

### FAQ

**Is this data official?**
Yes. Register data comes from ONRC and tax data from ANAF.

**Can I use the data commercially?**
The ONRC dataset is published under Creative Commons Attribution 4.0, which allows commercial use with attribution. Each record carries a `source` field with the attribution.

**Why is a company I just registered missing from a name search?**
The ONRC snapshot is published about every six weeks. Look the company up by CUI: ANAF data is live.

**Why did my run return nothing?**
No company matches all filters. Filters combine with AND, so remove one and run again.

**Does it need a proxy?**
No.

### Related actors

- [European Company Search](https://apify.com/studio-amba/european-company-search)
- [Poland KRS Scraper](https://apify.com/studio-amba/krs-scraper)
- [Slovakia Business Register Scraper](https://apify.com/studio-amba/orsr-scraper)
- [Ireland Company Register Scraper](https://apify.com/studio-amba/cro-ie-scraper)

### Support

If a field is empty that you expect to be filled, open an issue on the actor page with the run link.

# Actor input Schema

## `cuis` (type: `array`):

Look up companies by CUI (cod unic de inregistrare), with or without the RO prefix. Example: 14399840 or RO14399840. With only CUIs filled in, the run asks ANAF directly and takes a few seconds. Up to 5,000 CUIs per run.

## `searchQuery` (type: `string`):

Search the ONRC trade register by name, case-insensitive, diacritics optional ('bucuresti' matches 'Bucureşti'). Results are ranked: names that start with the text first, active companies first. Example: 'Dante International', 'Petrom', 'Dedeman'. A search reads the full register file and takes 2 to 4 minutes.

## `county` (type: `string`):

Keep only companies whose registered office is in this county, diacritics optional. Examples: 'Cluj', 'Timis', 'Bucuresti', 'Iasi'.

## `locality` (type: `string`):

Keep only companies whose locality contains this text, diacritics optional. Examples: 'Cluj-Napoca', 'Sectorul 1', 'Brasov'.

## `legalForms` (type: `array`):

Keep only these legal forms, as ONRC writes them. Common values: SRL, SA, PFA, II, IF, SNC, SCS, OC1, SCA.

## `onlyActive` (type: `boolean`):

Off by default. When on, only companies with ONRC status 'funcțiune' (operating) are returned.

## `statuses` (type: `array`):

Keep only companies with one of these ONRC statuses, by name (diacritics optional) or code. Examples: 'functiune' (1048), 'radiata' (deleted, 1084), 'insolventa', 'faliment', 'dizolvare', 'lichidare', 'intrerupere temporara'.

## `registeredAfter` (type: `string`):

Keep only companies registered on or after this date, format YYYY-MM-DD. Example: 2026-01-01 for new companies.

## `registeredBefore` (type: `string`):

Keep only companies registered on or before this date, format YYYY-MM-DD.

## `enrichWithAnaf` (type: `boolean`):

On by default. Adds VAT status, VAT number, CAEN code, phone, fiscal address, tax-inactive flag and e-Factura status from ANAF to every register result that has a CUI. Turn off for faster large exports.

## `maxResults` (type: `integer`):

Hard cap on the number of companies returned (1 to 50,000). The cost of a run is this number times the per-result price.

## `proxyConfiguration` (type: `object`):

Not required. data.gov.ro and ANAF serve any IP. The field is accepted so that saved inputs from other actors keep working.

## Actor input object example

```json
{
  "cuis": [
    "14399840",
    "1590082"
  ],
  "onlyActive": false,
  "enrichWithAnaf": true,
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "cuis": [
        "14399840",
        "1590082"
    ],
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/onrc-ro-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "cuis": [
        "14399840",
        "1590082",
    ],
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/onrc-ro-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "cuis": [
    "14399840",
    "1590082"
  ],
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call studio-amba/onrc-ro-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/onrc-ro-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/pdDypAD2MLLfLxF4W/builds/QfaNex0S8kDu8XLrL/openapi.json
