{
  "openapi": "3.0.1",
  "info": {
    "title": "DUB.de Scraper – German Businesses for Sale",
    "description": "Scrape businesses for sale (Unternehmen kaufen) from DUB.de, the German business exchange: revenue, earnings, employees, region, sector, sale reason, share for sale and multi-year financial history as JSON/CSV/Excel.",
    "version": "1.0",
    "x-build-id": "ie54RKhyVKtzjCGxW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/outlandish_mainsail~dub-business-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-outlandish_mainsail-dub-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/outlandish_mainsail~dub-business-scraper/runs": {
      "post": {
        "operationId": "runs-sync-outlandish_mainsail-dub-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/outlandish_mainsail~dub-business-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-outlandish_mainsail-dub-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": {
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to save (after filters). Listings are processed newest first. Set 0 for no limit (all ~2,000 listings).",
            "default": 100
          },
          "includeDetails": {
            "title": "Include full listing details",
            "type": "boolean",
            "description": "Open each listing (Exposé) page to add sector, sale reason, share for sale, full description, products & services, customers, market, competition and the multi-year revenue/earnings history. Turn off for a fast run that only uses the search results (title, summary, region, revenue, earnings, employees).",
            "default": true
          },
          "startUrls": {
            "title": "Specific URLs (optional)",
            "type": "array",
            "description": "DUB.de listing URLs (…/de/unternehmen-kaufen/expose/…) or a DUB.de 'Unternehmen kaufen' search URL with your filters already applied (copy it from the browser). Leave empty to use the filters below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Free-text search, e.g. 'Hotel', 'Software', 'Bäckerei'."
          },
          "sectors": {
            "title": "Sectors",
            "type": "array",
            "description": "Only listings in these sectors (DUB 'Branche').",
            "items": {
              "type": "string",
              "enum": [
                "agriculture_forestry",
                "automotive",
                "catering_food",
                "construction",
                "education",
                "energy_mining",
                "finance_insurance",
                "health",
                "house_garden",
                "leisure_sports",
                "lifestyle_fashion",
                "logistics",
                "media_marketing",
                "online_tech",
                "other",
                "personal_care",
                "plants_animals",
                "production",
                "real_estate",
                "retail",
                "services",
                "wholesale"
              ],
              "enumTitles": [
                "Agriculture & forestry",
                "Automotive / car services",
                "Catering / food",
                "Construction",
                "Education / tutoring / translation",
                "Energy / utilities / waste / mining",
                "Finance / insurance",
                "Health / medical / care",
                "House & garden",
                "Leisure / entertainment / fitness / sport",
                "Lifestyle / fashion / jewellery",
                "Logistics / transport",
                "Media / marketing / advertising",
                "Online / technology / IT",
                "Other",
                "Personal care / cosmetics",
                "Plants / pets",
                "Production / manufacturing",
                "Real estate",
                "Retail",
                "Services",
                "Wholesale"
              ]
            }
          },
          "saleReasons": {
            "title": "Reason for sale",
            "type": "array",
            "description": "Only listings with these transaction backgrounds (e.g. succession, distressed, insolvency).",
            "items": {
              "type": "string",
              "enum": [
                "succession_planning",
                "strategic_sale",
                "personal_reorientation",
                "carve_out",
                "distressed",
                "insolvency",
                "other"
              ],
              "enumTitles": [
                "Succession (Altersnachfolge)",
                "Strategic sale",
                "Personal reorientation",
                "Carve-out",
                "Distressed",
                "Insolvency",
                "Other"
              ]
            }
          },
          "shareTypes": {
            "title": "Share for sale",
            "type": "array",
            "description": "100% sale, majority or minority stake.",
            "items": {
              "type": "string",
              "enum": [
                "full_sale",
                "majority",
                "minority"
              ],
              "enumTitles": [
                "100% sale",
                "Majority stake",
                "Minority stake"
              ]
            }
          },
          "minRevenue": {
            "title": "Min revenue (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum yearly revenue (Umsatz) in euros."
          },
          "maxRevenue": {
            "title": "Max revenue (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum yearly revenue in euros."
          },
          "minEarnings": {
            "title": "Min earnings (EUR)",
            "type": "integer",
            "description": "Minimum yearly earnings (Ergebnis) in euros. Applied on the scraped data."
          },
          "maxEarnings": {
            "title": "Max earnings (EUR)",
            "type": "integer",
            "description": "Maximum yearly earnings in euros. Applied on the scraped data."
          },
          "locations": {
            "title": "Region contains",
            "type": "array",
            "description": "Keep only listings whose region contains any of these words, e.g. 'Bayern', 'Nordrhein', 'Österreich'. Case-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "includeListingsWithoutFinancials": {
            "title": "Include listings without revenue/earnings",
            "type": "boolean",
            "description": "Some sellers hide revenue or earnings ('Keine Angabe'). Turn off to keep only listings that show both.",
            "default": true
          },
          "skipPreviouslyScraped": {
            "title": "Only new listings since the last run",
            "type": "boolean",
            "description": "Remember listing IDs across runs (named key-value store 'dub-business-scraper-seen' in your account) and skip listings saved in an earlier run. Ideal for scheduled deal-flow alerts.",
            "default": false
          },
          "seenListingsKey": {
            "title": "State key for 'only new listings'",
            "type": "string",
            "description": "Use a different key per saved task if you monitor several searches separately.",
            "default": "SEEN_IDS"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed normally. Only use it if you get blocked.",
            "default": {
              "useApifyProxy": false
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Parallel requests. Keep it low to be polite to the website.",
            "default": 2
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Upper bound on request rate.",
            "default": 40
          },
          "delayBetweenRequestsSecs": {
            "title": "Delay between requests (s)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum pause between two page requests.",
            "default": 1.5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}