# Romanian Company Financials & Tax Status (ANAF CUI Lookup) (`tidyrox/anaf-company-financials`) Actor

Bulk Romanian company check by CUI: turnover, net profit, employees, equity and debts for several years, plus VAT, e-Factura, inactive and struck-off status from official ANAF data.

- **URL**: https://apify.com/tidyrox/anaf-company-financials.md
- **Developed by:** [Daniel Dorunga](https://apify.com/tidyrox) (community)
- **Categories:** Lead generation, Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 company results

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 & Tax Status (ANAF CUI Lookup)

**Paste a list of Romanian CUIs, get back each company's turnover, net profit, employees, equity and debts for several years, plus its VAT, e-Factura, inactive and struck-off status.** All data comes live from the official, free and public ANAF web services. No API key, no login, no scraping of private pages.

Built for **supplier checks, KYC / onboarding, B2B lead qualification, credit-risk screening and market research** on the Romanian market.

### Why use it

- 📊 **Multi-year financials in one row**: turnover (cifra de afaceri), total revenue and expenses, gross and net profit (losses are negative numbers), average employees, fixed and current assets, stocks, receivables, cash, debts, equity, subscribed capital, net margin %.
- 📈 **Growth at a glance**: `turnoverGrowthPct` compares the latest year with the year before it.
- 🧾 **Fiscal status from ANAF**: VAT payer (with VAT periods), VAT on collection (TVA la încasare), split VAT, e-Factura registration, fiscal inactivity, strike-off date, registration status, trade register number (J…), CAEN code and activity label, registered office and fiscal address.
- 🚩 **Risk flags ready for filtering**: `fiscally_inactive`, `struck_off`, `not_vat_registered`, `net_loss_latest_year`, `negative_equity`, `no_employees`, `zero_turnover`, `turnover_down_30pct_plus`, `no_financial_statements_found`.
- ✅ **Built-in CUI validation**: the official control-digit check catches typos before any lookup. Invalid and unknown CUIs come back as free rows, so nothing silently disappears.
- 🔁 **Accepts any format**: `14399840`, `RO14399840`, `RO 14399840`, duplicates removed automatically.
- 🛡️ **GDPR-minded**: for sole traders and other natural-person forms (PFA, II, IF), street address and phone are removed and only county and locality are kept.

### Input

```json
{
  "cuis": ["14399840", "RO1590082", "RO 13548146"],
  "financialYears": 3,
  "includeFinancials": true,
  "includeYearlyBreakdown": true
}
```

| Field | Description |
| --- | --- |
| `cuis` | List of CUIs / Romanian VAT codes (required). |
| `includeFinancials` | Fetch annual statements (default `true`). Turn off for a fast VAT/status-only check. |
| `financialYears` | How many recent years to fetch (default 3, starting with last year). |
| `years` | Exact years, e.g. `[2024, 2023]` (overrides `financialYears`). |
| `includeYearlyBreakdown` | Keep the per-year `financials` array (turn off for a flat CSV/Excel export). |
| `referenceDate` | Date for the VAT/status snapshot (`YYYY-MM-DD`, default today). |
| `maxItems` | Optional cap on the number of companies. |

### Output (one row per company)

```json
{
  "cui": "13548146",
  "status": "found",
  "name": "CUBUS ARTS SRL",
  "tradeRegisterNumber": "J2000000508324",
  "county": "SIBIU",
  "caenCode": "6210",
  "caenDescription": "Activităţi de realizare a soft-ului la comandă (software orientat client)",
  "vatPayer": true,
  "vatCode": "RO13548146",
  "vatOnCollection": true,
  "eInvoiceRegistered": false,
  "fiscallyInactive": false,
  "latestYear": 2025,
  "turnover": 1652829,
  "netProfit": 375183,
  "employees": 5,
  "equity": 376431,
  "turnoverGrowthPct": -7.6,
  "riskFlags": [],
  "financials": [
    { "year": 2025, "turnover": 1652829, "netProfit": 375183, "employees": 5, "debts": 811183, "equity": 376431, "netMarginPct": 22.7 },
    { "year": 2024, "turnover": 1788838, "netProfit": 459356, "employees": 6 }
  ],
  "currency": "RON"
}
```

Rows with `status: "not-found"` or `status: "invalid-cui"` are included so you can reconcile your list, and they are **never charged**.

Export to Excel, CSV, JSON or Google Sheets, or call it from Make, Zapier, n8n, the Apify API or an AI agent (MCP).

### Pricing

Pay per result: you pay only for companies that were found. Invalid and unknown CUIs are free. Platform usage is included in the price.

### Good to know

- ANAF has no search by company name. You need the CUI, which is printed on invoices, websites, contracts and in the trade register.
- Financial statements for a year are usually published by ANAF in the second half of the next year. Recently founded companies, and some banks and insurers that file under other formats, may have no `financials`.
- The VAT lookup runs in batches of 100 CUIs at about 1 request per second, which respects the ANAF limits. Expect about 1 to 2 seconds per company when financials are on.
- Values are in RON, exactly as published by ANAF. The actor shows public fiscal facts only and makes no judgements about any company.

### Use cases

- Check a new supplier's or customer's VAT status and financial health before you sign or extend credit.
- Enrich a CRM list of Romanian B2B prospects with size (turnover, employees) and industry (CAEN).
- Screen a portfolio for companies that became inactive, were struck off or fell into losses. Schedule the run monthly and get a diff.
- Market research: compare competitors' turnover and margins across years.

# Actor input Schema

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

Romanian fiscal codes (CUI/CIF). Accepts 14399840, RO14399840 or RO 14399840. Duplicates are removed and invalid codes are reported for free.

## `includeFinancials` (type: `boolean`):

Fetch turnover, profit, employees, equity, debts etc. from the ANAF annual statements (bilant).

## `financialYears` (type: `integer`):

How many most recent years of financial statements to fetch (starting with last year). Ignored if 'Specific years' is set.

## `years` (type: `array`):

Exact years to fetch, e.g. \[2024, 2023]. Overrides 'Number of years'.

## `includeYearlyBreakdown` (type: `boolean`):

Add the full per-year 'financials' array to each row. Turn off for a flat, spreadsheet-friendly export.

## `referenceDate` (type: `string`):

Date for the VAT/inactive status snapshot. Defaults to today.

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

Stop after this many unique CUIs (0 = no limit).

## Actor input object example

```json
{
  "cuis": [
    "14399840",
    "RO1590082"
  ],
  "includeFinancials": true,
  "financialYears": 3,
  "includeYearlyBreakdown": true,
  "maxItems": 0
}
```

# Actor output Schema

## `overview` (type: `string`):

Romanian companies (overview table view of the default dataset).

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

One row per CUI: fiscal/VAT status, e-Factura, inactive/struck-off flags and multi-year financials. All fields, from the default dataset.

# 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",
        "RO1590082"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tidyrox/anaf-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 = { "cuis": [
        "14399840",
        "RO1590082",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tidyrox/anaf-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 '{
  "cuis": [
    "14399840",
    "RO1590082"
  ]
}' |
apify call tidyrox/anaf-company-financials --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tidyrox/anaf-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/nW5lB9Fld9ntNlwiI/builds/SYql16Q49TB4MTpox/openapi.json
