# Peru Company Finder: SUNAT RUC 20 Registry, ISIC, Employees (`latsouth/peru-company-finder`) Actor

Search 917k Peruvian legal entities (RUC 20) from SUNAT's Padrón RUC by department, province, CIIU/ISIC activity and number of workers: RUC, legal name, form, status, address. ODC-BY data in English. Company data only.

- **URL**: https://apify.com/latsouth/peru-company-finder.md
- **Developed by:** [LatSouth Data](https://apify.com/latsouth) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## Peru Company Finder: SUNAT RUC 20 registry, ISIC, workers

**By [LatSouth](https://latsouth.com).** Search **916,523 Peruvian legal entities** (RUC 20) from SUNAT's Padrón RUC:
filter by **department, province, CIIU / ISIC Rev.4 activity, number of workers, SUNAT condition and importer / exporter
flag**, and get RUC, legal name, legal form, status, address and English industry labels in one clean schema.

Company data only: natural persons (RUC 10) are not in the data; no e-mail, phone, owners or legal representatives.

| | |
|---|---|
| Rows | 916,523 RUCs · **575,502** active, private, not sole-owner (the default filters) |
| Data as of | 2026-09-30 (Padrón RUC, period 202609); names and addresses from the Padrón Reducido of 2026-10-22 |
| Price | US$0.003 per company returned: **1,000 companies = US$3** |
| Typical run | about 5-6 s on the platform (prefilled example 6.5 s; 100 medium/large manufacturers 4.3 s) |

### Who it's for

- **Sales teams entering Peru**: "IT companies in Lima with 50+ workers", "manufacturers in Arequipa", "logistics
  companies in Callao".
- **Market sizing**: `OUTPUT.total_matching` counts the segment even if you pull a sample.
- **KYB / list hygiene**: `status` (active, active_not_located, inactive) is SUNAT's own.

### Coverage (measured on the current release, default filters = 575,502 companies)

| Field | Companies | Share |
|---|---:|---:|
| ISIC division and class (CIIU labels matched to ISIC Rev.4) | 567,792 | 98.7% |
| Size class from workers | 242,581 | 42.2% (micro 200,912 · small 32,379 · medium 7,200 · large 2,090) |
| Address | 575,486 | ~100% |
| Department and province | 575,346 | ~100% |
| Active but **not located** (SUNAT "no habido") | 14,197 | 2.5% |
| Importer (`is_importer`, SUNAT foreign-trade flag) | 98,819 | 17.2% |
| Exporter (`is_exporter`) | 80,918 | 14.1% (75,857 both) |

Software and IT services (ISIC division 62): **9,209** companies. Lima 314,925, Arequipa 29,533, La Libertad 28,099.

### Input examples

The Console form is prefilled with `{"isic_divisions": ["62"], "regions": ["LIMA"], "max_results": 10}`.

**Exporters in Lima that also import (foreign-trade prospects)**

```json
{
  "regions": ["LIMA"],
  "only_exporters": true,
  "only_importers": true
}
```

**IT companies in Lima with at least 50 workers**

```json
{
  "isic_divisions": ["62", "63"],
  "regions": ["LIMA"],
  "min_employees": 50
}
```

**Medium and large manufacturers outside Lima, located at their tax address**

```json
{
  "isic_sections": ["C"],
  "regions": ["AREQUIPA", "LA LIBERTAD", "PE-PIU", "Junín"],
  "size_class": ["medium", "large"],
  "exclude_not_located": true
}
```

**Mining support companies by CIIU code, all sizes**

```json
{
  "activity_codes": ["0990", "07"],
  "max_results": 2000
}
```

| Field | What it does |
|---|---|
| `regions` | Department (name with or without accents, slug, or ISO 3166-2 such as `PE-LMA`) |
| `cities` | Province as published (LIMA, AREQUIPA, TRUJILLO...) |
| `isic_sections`, `isic_divisions`, `activity_codes` | ISIC Rev.4 letter / division, or SUNAT CIIU code or prefix (`7220`); combined with OR |
| `keyword` | Substring in the English or Spanish activity label or the company name |
| `size_class` | `micro` (< 10 workers), `small` (10-49), `medium` (50-249), `large` (250+), `unknown` |
| `min_employees` | Workers bracket starting at N or more |
| `only_active`, `exclude_public_sector`, `exclude_sole_owner` | Default **true** |
| `exclude_not_located` | Leave out active RUCs SUNAT flags as not located (no habido) |
| `sort_by` | `size_desc` (default) or `tax_id` |
| `max_results` | Default 1,000 via API |

### Output

LatSouth unified schema (same names as the [LATAM Company Finder](https://apify.com/latsouth/latam-company-finder)):
`tax_id` (RUC), `tax_id_formatted`, `legal_name`, `legal_form` + `legal_form_normalized`, `is_active`, `status`,
`sector`, `activity_code_local` / `activity_label_local`, `activity_label_en`, `isic_section` / `isic_division` /
`isic_class` with English labels, `size_class`, `employees_bracket` / `employees_min` / `employees_max`, `region`
(department), `region_name`, `region_iso`, `city` (province), `address`, `data_as_of`, `source`, `source_license`.

### Sources, licence and attribution

SUNAT Padrón RUC on datosabiertos.gob.pe, **ODC-BY 1.0** (<https://opendatacommons.org/licenses/by/1-0/>): universe,
status, legal form, activity, workers, location. Legal name and address come from SUNAT's Padrón Reducido RUC (no
declared licence; used as enrichment and flagged in `source`). Keep this credit (each row's `source` holds it):

> Fuente: SUNAT, Padron RUC (datosabiertos.gob.pe), periodo 202609, publicado 2026-09-30, licencia ODC-BY 1.0. Datos
> transformados (solo RUC 20, normalizacion, ISIC en ingles); no es un producto oficial de la SUNAT. Razon social y
> direccion: SUNAT, Padron Reducido RUC del 2026-10-22 (enriquecimiento).

### Limitations

- **No registration date**: SUNAT's open files do not publish when a RUC was created, so there is no date filter or sort.
- `is_importer` / `is_exporter` are SUNAT's own Padrón RUC flags (declared foreign-trade activity), not customs volumes.
- Size is known for 42% of active companies (only when SUNAT publishes a workers bracket).
- EIRL (empresa individual de responsabilidad limitada, a third of RUC 20) have masked names and are excluded by default.
- No trade name, e-mail, phone or website is published.

### Pricing

Pay per event: `company-result`, **US$0.003** per company row returned (1,000 = US$3). Set a maximum cost per run and the
actor stops when it is reached (`OUTPUT.stopped_by_budget`). Full files and custom segments:
<https://latsouth.com/data/peru/>.

### Related

- [LATAM Company Finder](https://apify.com/latsouth/latam-company-finder): the same schema for 7 countries.
- [LATAM Company Enrichment](https://apify.com/latsouth/latam-company-enrichment): look up a list of RUCs.

### Privacy

Company data only. You are responsible for lawful use under Ley 29733 and for honouring opt-out requests
(hello@latsouth.com). Methodology: <https://latsouth.com/methodology/>

# Actor input Schema

## `regions` (type: `array`):

Leave empty for all of Peru. Pick from the list, or type the name (accents optional) or the ISO 3166-2 code (e.g. PE-AMA).

## `cities` (type: `array`):

Province as the registry publishes it, accents optional.

## `isic_sections` (type: `array`):

ISIC Rev.4 sections (the UN industry standard every country's code was mapped to). Combined with divisions using OR.

## `isic_divisions` (type: `array`):

ISIC Rev.4 divisions, e.g. 62 = computer programming and IT consultancy, 70 = management consultancy, 46 = wholesale trade.

## `activity_codes` (type: `array`):

Native activity code or prefix, e.g. 7220 (4 digits). Combined with the ISIC filters by OR.

## `keyword` (type: `string`):

Case- and accent-insensitive substring in the English and Spanish activity labels and in the company name (e.g. software, logistica, clinica).

## `size_class` (type: `array`):

From the number of workers declared to SUNAT (< 10, 10-49, 50-249, 250+).

## `min_employees` (type: `integer`):

Keep companies whose workers bracket starts at this number or more (e.g. 50). Companies with no worker count are left out.

## `only_active` (type: `boolean`):

Keep companies the registry reports as active.

## `exclude_public_sector` (type: `boolean`):

Leave out government bodies, state-owned companies and international organizations.

## `exclude_sole_owner` (type: `boolean`):

Leave out sole-owner companies (EIRL, unipersonal, EIRELI) and entities whose name is a person's name. Their names are masked (\*\*\*) anyway.

## `exclude_not_located` (type: `boolean`):

Leave out active RUCs that SUNAT flags as not located at their tax address (condición NO HABIDO).

## `only_importers` (type: `boolean`):

Keep companies that SUNAT's Padrón RUC flags as importers (foreign-trade activity declared to SUNAT).

## `only_exporters` (type: `boolean`):

Keep companies that SUNAT's Padrón RUC flags as exporters (foreign-trade activity declared to SUNAT).

## `sort_by` (type: `string`):

Order of results.

## `max_results` (type: `integer`):

You pay per company returned (US$0.003 each: 1,000 companies = US$3). The run also stops at your spending limit. Default 1,000 when called via API without this field.

## Actor input object example

```json
{
  "regions": [
    "LIMA"
  ],
  "isic_divisions": [
    "62"
  ],
  "only_active": true,
  "exclude_public_sector": true,
  "exclude_sole_owner": true,
  "exclude_not_located": false,
  "only_importers": false,
  "only_exporters": false,
  "sort_by": "size_desc",
  "max_results": 10
}
```

# Actor output Schema

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

Matching companies, one item per row. Download as JSON, CSV, Excel or XML via the dataset API.

## `summary` (type: `string`):

total_matching, rows pushed, data_as_of, attribution, applied input and whether the run stopped at the buyer's budget cap.

# 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 = {
    "regions": [
        "LIMA"
    ],
    "isic_divisions": [
        "62"
    ],
    "max_results": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("latsouth/peru-company-finder").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 = {
    "regions": ["LIMA"],
    "isic_divisions": ["62"],
    "max_results": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("latsouth/peru-company-finder").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 '{
  "regions": [
    "LIMA"
  ],
  "isic_divisions": [
    "62"
  ],
  "max_results": 10
}' |
apify call latsouth/peru-company-finder --silent --output-dataset

```

## MCP server setup

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

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/yjn01dFwTc4E56Uul/builds/HnhAv2l2cWiEnKaZx/openapi.json
