{
  "openapi": "3.0.1",
  "info": {
    "title": "Gelbe Seiten Scraper — German Business Leads",
    "description": "Export public Gelbe Seiten.de business listings by keyword and location: names, addresses, plaintext phones and emails when shown, websites and ratings. List-only by default; optional details. Failed detail rows are kept as list rows. No login.",
    "version": "0.1",
    "x-build-id": "QJCC4n0KnTTWLM4m9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stone_jadex~gelbeseiten-business-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stone_jadex-gelbeseiten-business-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/stone_jadex~gelbeseiten-business-scraper/runs": {
      "post": {
        "operationId": "runs-sync-stone_jadex-gelbeseiten-business-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/stone_jadex~gelbeseiten-business-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-stone_jadex-gelbeseiten-business-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": {
          "startUrls": {
            "title": "Gelbe Seiten start URLs",
            "type": "array",
            "description": "HTTPS www.gelbeseiten.de|gelbeseiten.de public /suche/{WAS}/{WO} or /gsbiz/{uuid} URLs. Ajax (/ajaxsuche), off-site hosts, credentials, non-443 ports and signed auth query tokens are rejected. Cannot be combined with keywords/filters search intent.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search what-terms (WAS). Default [\"restaurant\"] applies only when there are no seeds and no explicit keyword/location. Each keyword becomes its own /suche/{slug}/{location} seed. Conflicts with startUrls.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword (singular alias)",
            "type": "string",
            "description": "Singular alias merged into keywords. Conflicts with startUrls."
          },
          "location": {
            "title": "Location (top-level)",
            "type": "string",
            "description": "Top-level alias of filters.location (WO). Default Berlin applies only with the default restaurant keyword path when no seeds and no explicit search. Conflicts with startUrls."
          },
          "sort": {
            "title": "Sort (top-level)",
            "enum": [
              "relevanz",
              "bewertung",
              "entfernung"
            ],
            "type": "string",
            "description": "Top-level alias of filters.sort. Allowed: relevanz|bewertung|entfernung. Only relevanz was probe-tested; other values are accepted as raw ajax form passthrough with a warning.",
            "default": "relevanz"
          },
          "filters": {
            "title": "Search filters",
            "type": "object",
            "description": "Search filters. keywords/keyword + location build /suche/{WAS}/{WO}. sort and umkreis are forwarded on ajax load-more. Any nonempty filter search combined with startUrls is rejected.",
            "properties": {
              "keywords": {
                "title": "Keywords",
                "type": "array",
                "description": "Alias of top-level keywords (WAS terms).",
                "prefill": [
                  "restaurant"
                ],
                "editor": "stringList"
              },
              "keyword": {
                "title": "Keyword",
                "type": "string",
                "description": "Singular alias merged into filters.keywords.",
                "prefill": "restaurant",
                "editor": "textfield"
              },
              "location": {
                "title": "Location",
                "type": "string",
                "description": "Where-term (WO), e.g. Berlin. Default Berlin on the empty-input path.",
                "prefill": "Berlin",
                "editor": "textfield"
              },
              "sort": {
                "title": "Sort",
                "type": "string",
                "description": "Ajax sortierung. Allowed relevanz|bewertung|entfernung. Only relevanz was probe-tested.",
                "prefill": "relevanz",
                "default": "relevanz",
                "enum": [
                  "relevanz",
                  "bewertung",
                  "entfernung"
                ],
                "enumTitles": [
                  "Relevance (probe-tested)",
                  "Rating (passthrough, unvalidated)",
                  "Distance (passthrough, unvalidated)"
                ],
                "editor": "select"
              },
              "umkreis": {
                "title": "Radius (umkreis)",
                "type": "integer",
                "description": "Ajax umkreis form value. Default -1 (site-wide / as rendered by SSR load-more). Forwarded unchanged on pagination.",
                "prefill": -1,
                "default": -1,
                "minimum": -1,
                "maximum": 1000000
              }
            }
          },
          "maxItems": {
            "title": "Maximum businesses",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global successfully pushed-row limit; clamped to 1–10000. Duplicate uuids are skipped before enrich/charge and do not count toward the limit.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Fetch /gsbiz/{uuid} detail pages (JSON-LD LocalBusiness/FoodEstablishment/Restaurant + HTML modules). Default false = list-only. Direct detail startUrls force a detail request even when false. List-only rows charge gelbeseiten-listing-result; successfully detail-merged rows (detailStatus=ok) charge gelbeseiten-detail-result only (not both). Failed detail enrichments are not charged. List-only runs set fieldUnavailableReason.detailNotRequested.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 1200,
            "maximum": 60000,
            "type": "integer",
            "description": "Minimum interval between consecutive completed requests (serial). Clamped to 1200–60000. robots.txt crawl-delay may raise the floor.",
            "default": 1200
          },
          "maxRunSeconds": {
            "title": "Maximum run seconds",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "Soft wall-clock budget for the run. Soft deadline is also capped 20s before the platform timeout when ACTOR_TIMEOUT_AT / APIFY_TIMEOUT_AT is set. Hitting the budget stops SUCCEEDED (run-time-limit).",
            "default": 3600
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Buyer proxy is not supported in this freeze. Omit the field, or pass {\"useApifyProxy\":false} only. Any nonempty proxy settings are rejected."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}