# PagineGialle Italy Local Business Directory Scraper (`jungle_synthesizer/paginegialle-italy-local-business-directory-scraper`) Actor

Scrape Italian business listings from PagineGialle by category and comune — name, address, phone, category, rating, opening hours, and partita IVA/email/website/servizi from each listing's detail page.

- **URL**: https://apify.com/jungle\_synthesizer/paginegialle-italy-local-business-directory-scraper.md
- **Developed by:** [BowTiedRaccoon](https://apify.com/jungle_synthesizer) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 record scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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

## PagineGialle Italy Local Business Directory Scraper

Scrapes [PagineGialle](https://www.paginegialle.it) — Italy's incumbent yellow pages and the
country's primary SMB contact directory — and returns a structured dataset of Italian business
listings by category and comune (city/town), enriched with each listing's detail page: partita
IVA, email, website, servizi (services offered), and accepted payment methods.

### What you get

| Field | Type | Description |
|---|---|---|
| `listing_id` | string | Unique listing id |
| `name` | string | Business name |
| `category` | string | Primary category as shown on the listing |
| `categories_all` | array | All categories/tags associated with the listing |
| `street` | string | Street address |
| `postal_code` | string | Postal (CAP) code |
| `comune` | string | Comune (city/town) |
| `provincia` | string | Province sigla (e.g. RM, MI) |
| `region` | string | Italian region |
| `latitude` | number | Latitude |
| `longitude` | number | Longitude |
| `phone` | string | Landline phone number(s), semicolon-separated if multiple |
| `mobile` | string | Mobile phone number(s), semicolon-separated if multiple |
| `email` | string | Email address (when published) |
| `website` | string | Business website (when published) |
| `piva` | string | Partita IVA — Italian VAT/business registration number |
| `opening_hours` | object | Opening hours by day of week |
| `rating_avg` | number | Average rating (0–5, when the listing has reviews) |
| `rating_count` | integer | Number of ratings |
| `services` | array | Services offered ("Servizi", when published) |
| `payment_methods` | array | Accepted payment methods (when published) |
| `description` | string | Listing description/tagline |
| `is_paid_listing` | boolean | Whether the listing is a paid/advertised placement |
| `has_quote_cta` | boolean | Whether a "request quote" call-to-action is present |
| `listing_url` | string | Canonical detail-page URL |
| `source_query_category` | string | The category search term used to reach this listing |
| `source_query_comune` | string | The comune search term used to reach this listing |
| `scraped_at` | string | Timestamp this record was collected |

### How it works

The actor searches PagineGialle by category × comune pairs (e.g. "idraulici" in "roma"),
collects the listing cards from the results (paging through additional result pages when
available), and follows each listing to its detail page for the fields the results page
doesn't carry (partita IVA, email, website, servizi, payment methods).

Leave `categories` and `comuni` empty to run a broad default sweep across common Italian trade
and professional categories and provincial-capital comuni covering all 20 regions. Supply your
own `categories` / `comuni` to search specific business types and locations, or `regions` to
scope the default comuni list to particular regions.

### Input

| Parameter | Type | Default | Description |
|---|---|---|---|
| `categories` | array of strings | — (broad default set) | PagineGialle category/business-type search terms (e.g. "idraulici", "avvocati", "ristoranti") |
| `comuni` | array of strings | — (broad default set) | Italian comune (city/town) names to search (e.g. "roma", "milano") |
| `regions` | array (select) | — (all regions) | Restrict the built-in comuni default to these Italian regions. Ignored if `comuni` is set |
| `maxPagesPerQuery` | integer | 5 | Cap on additional result pages followed per category × comune search |
| `maxItems` | integer | 10 | Maximum number of records to scrape |

#### Example input

```json
{
  "categories": ["idraulici"],
  "comuni": ["roma"],
  "maxItems": 200
}
```

### Example output

```json
{
  "listing_id": "88be49d2-a7da-449a-8757-08f7e42db359",
  "name": "Wave Impianti",
  "category": "Impianti idraulici e termoidraulici",
  "categories_all": ["Impianti idraulici e termoidraulici"],
  "street": "Via Tiburtina, 1072",
  "postal_code": "00156",
  "comune": "Roma",
  "provincia": "RM",
  "region": "Lazio",
  "latitude": 41.93232,
  "longitude": 12.5868,
  "phone": "06 33221417",
  "mobile": "376 2961468",
  "email": "info@waveimpianti.it",
  "website": "https://waveimpianti.it/",
  "piva": "15343341002",
  "opening_hours": {
    "Lunedì": ["08:30 - 18:30"],
    "Martedì": ["08:30 - 18:30"],
    "Mercoledì": ["08:30 - 18:30"],
    "Giovedì": ["08:30 - 18:30"],
    "Venerdì": ["08:30 - 18:30"]
  },
  "rating_avg": null,
  "rating_count": null,
  "services": ["Manutenzione impianti industriali", "Manutenzione impianti idraulici"],
  "payment_methods": [],
  "description": "Wave Impianti realizza impianti industriali e civili: elettrici, meccanici e termoidraulici, con soluzioni complete e ad alta efficienza.",
  "is_paid_listing": true,
  "has_quote_cta": false,
  "listing_url": "https://www.paginegialle.it/waveimpiantiesistemi-roma",
  "source_query_category": "idraulici",
  "source_query_comune": "roma",
  "scraped_at": "2026-09-01T15:43:11.438Z"
}
```

### Notes

- `email`, `website`, `piva`, `services`, and `payment_methods` come from each listing's detail
  page and are only as complete as what the business has published there — not every listing
  lists all of them.
- `rating_avg`/`rating_count` are only present for listings that have reviews.
- Records per run: PagineGialle covers roughly 2.5 million Italian business listings across
  \~1,900 categories × ~8,000 comuni. A single run only needs a fraction of that (bounded by
  `maxItems`); pass a `resumeCursor` from a previous run's output to continue a large crawl
  where it left off, without recrawling records already collected.

# Actor input Schema

## `sp_intended_usage` (type: `string`):

What will this data feed? E.g. lead lists, KYB checks, price tracking.

## `sp_improvement_suggestions` (type: `string`):

Provide any feedback or suggestions for improvements.

## `sp_contact` (type: `string`):

We'll personally help with your use case. No spam.

## `resumeCursor` (type: `string`):

Leave empty for a fresh crawl. To CONTINUE a previous run where it stopped — without paying again for records you already received — paste the `resumeCursor` value from that run's Output (the run's OUTPUT key). Resume promptly: the previous run's data expires with your account's retention window (free tier: your ~10 most recent runs).

## `categories` (type: `array`):

PagineGialle category/business-type search terms (e.g. "idraulici", "avvocati", "ristoranti"). Leave empty to crawl a broad built-in set of common Italian trade and professional categories.

## `comuni` (type: `array`):

Italian comune (city/town) names to search (e.g. "roma", "milano"). Leave empty to use `regions` (if set) or a broad built-in set of provincial-capital comuni covering all 20 regions.

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

Restrict the built-in comuni default to these Italian regions. Ignored if `comuni` is set.

## `maxPagesPerQuery` (type: `integer`):

Cap on /p-N pagination depth followed per categoria x comune search (cost control).

## `maxItems` (type: `integer`):

Maximum number of records to scrape

## Actor input object example

```json
{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "categories": [
    "idraulici",
    "avvocati",
    "ristoranti"
  ],
  "comuni": [
    "roma",
    "milano",
    "napoli"
  ],
  "maxPagesPerQuery": 5,
  "maxItems": 10
}
```

# Actor output Schema

## `results` (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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "categories": [
        "idraulici",
        "avvocati",
        "ristoranti"
    ],
    "comuni": [
        "roma",
        "milano",
        "napoli"
    ],
    "maxPagesPerQuery": 5,
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("jungle_synthesizer/paginegialle-italy-local-business-directory-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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "categories": [
        "idraulici",
        "avvocati",
        "ristoranti",
    ],
    "comuni": [
        "roma",
        "milano",
        "napoli",
    ],
    "maxPagesPerQuery": 5,
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("jungle_synthesizer/paginegialle-italy-local-business-directory-scraper").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 '{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "categories": [
    "idraulici",
    "avvocati",
    "ristoranti"
  ],
  "comuni": [
    "roma",
    "milano",
    "napoli"
  ],
  "maxPagesPerQuery": 5,
  "maxItems": 10
}' |
apify call jungle_synthesizer/paginegialle-italy-local-business-directory-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jungle_synthesizer/paginegialle-italy-local-business-directory-scraper"
        }
    }
}

```

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/rcqcCVwMdFSsZfIXt/builds/ZtMp5nqb8G6mIAp2t/openapi.json
