{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen.de Scraper",
    "description": "Scrape kleinanzeigen.de ads by keyword, category and location. Price, seller-type and offer-type filters, radius search, full ad pages with attributes, seller info and GPS, and incremental monitoring that emits only new or changed ads on scheduled runs.",
    "version": "1.0",
    "x-build-id": "dhNLOr1eHw9tXezm2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trev0n~kleinanzeigen-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trev0n-kleinanzeigen-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/trev0n~kleinanzeigen-scraper/runs": {
      "post": {
        "operationId": "runs-sync-trev0n-kleinanzeigen-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/trev0n~kleinanzeigen-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-trev0n-kleinanzeigen-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": "🔍 Search terms",
            "type": "array",
            "description": "What to search for, e.g. \"e-bike\" or \"iphone 15\". Each term is a separate search; results are deduplicated. Leave empty to list everything in the chosen category and/or location.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "🗂️ Category",
            "enum": [
              "",
              "210",
              "216",
              "223",
              "211",
              "217",
              "305",
              "306",
              "276",
              "280",
              "220",
              "241",
              "297",
              "288",
              "289",
              "290",
              "293",
              "291",
              "292",
              "294",
              "295",
              "296",
              "298",
              "231",
              "286",
              "254",
              "287",
              "252",
              "255",
              "257",
              "251",
              "256",
              "161",
              "172",
              "226",
              "245",
              "176",
              "408",
              "279",
              "278",
              "228",
              "225",
              "173",
              "285",
              "407",
              "175",
              "227",
              "405",
              "406",
              "168",
              "17",
              "236",
              "22",
              "19",
              "258",
              "21",
              "237",
              "25",
              "20",
              "23",
              "18",
              "185",
              "232",
              "248",
              "187",
              "282",
              "240",
              "191",
              "249",
              "233",
              "234",
              "230",
              "250",
              "189",
              "242",
              "80",
              "91",
              "93",
              "246",
              "239",
              "89",
              "90",
              "84",
              "86",
              "82",
              "81",
              "88",
              "87",
              "130",
              "138",
              "134",
              "136",
              "132",
              "135",
              "139",
              "133",
              "283",
              "243",
              "313",
              "195",
              "199",
              "402",
              "196",
              "275",
              "197",
              "277",
              "207",
              "208",
              "205",
              "203",
              "403",
              "238",
              "198",
              "102",
              "118",
              "111",
              "114",
              "110",
              "105",
              "107",
              "125",
              "123",
              "247",
              "117",
              "109",
              "153",
              "224",
              "154",
              "159",
              "160",
              "158",
              "156",
              "157",
              "155",
              "73",
              "76",
              "281",
              "284",
              "77",
              "79",
              "78",
              "74",
              "75",
              "400",
              "401",
              "235",
              "269",
              "260",
              "265",
              "263",
              "264",
              "262",
              "268",
              "261",
              "271",
              "267",
              "266",
              "270",
              "272",
              "273",
              "274",
              "192"
            ],
            "type": "string",
            "description": "Limit the search to one category or sub-category.",
            "default": ""
          },
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "City, district or state, e.g. \"Berlin\", \"München\", \"Frankfurt am Main\", \"Bayern\". Add the state to disambiguate (\"Neustadt, Bayern\"). A numeric kleinanzeigen location id also works. Leave empty for all of Germany."
          },
          "radiusKm": {
            "title": "📏 Radius around the location (km)",
            "enum": [
              "0",
              "5",
              "10",
              "20",
              "30",
              "50",
              "100",
              "150",
              "200"
            ],
            "type": "string",
            "description": "Include ads around the location. Needs a location.",
            "default": "0"
          },
          "startUrls": {
            "title": "🔗 Start URLs",
            "type": "array",
            "description": "Paste kleinanzeigen.de search result pages (any filters you set on the site are kept) or individual ad pages.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "minPrice": {
            "title": "💶 Minimum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "💶 Maximum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no maximum.",
            "default": 0
          },
          "sort": {
            "title": "↕️ Sort by",
            "enum": [
              "newest",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "newest"
          },
          "posterType": {
            "title": "👤 Seller type",
            "enum": [
              "",
              "private",
              "commercial"
            ],
            "type": "string",
            "description": "Private sellers, commercial sellers or both.",
            "default": ""
          },
          "adType": {
            "title": "🏷️ Ad type",
            "enum": [
              "",
              "offered",
              "wanted"
            ],
            "type": "string",
            "description": "Offers (Angebote), requests (Gesuche) or both.",
            "default": ""
          },
          "buyNowOnly": {
            "title": "🛒 \"Direkt kaufen\" only",
            "type": "boolean",
            "description": "Only ads that can be bought directly with buyer protection.",
            "default": false
          },
          "shippingOnly": {
            "title": "📦 Shipping available only",
            "type": "boolean",
            "description": "Only ads whose seller offers shipping.",
            "default": false
          },
          "maxResults": {
            "title": "🔢 Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of ads per run across all searches. 0 = unlimited (kleinanzeigen.de shows at most 1 250 ads per search — narrow by price, category or location to go further).",
            "default": 100
          },
          "maxPagesPerSearch": {
            "title": "📄 Max pages per search",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "25 ads per page. 0 = no limit (the site stops at 50).",
            "default": 0
          },
          "includeDetails": {
            "title": "📑 Include full ad details",
            "type": "boolean",
            "description": "Open every ad page for the full description, all attributes (mileage, rooms, rent, condition…), equipment, GPS coordinates, seller name, seller since and badges. Slower: one extra request per ad.",
            "default": false
          },
          "descriptionMaxLength": {
            "title": "✂️ Max description length",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate full descriptions to this many characters. 0 = no limit.",
            "default": 0
          },
          "detailConcurrency": {
            "title": "⚡ Ad pages in parallel",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many ad pages to open at the same time.",
            "default": 5
          },
          "includeKeywords": {
            "title": "✅ Must contain (any)",
            "type": "array",
            "description": "Keep only ads whose title or description contains at least one of these words.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "🚫 Must not contain",
            "type": "array",
            "description": "Drop ads whose title or description contains any of these words, e.g. \"defekt\", \"tausch\".",
            "items": {
              "type": "string"
            }
          },
          "excludeTopAds": {
            "title": "🙈 Skip paid TOP ads",
            "type": "boolean",
            "description": "TOP ads are paid placements that repeat at the top of every page, out of date order.",
            "default": false
          },
          "maxAgeMinutes": {
            "title": "⏱️ Max ad age (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only ads posted within this many minutes. 0 = any age.",
            "default": 0
          },
          "compact": {
            "title": "🗜️ Compact output",
            "type": "boolean",
            "description": "Only the essential fields: id, title, price, place, date, seller type, URL, image.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "🧹 Drop empty fields",
            "type": "boolean",
            "description": "Remove fields with no value from every result.",
            "default": false
          },
          "incrementalMode": {
            "title": "🔁 Monitoring mode (only new & changed ads)",
            "type": "boolean",
            "description": "Remember what earlier runs saw and output only NEW, UPDATED (price or text changed) and REAPPEARED ads. Schedule the actor to get fresh deals only — and pay only for them.",
            "default": false
          },
          "stateKey": {
            "title": "🔑 Monitor name",
            "type": "string",
            "description": "Name of the memory this monitor uses. Leave empty to derive it from the search. Use different names for different monitors."
          },
          "emitUnchanged": {
            "title": "📋 Also output unchanged ads",
            "type": "boolean",
            "description": "In monitoring mode, also output ads that did not change since the last run.",
            "default": false
          },
          "emitExpired": {
            "title": "⌛ Also output ads that disappeared",
            "type": "boolean",
            "description": "In monitoring mode, also output ads that are no longer in the results.",
            "default": false
          },
          "skipReposts": {
            "title": "♻️ Skip reposts",
            "type": "boolean",
            "description": "Drop NEW ads whose content matches an ad that recently disappeared (the same item re-posted under a new id).",
            "default": false
          },
          "webhookUrl": {
            "title": "🔗 Webhook URL",
            "type": "string",
            "description": "POST the new/changed ads as JSON to this URL after each run."
          },
          "telegramBotToken": {
            "title": "✈️ Telegram bot token",
            "type": "string",
            "description": "Token of your Telegram bot (from @BotFather)."
          },
          "telegramChatId": {
            "title": "✈️ Telegram chat id",
            "type": "string",
            "description": "Chat id the Telegram bot should post to."
          },
          "discordWebhookUrl": {
            "title": "💬 Discord webhook URL",
            "type": "string",
            "description": "Discord channel webhook URL."
          },
          "slackWebhookUrl": {
            "title": "💼 Slack webhook URL",
            "type": "string",
            "description": "Slack incoming webhook URL."
          },
          "notifyOnlyChanges": {
            "title": "🔕 Notify only when something changed",
            "type": "boolean",
            "description": "Send a notification only when a run found new or changed ads.",
            "default": true
          },
          "notificationLimit": {
            "title": "🔢 Ads per notification",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many ads to list in one notification.",
            "default": 10
          },
          "includeRunSummary": {
            "title": "📊 Include run summary in webhook",
            "type": "boolean",
            "description": "Add the run statistics to the webhook payload.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy",
            "type": "object",
            "description": "kleinanzeigen.de works without a proxy in most runs.",
            "default": {
              "useApifyProxy": false
            }
          },
          "residentialFallback": {
            "title": "🔄 Switch to residential proxies when blocked",
            "type": "boolean",
            "description": "If the site refuses a request, the rest of the run continues through German residential proxies.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}