# Romanian Company Financials by CAEN & County + Benchmarks (`dontknow07/ro-company-financials`) Actor

Every Romanian company's official annual figures (turnover, profit, employees, assets, debts) filtered by CAEN industry code and county, with growth vs last year and percentile rank against its sector. Official Ministry of Finance + ONRC open data (CC BY 4.0).

- **URL**: https://apify.com/dontknow07/ro-company-financials.md
- **Developed by:** [Paul Purcaras](https://apify.com/dontknow07) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 companies

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

## Romanian Company Financials by CAEN & County, with Sector Benchmarks

Find Romanian companies by **industry (CAEN code)** and **county**, with their official annual figures
and how each one ranks against its sector. One row per company: turnover, net profit or loss, employees,
assets, debts, equity, growth vs the previous year, net margin, revenue per employee, and the company's
**percentile in its CAEN sector** (whole country or its county).

Data comes from the Romanian **Ministry of Finance** annual financial statements and the **ONRC trade
register**, both published as open data on data.gov.ro under **CC BY 4.0**. No scraping, no login, no
proxies.

*Cauți firme după cod CAEN și județ, cu cifra de afaceri, profitul, numărul de salariați și poziția față
de media sectorului? Acest actor le scoate din bilanțurile publicate de Ministerul Finanțelor.*

### What you can do with it

- **Build B2B lead lists**: all software companies in Cluj with 10-200 employees and a profit, sorted by turnover.
- **Market sizing**: how many construction firms (CAEN 4120) operate in Iasi, and what is the median turnover?
- **Competitor benchmarking**: where does a company stand in its sector (turnover, margin, revenue per employee)?
- **Credit and supplier checks**: debts, equity, debt-to-assets and last year's trend for a list of CUIs.
- **Investment and M\&A screening**: fast growers (`sortBy: turnoverGrowthPct`) above a turnover floor.

### Input

| Field | Example | Notes |
|---|---|---|
| `caenCodes` | `["6201", "6210"]` | Codes or prefixes (`62`, `41`). Filings mix CAEN Rev.2 and Rev.3, so list both for a sector (software: 6201 Rev.2, 6210 Rev.3). |
| `counties` | `["Cluj", "B"]` | Names or codes; Bucharest is `B`. Empty = whole country. |
| `cuis` | `["RO9533457"]` | Optional: only these companies. |
| `year` | `2025` | Empty = latest published year (2019 onwards). |
| `minTurnover` / `maxTurnover` | `1000000` | RON. |
| `minEmployees` / `maxEmployees` | `10` | Average employees in the year. |
| `onlyProfitable` | `true` | Net profit > 0. |
| `legalForms` | `["SRL", "SA"]` | Natural persons (PFA, II, IF) are never included. |
| `includePreviousYear` | `true` | Adds last year's turnover, result, employees and growth %. |
| `benchmarkScope` | `national` / `county` | Peer group for medians and percentiles. |
| `sortBy` | `turnover` | Also `netResult`, `employees`, `turnoverGrowthPct`, `netMarginPct`, `totalAssets`. |
| `maxItems` | `1000` | You pay per company returned. |
| `useCache` | `true` | See "Speed and cache". |

```json
{
  "caenCodes": ["6201", "6210"],
  "counties": ["Cluj"],
  "minEmployees": 10,
  "onlyProfitable": true,
  "maxItems": 200
}
```

### Output

One item per company (values in RON). Shortened example from a real run:

```json
{
  "cui": 9533457,
  "name": "ENDAVA ROMANIA SRL",
  "legalForm": "SRL",
  "registrationNumber": "J1997001110126",
  "registeredOn": "1997-06-20",
  "county": "Cluj",
  "locality": "Cluj-Napoca",
  "caen": "6210",
  "caenNameRev3": "Activități de realizare a soft-ului la comandă (software orientat client)",
  "year": 2025,
  "turnover": 1179513721,
  "netResult": 117032117,
  "employees": 4023,
  "totalAssets": 817403182,
  "debts": 160976950,
  "equity": 656418103,
  "netMarginPct": 9.92,
  "revenuePerEmployee": 293193,
  "debtToAssetsPct": 19.69,
  "prevTurnover": 1264980041,
  "turnoverGrowthPct": -6.76,
  "peerScope": "national",
  "peerCount": 8875,
  "sectorMedianTurnover": 328281,
  "turnoverPercentile": 100,
  "netMarginPercentile": 18.2,
  "source": "Source: Ministerul Finantelor ... data.gov.ro, CC BY 4.0 ..."
}
```

All fields: `cui, name, legalForm, registrationNumber, euid, registeredOn, county, countyCode, locality,
website, caen, caenNameRev3, caenNameRev2, year, fixedAssets, currentAssets, inventories, receivables,
cashAndBank, prepaidExpenses, debts, deferredIncome, provisions, equity, subscribedCapital, stateCapital,
turnover, totalRevenue, totalExpenses, grossProfit, grossLoss, netProfit, netLoss, employees, netResult,
grossResult, totalAssets, netMarginPct, revenuePerEmployee, debtToAssetsPct, debtToEquity, prevTurnover,
prevNetResult, prevEmployees, turnoverGrowthPct, peerScope, peerCount, sectorMedianTurnover,
sectorMedianNetMarginPct, sectorMedianEmployees, sectorMedianRevenuePerEmployee, turnoverPercentile,
netMarginPercentile, revenuePerEmployeePercentile, onrcSnapshot, source`.

The run also saves **`SECTOR_BENCHMARKS`** in its key-value store: for every CAEN code in the filter,
the 25th percentile, median and 75th percentile of turnover, net margin, employees and revenue per
employee (companies with turnover > 0).

### How benchmarks are computed

Peers are all companies that filed for the same year with the same CAEN code (and, with
`benchmarkScope: county`, the same county) and a turnover above zero. A percentile of 90 means the
company is above 90% of its peers. Many micro-companies report very high margins, so read the sector
median margin with that in mind.

### Speed and cache

The first run reads the full trade register (about 700 MB) to match names and counties, which takes
1-2 minutes. With `useCache` on, a compact copy (~90 MB) is kept in your named key-value store
`ro-company-financials-cache` and reused until ONRC publishes a new snapshot (about every 2 weeks); later runs
take about 30 seconds. You can delete that store at any time.

### Pricing

Pay per result: a small start fee plus a price per company returned (see the Pricing tab). You only pay
for the companies in your dataset; `maxItems` caps the cost.

### Data, freshness and limits

- Financial statements: Ministry of Finance, "Situații financiare" datasets on data.gov.ro, one per year
  (the year Y statements are filed in Y+1 and published a few months later). Abridged and full-format
  balance sheets of commercial companies are included; banks, insurers, NGOs and other special filers are not.
- Company identity: ONRC "firme" dataset on data.gov.ro, refreshed about every two weeks.
- Only legal entities. Natural persons and family businesses (PF, PFA, II, IF, AF) are excluded, and
  street addresses are not output (county and locality only).
- Figures are as filed by the companies; this actor does not correct them. A company that did not
  file is not in the results.

**Attribution (CC BY 4.0):** Ministerul Finanțelor and Oficiul Național al Registrului Comerțului, via
data.gov.ro. The data were filtered, joined and enriched with computed ratios and benchmarks. Each item
carries a `source` field you can keep when you republish the data.

### Disclaimer

This is a data tool, not financial, legal or credit advice. If you use the results for marketing,
follow the rules of your country; in Romania, commercial emails and SMS need the recipient's prior
consent (Law 506/2004), companies included.

# Actor input Schema

## `caenCodes` (type: `array`):

CAEN codes or prefixes, e.g. 6201 (software, CAEN Rev.2), 6210 (software, CAEN Rev.3), 41 (all construction of buildings), 5610. Filings use both Rev.2 and Rev.3 codes, so list both for a sector. Empty = all industries.

## `counties` (type: `array`):

County names or codes: Cluj or CJ, Bucuresti or B, Timis or TM. Empty = whole country.

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

Optional list of fiscal codes (CUI/CIF, with or without RO). When set, only these companies are returned.

## `year` (type: `integer`):

Year of the annual statements (2019 or later). Empty = the latest year published.

## `minTurnover` (type: `integer`):

Keep companies with net turnover (cifra de afaceri neta) at or above this.

## `maxTurnover` (type: `integer`):

Keep companies with net turnover at or below this.

## `minEmployees` (type: `integer`):

Average number of employees in the year.

## `maxEmployees` (type: `integer`):

Keep companies with at most this many employees.

## `onlyProfitable` (type: `boolean`):

Keep only companies with a net profit in the year.

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

Optional: SRL, SA, SNC, SCS, ... Empty = all legal entities. Natural persons (PFA, II, IF) are never included.

## `includePreviousYear` (type: `boolean`):

Adds last year's turnover, net result, employees and turnover growth %.

## `benchmarkScope` (type: `string`):

Compare each company with all companies of the same CAEN code in Romania, or only in its county.

## `sortBy` (type: `string`):

Order of the results; the best come first and Max companies cuts the list.

## `maxItems` (type: `integer`):

The run stops after this many companies (best first by the sort). You pay per company returned.

## `useCache` (type: `boolean`):

Keeps a compact copy (~60 MB) of the ONRC register in your named key-value store 'ro-company-financials-cache', refreshed when ONRC publishes a new snapshot (about every 2 weeks). Later runs are faster and cheaper. Turn off to read the register fresh every time.

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

data.gov.ro refuses direct connections from Apify's cloud, so the downloads go through Apify Proxy (automatic datacenter IPs, included in every plan). Keep it on.

## `probe` (type: `boolean`):

Debug: test the connection to data.gov.ro directly and through Apify Proxy, save the results, and stop.

## Actor input object example

```json
{
  "caenCodes": [
    "6201",
    "6210"
  ],
  "counties": [
    "Cluj"
  ],
  "onlyProfitable": false,
  "includePreviousYear": true,
  "benchmarkScope": "national",
  "sortBy": "turnover",
  "maxItems": 20,
  "useCache": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "probe": false
}
```

# Actor output Schema

## `companies` (type: `string`):

All companies matching the filters, one item per company (turnover, profit, employees, assets, debts, growth vs last year, percentile rank in its sector), from the run's default dataset.

## `sectorBenchmarks` (type: `string`):

Summary of the benchmark figures per sector for this run, stored as the SECTOR_BENCHMARKS record in the run's default key-value store.

# 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 = {
    "caenCodes": [
        "6201",
        "6210"
    ],
    "counties": [
        "Cluj"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dontknow07/ro-company-financials").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 = {
    "caenCodes": [
        "6201",
        "6210",
    ],
    "counties": ["Cluj"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("dontknow07/ro-company-financials").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 '{
  "caenCodes": [
    "6201",
    "6210"
  ],
  "counties": [
    "Cluj"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call dontknow07/ro-company-financials --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dontknow07/ro-company-financials"
        }
    }
}
```

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/fNdGvl3sdPJn1cj9J/builds/QZkeHYacKWHtyfqqB/openapi.json
