{
  "openapi": "3.0.1",
  "info": {
    "title": "Gelbe Seiten Scraper — German Business Leads, Emails & Phones",
    "description": "Extract German local business leads from GelbeSeiten.de. Collect company names, categories, phone numbers, verified direct emails, decoded websites, street addresses, postal codes (PLZ), GPS coordinates, opening hours, ratings, and keywords across every city in Germany.",
    "version": "0.1",
    "x-build-id": "5nirVsIgvAYXXeApy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~gelbeseiten-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-gelbeseiten-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~gelbeseiten-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-gelbeseiten-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~gelbeseiten-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-gelbeseiten-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 industries or keywords (WAS)",
            "type": "array",
            "description": "German or English business types or keywords to search (for example: 'zahnarzt', 'steuerberater', 'rechtsanwalt', 'elektriker', 'restaurant', 'immobilienmakler'). Leave empty for a curated German SMB mix.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "German cities (WO — dropdown)",
            "type": "array",
            "description": "Select one or more major German cities. Combine with custom cities below to target any smaller town or 5-digit PLZ.",
            "items": {
              "type": "string",
              "enum": [
                "berlin",
                "muenchen",
                "hamburg",
                "koeln",
                "frankfurt-am-main",
                "stuttgart",
                "duesseldorf",
                "leipzig",
                "dortmund",
                "essen",
                "bremen",
                "dresden",
                "hannover",
                "nuernberg",
                "duisburg",
                "bochum",
                "wuppertal",
                "bielefeld",
                "bonn",
                "muenster"
              ],
              "enumTitles": [
                "Berlin",
                "Munich (München)",
                "Hamburg",
                "Cologne (Köln)",
                "Frankfurt am Main",
                "Stuttgart",
                "Düsseldorf",
                "Leipzig",
                "Dortmund",
                "Essen",
                "Bremen",
                "Dresden",
                "Hanover (Hannover)",
                "Nuremberg (Nürnberg)",
                "Duisburg",
                "Bochum",
                "Wuppertal",
                "Bielefeld",
                "Bonn",
                "Münster"
              ]
            }
          },
          "customCities": {
            "title": "Additional German cities, towns, or PLZ (optional)",
            "type": "array",
            "description": "Enter any German city, town, or 5-digit postal code not in the dropdown (for example: 'augsburg', 'freiburg', 'karlsruhe', '10117').",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "GelbeSeiten.de URLs (optional — search pages or business profiles)",
            "type": "array",
            "description": "Paste direct GelbeSeiten.de search URLs (e.g. https://www.gelbeseiten.de/suche/zahnarzt/berlin) or individual /gsbiz/ profile URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevanz",
              "bewertung",
              "name"
            ],
            "type": "string",
            "description": "Order in which Gelbe Seiten returns results.",
            "default": "relevanz"
          },
          "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": "Enrich from business profile page (direct email, opening hours, coordinates, keywords)",
            "type": "boolean",
            "description": "Visits each business's /gsbiz/ profile page to extract direct email address, structured opening hours, GPS coordinates, industry keywords, and full description.",
            "default": true
          },
          "onlyWithPhone": {
            "title": "Only businesses with phone number",
            "type": "boolean",
            "description": "Keep only businesses that publish a phone number.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only businesses with email address",
            "type": "boolean",
            "description": "Keep only businesses with a public email address (requires profile enrichment enabled).",
            "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": "Proxy settings for fast, reliable extraction at scale. Standard Apify datacenter proxies work cleanly.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}