# Madrid Company Lead List Scraper

**Use case:** 

Scrape Madrid company directory records from Empresite for Spanish B2B lead generation, vendor research, and market mapping.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://empresite.eleconomista.es/Top_Empresas"
    },
    {
      "url": "https://empresite.eleconomista.es/Ultimos_Negocios"
    }
  ],
  "activities": [
    "CONSTRUCCIONES"
  ],
  "provinces": [
    "MADRID"
  ],
  "maxItems": 100,
  "includeDetails": true,
  "maxPagesPerStartUrl": 2,
  "requestDelayMs": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "companyName": {
    "label": "Company name",
    "format": "text"
  },
  "detailUrl": {
    "label": "Company URL",
    "format": "link"
  },
  "cif": {
    "label": "CIF/NIF",
    "format": "text"
  },
  "activity": {
    "label": "Activity",
    "format": "text"
  },
  "address": {
    "label": "Address",
    "format": "text"
  },
  "locality": {
    "label": "Locality",
    "format": "text"
  },
  "province": {
    "label": "Province",
    "format": "text"
  },
  "phone": {
    "label": "Phone",
    "format": "text"
  },
  "website": {
    "label": "Website",
    "format": "link"
  },
  "executives": {
    "label": "Executives",
    "format": "text"
  },
  "rank": {
    "label": "Rank",
    "format": "number"
  },
  "updatedAt": {
    "label": "Updated at",
    "format": "text"
  },
  "sourceUrl": {
    "label": "Source URL",
    "format": "link"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "date"
  }
}
```

## About this Actor

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