# ListaFirme Scraper (`artificially/listafirme-scraper`) Actor

Search and extract Romanian company data from ListaFirme.ro. Get company details, administrators, shareholders, balance sheets, and contact info using your own API key.

- **URL**: https://apify.com/artificially/listafirme-scraper.md
- **Developed by:** [Artificially](https://apify.com/artificially) (community)
- **Categories:** Jobs, Developer tools, Lead generation
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## ListaFirme Romania Scraper - Enhanced

Search and extract Romanian company data with multi-year financial analysis, trend detection, health scoring, and business intelligence.

### Features

#### Core Company Data

- **Company Search**: Search Romanian companies by name
- **Direct CUI Lookup**: Fetch by tax identification code
- **Company Details**: Status, legal form, VAT status
- **Company Age**: Calculated years since registration
- **Size Category**: Micro, Small, Medium, or Large (EU SME definitions)

#### Financial Analysis (NEW)

- **Multi-Year Balance History**: Up to 10 years of financial data
- **Trend Analysis**: Revenue, profit, and employee trends
- **Growth Rate**: Year-over-year average growth
- **CAGR**: Compound annual growth rate
- **Trend Classification**: Growing, Declining, Stable, or Volatile

#### Financial Ratios (NEW)

- **Profit Margin**: Net profit as percentage of revenue
- **ROA**: Return on Assets
- **ROE**: Return on Equity
- **Debt-to-Equity**: Leverage ratio
- **Revenue per Employee**: Productivity metric

#### Company Health Score (NEW)

- **Health Score**: 0-100 based on multiple factors
- **Status Classification**: Excellent, Good, Fair, Poor, Critical
- **Factor Analysis**: What's affecting the score
- **Automated Summary**: Plain-language financial assessment

#### Industry Intelligence (NEW)

- **NACE Code Details**: Full description and classification
- **Industry Section**: Sector categorization (A-U)
- **Status Descriptions**: Human-readable company status

#### Ownership Details

- **Administrators**: Directors with roles and CUI links
- **Shareholders**: With ownership percentages calculated
- **Share Capital**: Total registered capital

### Use Cases

- Romanian B2B lead generation with financial filtering
- Due diligence and credit assessment
- Competitive intelligence in Romania
- Investment screening and analysis
- Financial trend monitoring
- Supplier evaluation

### API Key (PAID)

This actor requires a ListaFirme.ro API key from https://listafirme.ro/

### Input

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `apiKey` | string | Yes | - | Your ListaFirme.ro API key |
| `searchQueries` | array | No | - | Company names to search |
| `cuiList` | array | No | - | Direct CUI numbers |
| `maxResults` | number | No | `100` | Results per search |
| `includeBalance` | boolean | No | `true` | Latest financial data |
| `includeBalanceHistory` | boolean | No | `true` | Multi-year history |
| `yearsOfHistory` | number | No | `5` | Years of history (1-10) |
| `includeFinancialAnalysis` | boolean | No | `true` | Calculate ratios and trends |
| `includeAdministrators` | boolean | No | `true` | Fetch directors |
| `includeShareholders` | boolean | No | `true` | Fetch ownership |
| `includeContact` | boolean | No | `false` | Phone, email, website |
| `includeIndustryInfo` | boolean | No | `true` | NACE details |

#### Example Input

```json
{
    "apiKey": "your-listafirme-api-key",
    "searchQueries": ["Dedeman"],
    "maxResults": 5,
    "includeBalance": true,
    "includeBalanceHistory": true,
    "yearsOfHistory": 5,
    "includeFinancialAnalysis": true,
    "includeShareholders": true
}
```

### Output

Each company produces a result with:

```json
{
    "cui": "14399840",
    "name": "DEDEMAN S.R.L.",
    "status": "ACTIVA",
    "statusDescription": "Active - Company is operational",
    "legalForm": "SRL",
    "legalFormDescription": "Societate cu Răspundere Limitată (Limited Liability Company)",
    "companyAge": {
        "years": 22,
        "months": 6
    },
    "sizeCategory": "Large",
    "naceInfo": {
        "code": "4752",
        "description": "Retail trade of hardware",
        "section": "G",
        "sectionName": "Wholesale and Retail Trade"
    },
    "balance": {
        "year": 2023,
        "turnover": 15000000000,
        "profit": 1500000000,
        "employees": 15000,
        "assets": 8000000000,
        "equity": 5000000000,
        "debt": 2000000000
    },
    "balanceHistory": [
        {"year": 2023, "turnover": 15000000000, "profit": 1500000000},
        {"year": 2022, "turnover": 13500000000, "profit": 1300000000},
        {"year": 2021, "turnover": 12000000000, "profit": 1100000000}
    ],
    "financialAnalysis": {
        "profitMargin": 10.0,
        "returnOnAssets": 18.75,
        "returnOnEquity": 30.0,
        "debtToEquity": 0.4,
        "revenuePerEmployee": 1000000,
        "trends": [
            {
                "metric": "Revenue",
                "trend": "growing",
                "growthRate": 11.8,
                "cagr": 11.2
            }
        ],
        "summary": "Revenue growing (11.8% avg). High profit margin."
    },
    "shareholders": [
        {
            "name": "Paval Adrian-Dragos",
            "shares": "500000",
            "percentage": 50.0,
            "cui": null
        }
    ],
    "companyHealth": {
        "score": 92,
        "status": "excellent",
        "factors": [
            "Good profit margin",
            "Revenue is growing",
            "Established company (10+ years)",
            "Established workforce"
        ]
    },
    "url": "https://www.listafirme.ro/14399840/",
    "scrapedAt": "2024-01-20T12:00:00Z"
}
```

### Cost

This actor uses **pay-per-result** pricing:

| Cost Type | Amount |
|-----------|--------|
| Start fee | $0.03 per run |
| Per company | $0.001 |

**Plus**: ListaFirme.ro API costs (charged separately).

#### Example Cost Calculation (Apify only)

- 100 companies: $0.03 + (100 x $0.001) = $0.13
- 1,000 companies: $0.03 + (1000 x $0.001) = $1.03

### Tips

1. **Health filtering**: Use `companyHealth.status` to filter
   - `excellent` (85-100): Strong financials
   - `good` (70-84): Solid performance
   - `fair` (50-69): Some concerns
   - `poor` (30-49): Multiple issues
   - `critical` (0-29): High risk

2. **Trend analysis**: Look at CAGR for long-term growth patterns

3. **Financial ratios**: Compare ROE and profit margin to industry benchmarks

4. **Size filtering**: Use `sizeCategory` to target company sizes

5. **Minimize API costs**: Disable `includeContact` unless needed

### Data Source

Data from [ListaFirme.ro](https://listafirme.ro/), aggregating Romanian Trade Registry and Ministry of Finance data.

### Support

- **Built by**: [Artificially](https://apify.com/artificially)
- **Issues**: Report bugs or request features via Apify Console

# Actor input Schema

## `apiKey` (type: `string`):

Your ListaFirme.ro API key. Get one from your account at https://listafirme.ro/

## `searchQueries` (type: `array`):

List of company names to search for

## `cuiList` (type: `array`):

List of specific CUI (fiscal codes) to look up directly

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

Maximum number of companies to return per search query

## `includeBalance` (type: `boolean`):

Include latest financial data (turnover, profit, employees, assets)

## `includeBalanceHistory` (type: `boolean`):

Include multiple years of financial data for trend analysis

## `yearsOfHistory` (type: `integer`):

Number of years of financial history to fetch

## `includeFinancialAnalysis` (type: `boolean`):

Calculate financial ratios and trends

## `includeAdministrators` (type: `boolean`):

Include company administrators/directors with roles

## `includeShareholders` (type: `boolean`):

Include company shareholders with ownership percentages

## `includeContact` (type: `boolean`):

Include phone, email, and website

## `includeIndustryInfo` (type: `boolean`):

Include NACE code descriptions and industry sector classification

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

Select proxies to be used by your scraper

## Actor input object example

```json
{
  "searchQueries": [
    "Borg Design",
    "Dedeman"
  ],
  "cuiList": [
    "14837428",
    "18aborba"
  ],
  "maxResults": 100,
  "includeBalance": true,
  "includeBalanceHistory": true,
  "yearsOfHistory": 5,
  "includeFinancialAnalysis": true,
  "includeAdministrators": true,
  "includeShareholders": true,
  "includeContact": false,
  "includeIndustryInfo": true
}
```

# Actor output Schema

## `cui` (type: `string`):

CUI (Cod Unic de Identificare) - Romanian fiscal code

## `name` (type: `string`):

Company name

## `status` (type: `string`):

Company status

## `legalForm` (type: `string`):

Legal form (SRL, SA, etc.)

## `registrationNumber` (type: `string`):

Trade registry number

## `naceCode` (type: `string`):

NACE industry code

## `naceDescription` (type: `string`):

NACE industry description

## `url` (type: `string`):

URL to company on ListaFirme.ro

## `scrapedAt` (type: `string`):

ISO 8601 timestamp when scraped

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("artificially/listafirme-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("artificially/listafirme-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call artificially/listafirme-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=artificially/listafirme-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2efLGuT9rA4tNKNwL/builds/iyUx48pWTIxXfQDxx/openapi.json
