# SUNAT Peru Taxpayer Branches Scraper

**Use case:** 

Scrape Peru taxpayer records with branch establishments by RUC from SUNAT. Get legal name, status, address and registered branches for due diligence.

## Input

```json
{
  "maxItems": 10,
  "withDetails": true,
  "withBranches": true,
  "searchTerms": [
    "20100070970",
    "20131312955",
    "20100017491",
    "20131380951",
    "20100128056"
  ],
  "useProxy": false
}
```

## Output

```json
{
  "razonSocial": {
    "label": "Legal Name",
    "format": "text"
  },
  "ruc": {
    "label": "RUC",
    "format": "text"
  },
  "estado": {
    "label": "Status",
    "format": "text"
  },
  "condicion": {
    "label": "Condition",
    "format": "text"
  },
  "tipoContribuyente": {
    "label": "Taxpayer Type",
    "format": "text"
  },
  "direccion": {
    "label": "Address",
    "format": "text"
  },
  "departamento": {
    "label": "Department",
    "format": "text"
  },
  "provincia": {
    "label": "Province",
    "format": "text"
  },
  "distrito": {
    "label": "District",
    "format": "text"
  },
  "ciiu": {
    "label": "CIIU Code",
    "format": "text"
  },
  "actividadEconomica": {
    "label": "Economic Activity",
    "format": "text"
  },
  "fechaInscripcion": {
    "label": "Registration Date",
    "format": "text"
  },
  "representanteLegal": {
    "label": "Legal Representatives",
    "format": "array"
  },
  "establishments": {
    "label": "Branch Locations",
    "format": "array"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "observedAt": {
    "label": "Scraped",
    "format": "date"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [SUNAT Peru RUC Scraper](https://apify.com/scrapers_lat/sunat-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scrapers_lat/sunat-scraper) to learn more, explore other use cases, and run it yourself.