{
  "openapi": "3.0.1",
  "info": {
    "title": "PagineGialle.it Scraper — Italian Business Leads, Emails & VAT",
    "description": "Extract Italian local business leads from PagineGialle.it. Collect business names, categories, phone numbers, WhatsApp links, verified emails, websites, Partita IVA (VAT IDs), street addresses, coordinates, opening hours, ratings, and social links across every city in Italy.",
    "version": "0.1",
    "x-build-id": "ai37FY3dRt9wtPYCt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~paginegialle-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-paginegialle-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/haketa~paginegialle-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-paginegialle-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/haketa~paginegialle-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-paginegialle-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Business categories or keywords",
            "type": "array",
            "description": "Italian or English business types or keywords to search (for example: 'ristorante', 'idraulico', 'dentista', 'avvocato', 'hotel', 'parrucchiere'). Leave empty for a curated Italian SMB mix.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Italian cities (dropdown)",
            "type": "array",
            "description": "Select one or more major Italian cities to search in. Combine with custom cities below for any smaller town or province.",
            "items": {
              "type": "string",
              "enum": [
                "milano",
                "roma",
                "torino",
                "napoli",
                "firenze",
                "bologna",
                "venezia",
                "genova",
                "palermo",
                "verona",
                "bari",
                "catania",
                "padova",
                "brescia",
                "parma",
                "modena",
                "trieste",
                "bergamo",
                "monza",
                "cagliari"
              ],
              "enumTitles": [
                "Milan (Milano)",
                "Rome (Roma)",
                "Turin (Torino)",
                "Naples (Napoli)",
                "Florence (Firenze)",
                "Bologna",
                "Venice (Venezia)",
                "Genoa (Genova)",
                "Palermo",
                "Verona",
                "Bari",
                "Catania",
                "Padua (Padova)",
                "Brescia",
                "Parma",
                "Modena",
                "Trieste",
                "Bergamo",
                "Monza",
                "Cagliari"
              ]
            }
          },
          "customCities": {
            "title": "Additional Italian cities or towns (optional)",
            "type": "array",
            "description": "Enter any Italian municipality, province, or postal code not in the dropdown (for example: 'como', 'rimini', 'salerno', 'trento').",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "PagineGialle.it URLs (optional — search pages or business profiles)",
            "type": "array",
            "description": "Paste direct PagineGialle.it search URLs (e.g. https://www.paginegialle.it/ricerca/dentista/milano) or individual business profile URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Maximum businesses to collect",
            "minimum": 1,
            "maximum": 25000,
            "type": "integer",
            "description": "Total maximum unique businesses to collect across all searches, cities, and URLs.",
            "default": 100
          },
          "includeDetails": {
            "title": "Extra profile enrichment (legal name, payment methods, extra social links)",
            "type": "boolean",
            "description": "Email addresses, phones, WhatsApp links, websites, Partita IVA (VAT IDs), coordinates, ratings, and opening hours are already extracted automatically without extra requests. Enable this only if you also need legal company name, payment methods, or additional social links.",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only businesses with phone number",
            "type": "boolean",
            "description": "Skip records that do not publish a phone number.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only businesses with email address",
            "type": "boolean",
            "description": "Keep only businesses where a public email address is published.",
            "default": false
          },
          "onlyWithWebsite": {
            "title": "Only businesses with website",
            "type": "boolean",
            "description": "Keep only businesses that publish an official website URL.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Italian residential proxies are recommended for 100% reliable extraction with minimal bandwidth (~25 KB per 25 businesses).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IT"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}