# Build a Spanish B2B Leads List by Province

**Use case:** 

Build a B2B leads list of Spanish companies by province and CNAE industry - NIF, legal form, address and status from official registry data.

## Input

```json
{
  "searchQuery": "Telefonica",
  "cnaeCode": "4711",
  "province": "Barcelona",
  "maxResults": 50
}
```

## Output

```json
{
  "lookupStatus": {
    "label": "Result",
    "format": "text"
  },
  "companyName": {
    "label": "Company",
    "format": "text"
  },
  "nif": {
    "label": "NIF/CIF",
    "format": "text"
  },
  "legalForm": {
    "label": "Legal Form",
    "format": "text"
  },
  "cnaeCode": {
    "label": "CNAE",
    "format": "text"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "province": {
    "label": "Province",
    "format": "text"
  },
  "registroMercantil": {
    "label": "Registry",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Spain Company Directory Scraper - Registro Mercantil](https://apify.com/regdata/spain-company-directory-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/regdata/spain-company-directory-scraper) to learn more, explore other use cases, and run it yourself.