# PagineGialle Scraper: Italy Business Leads (`reventadata/paginegialle-scraper`) Actor

Scrape PagineGialle.it business listings by category and city path or pasted listing URL. Name, phone, email where published, street address, region, coordinates, profile URL and business type, 30 businesses per page. Export JSON, CSV or Excel. Unofficial.

- **URL**: https://apify.com/reventadata/paginegialle-scraper.md
- **Developed by:** [reventadata](https://apify.com/reventadata) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

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

## PagineGialle Scraper: Italy Business Directory Leads

> **Unofficial.** This Actor is not affiliated with, authorised by, endorsed by, or in any
> way officially connected to PagineGialle or Italiaonline S.p.A. "PagineGialle" is a trademark of its
> respective owner and is used here only to describe what this tool reads. It reads the same
> public pages a browser does.

Extracts business leads from the public category and city listings of paginegialle.it, the Italian yellow pages: name, phone, email, street address, coordinates and profile URL.

### What does it do?

For every category and city path you give (for example `lazio/roma/ristoranti`), it walks the listing pages (30 businesses per full page) and saves one dataset row per business. All fields come from the listing page itself, so no extra profile page is fetched per business. A business that appears twice in one run is saved once. The walk of a query ends at the last page, at `maxPages` (at most 100) or when `maxItems` is reached.

### Why use it?

- **Contact data in the row:** public phone number and email where the business publishes them, plus full address and geocoordinates.
- **Clean columns:** one column per field instead of raw page text.
- **Public data only:** business names and the public contact fields the directory shows are in the rows; nothing from behind a login.

### How to use it

1. Put one or more category and city paths or full listing URLs in `searchQueries`.
2. Set `maxItems` (total rows) and `maxPages` (pages per query).
3. Run the Actor and download the results as JSON, CSV, Excel or JSONL from the dataset.

#### Input

| Field | Type | Description |
|---|---|---|
| `searchQueries` | array | Paths such as `lazio/roma/ristoranti` or full URLs such as `https://www.paginegialle.it/lazio/roma/ristoranti.html`. |
| `maxItems` | integer | Maximum number of business rows to save (default 100). |
| `maxPages` | integer | Maximum listing pages per query, 1 to 100 (30 businesses per full page). |

#### Sample input

```json
{
    "searchQueries": ["lazio/roma/ristoranti"],
    "maxItems": 10,
    "maxPages": 1
}
```

#### Output

Each dataset item contains:

| Field | Type | Description |
|---|---|---|
| `id` | string | Business identifier on paginegialle.it. |
| `name` | string | Trade name. |
| `type` | string / null | Schema.org business type (for example Restaurant). |
| `url` | string | Business profile URL. |
| `telephone` | string / null | Public phone number; null when the listing shows none. |
| `email` | string / null | Public contact email; null when the listing shows none. |
| `streetAddress`, `postalCode`, `locality`, `region` | string / null | Address parts. |
| `country` | string | `IT`. |
| `latitude`, `longitude` | number / null | Coordinates. |
| `hasMap` | string / null | Map link. |
| `logo` | string / null | Logo or photo URL. |
| `searchQuery` | string | The query that produced the row. |
| `page` | integer | Listing page the row came from. |
| `scrapedAt` | string | ISO 8601 UTC timestamp. |

Sample row (a real listing captured from the site on 2026-11-08; the `logo` field is left out here for length):

```json
{
    "id": "https://www.paginegialle.it/civico90",
    "name": "Civico 90 Colleferro",
    "type": "Restaurant",
    "url": "https://www.paginegialle.it/civico90",
    "telephone": "+39 06 9702139",
    "email": "marys.72@hotmail.it",
    "streetAddress": "Via Carpinetana Sud, 90",
    "locality": "Colleferro",
    "region": "Lazio",
    "postalCode": "00034",
    "country": "IT",
    "latitude": 41.72279,
    "longitude": 13.00668,
    "hasMap": "https://www.paginegialle.it/civico90/mappa",
    "searchQuery": "lazio/roma/ristoranti",
    "page": 1,
    "scrapedAt": "2026-11-08T17:02:00.000Z"
}
```

### Pricing

Pay-per-event. For current pricing and details, see the Store page.

### Privacy & Compliance

This Actor reads only publicly accessible pages and returns the public data they show. It sends no login.

# Actor input Schema

## `searchQueries` (type: `array`):

One or more PagineGialle category and location paths (e.g. "lazio/roma/ristoranti" or "roma/ristoranti") or full search listing URLs (e.g. "https://www.paginegialle.it/lazio/roma/ristoranti.html").

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

Maximum number of Italian business lead records to extract and save.

## `maxPages` (type: `integer`):

Maximum listing pages to crawl per search query, 1 to 100 (30 business results per full page). Values above 100 are treated as 100.

## Actor input object example

```json
{
  "searchQueries": [
    "https://www.paginegialle.it/lazio/roma/ristoranti.html"
  ],
  "maxItems": 10,
  "maxPages": 1
}
```

# Actor output Schema

## `dataset` (type: `string`):

Items scraped from the target website.

# 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 = {
    "searchQueries": [
        "https://www.paginegialle.it/lazio/roma/ristoranti.html"
    ],
    "maxItems": 10,
    "maxPages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("reventadata/paginegialle-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 = {
    "searchQueries": ["https://www.paginegialle.it/lazio/roma/ristoranti.html"],
    "maxItems": 10,
    "maxPages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("reventadata/paginegialle-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 '{
  "searchQueries": [
    "https://www.paginegialle.it/lazio/roma/ristoranti.html"
  ],
  "maxItems": 10,
  "maxPages": 1
}' |
apify call reventadata/paginegialle-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,reventadata/paginegialle-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/oy9jfit7bBeR2w965/builds/AxuplwkihMWTEeaai/openapi.json
