# Romanian Business Directory Scraper (`darknezz/ro-business-scraper`) Actor

Scrape Romanian business directories (listafirme.ro). Extract company names, CUI, addresses, cities, CAEN codes, and trade register numbers.

- **URL**: https://apify.com/darknezz/ro-business-scraper.md
- **Developed by:** [Oaida Adrian](https://apify.com/darknezz) (community)
- **Categories:** Lead generation
- **Stats:** 3 total users, 2 monthly users, 97.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 result extracteds

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/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

## Romanian Business Directory Scraper — Company Data & B2B Leads

Search Romania's company directory by keyword and get **structured business records with CUI, trade register number, contact details and founding date** — straight from listafirme.eu, no API key, no login, no proxies.

Type what you'd type into the directory's search box (an industry, a company name, a CAEN activity keyword) and receive clean JSON, CSV or Excel — one record per company.

### What you get

- 🇷🇴 **Official identifiers** — CUI (fiscal code) and trade register number (J-number), ready for VIES/ANAF cross-checks
- 📇 **Contact data** — phone, email, website where published
- 📍 **Location** — full address, city, county (județ)
- 🏷️ **Classification** — business category / CAEN activity and founding date
- 📅 **Fresh data** — scraped live at run time, with an ISO timestamp per record

### Input

```json
{
  "searchTerms": ["restaurant", "constructii", "software"],
  "maxResults": 100,
  "extractDetails": true
}
```

| Field | Type | Default | Description |
|---|---|---|---|
| `searchTerms` | array | *required* | Keywords to search — industries, company names, CAEN activities (e.g. `design`, `transport`, `panificatie`) |
| `maxResults` | integer | 100 | Maximum companies across all search terms |
| `extractDetails` | boolean | true | Visit each company's page for phone, email, trade register, founding date |

With `extractDetails` off you get the fast search-result fields only (name, CUI, location) — useful for large list building. Detail fetches are politely paced to respect the directory's rate limits.

### Output

One dataset item per company:

```json
{
  "companyName": "RESTAURANT MARTY S.R.L.",
  "cui": "14370083",
  "tradeRegister": "J12/1750/2001",
  "address": "Str. Horea 5",
  "city": "Cluj-Napoca",
  "county": "Cluj",
  "phone": "+40 264 000 000",
  "email": "office@example.ro",
  "website": "https://www.example.ro",
  "category": "Restaurante",
  "foundedDate": "2001",
  "detailUrl": "https://www.listafirme.eu/...",
  "sourceUrl": "https://www.listafirme.eu/cauta/restaurant",
  "scrapedAt": "2026-07-17T08:00:00+00:00"
}
```

Fields not published for a company are returned as empty strings — records always have the same shape, so CSV/Excel exports stay clean.

### Use cases

- **B2B lead generation** — build targeted Romanian prospect lists by industry and county, with direct contact details
- **KYC / supplier vetting** — resolve a company name to its CUI and J-number, then verify in ANAF or VIES
- **Market research** — measure business density per sector or region; track founding dates for market-age analysis
- **CRM enrichment** — fill missing CUI, address or website fields on existing Romanian accounts
- **Local SEO & citations** — assemble accurate name/address/phone data for Romanian businesses

### Run it on a schedule or from your code

Create a Schedule in Apify Console to refresh your lists weekly, or call the Actor from anywhere:

```bash
curl -X POST "https://api.apify.com/v2/acts/darknezz~ro-business-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms": ["software cluj"], "maxResults": 50}'
```

The call returns the scraped companies directly as JSON. Every run's dataset can also be exported as CSV, Excel, XML or RSS from Apify Console.

### Pricing

Pay-per-event: **$0.01 per business extracted**, plus Apify's standard compute. A 100-company lead list costs about $1 in event fees.

### FAQ

**Which directory does it scrape?** listafirme.eu — a public Romanian company directory. Legacy `startUrls` inputs from older versions are still accepted; search terms are extracted from them automatically.

**Is the CUI always present?** Almost always — it is part of the company's directory URL. Trade register, phone and email depend on what the directory publishes and require `extractDetails: true`.

**Can I search by CAEN code?** Search works by keyword; use the activity name (e.g. `panificatie`, `transport marfa`) rather than the numeric code.

**Are financials included?** No — this Actor focuses on identity and contact data. Pair the CUI with ANAF's public services for financial statements.

**Is this legal?** The Actor reads publicly listed business information only, at a polite request rate. Company registry data (CUI, J-number, address) is public by law in Romania. You are responsible for GDPR compliance in how you use contact data downstream.

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords to search for on listafirme.eu (e.g., design, constructii).

## `startUrls` (type: `array`):

Legacy listafirme.ro URLs. Search terms extracted from these if searchTerms is empty.

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

Maximum business listings to extract.

## `extractDetails` (type: `boolean`):

Visit each company detail page for phone, email, CUI, etc.

## Actor input object example

```json
{
  "searchTerms": [
    "restaurant"
  ],
  "maxResults": 100,
  "extractDetails": true
}
```

# Actor output Schema

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

No description

## `companyName` (type: `string`):

No description

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

No description

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

No description

## `address` (type: `string`):

No description

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

No description

## `phone` (type: `string`):

No description

## `email` (type: `string`):

No description

## `website` (type: `string`):

No description

## `caen` (type: `string`):

No description

## `caenDescription` (type: `string`):

No description

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

No description

## `foundedDate` (type: `string`):

No description

## `employees` (type: `string`):

No description

## `revenue` (type: `string`):

No description

## `profit` (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 = {
    "searchTerms": [
        "restaurant"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("darknezz/ro-business-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 = { "searchTerms": ["restaurant"] }

# Run the Actor and wait for it to finish
run = client.actor("darknezz/ro-business-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 '{
  "searchTerms": [
    "restaurant"
  ]
}' |
apify call darknezz/ro-business-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/j0pkxebeGdSaafqJl/builds/1Bol88AmEjhk70cz0/openapi.json
