{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen Deal Finder – Underpriced Ads & Price Drops",
    "description": "Monitor Kleinanzeigen.de searches and get only new listings, scored against the market median: deals, price drops, scam flags. For resellers & flippers.",
    "version": "2.2",
    "x-build-id": "Ll1mVrsmGjuxQTtil"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ninhothedev~kleinanzeigen-deal-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ninhothedev-kleinanzeigen-deal-finder",
        "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/ninhothedev~kleinanzeigen-deal-finder/runs": {
      "post": {
        "operationId": "runs-sync-ninhothedev-kleinanzeigen-deal-finder",
        "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/ninhothedev~kleinanzeigen-deal-finder/run-sync": {
      "post": {
        "operationId": "run-sync-ninhothedev-kleinanzeigen-deal-finder",
        "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 keywords",
            "type": "array",
            "description": "Keywords to monitor, one per line (e.g. 'iphone 13 pro', 'rolex submariner', 'ps5'). Each keyword is its own monitored search, combined with the location / category / price filters below. Leave empty if you paste search URLs instead.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location (city or PLZ)",
            "type": "string",
            "description": "City, district or 5-digit German postal code, e.g. 'Berlin', 'München' or '10115'. Leave empty for all of Germany."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Search radius around the location. Kleinanzeigen supports 5, 10, 20, 30, 50, 100, 150 and 200 km - other values are rounded up. 0 = only the location itself.",
            "default": 0
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "195",
              "403",
              "203",
              "205",
              "196",
              "208",
              "207",
              "277",
              "197",
              "199",
              "402",
              "275",
              "238",
              "198",
              "80",
              "86",
              "88",
              "84",
              "89",
              "81",
              "246",
              "82",
              "239",
              "91",
              "93",
              "90",
              "87",
              "210",
              "216",
              "217",
              "223",
              "211",
              "305",
              "306",
              "276",
              "280",
              "220",
              "241",
              "153",
              "154",
              "159",
              "160",
              "158",
              "224",
              "156",
              "157",
              "155",
              "102",
              "107",
              "247",
              "111",
              "110",
              "123",
              "114",
              "117",
              "118",
              "105",
              "125",
              "109",
              "161",
              "408",
              "409",
              "407",
              "405",
              "406",
              "173",
              "176",
              "172",
              "226",
              "245",
              "279",
              "278",
              "228",
              "225",
              "285",
              "175",
              "227",
              "168",
              "17",
              "23",
              "22",
              "20",
              "258",
              "19",
              "25",
              "21",
              "236",
              "237",
              "18",
              "130",
              "134",
              "313",
              "139",
              "136",
              "243",
              "135",
              "138",
              "132",
              "133",
              "283",
              "185",
              "230",
              "249",
              "234",
              "240",
              "282",
              "187",
              "233",
              "248",
              "191",
              "250",
              "189",
              "232",
              "242",
              "73",
              "74",
              "76",
              "78",
              "79",
              "77",
              "284",
              "281",
              "75",
              "231",
              "255",
              "257",
              "287",
              "251",
              "254",
              "286",
              "252",
              "256",
              "297",
              "291",
              "296",
              "289",
              "294",
              "293",
              "292",
              "288",
              "295",
              "290",
              "298",
              "272",
              "192",
              "273",
              "274",
              "235",
              "268",
              "262",
              "271",
              "263",
              "269",
              "261",
              "266",
              "267",
              "264",
              "265",
              "260",
              "270",
              "400",
              "401"
            ],
            "type": "string",
            "description": "Optional Kleinanzeigen category. Can also be used without keywords to scrape a whole category (combine with a location).",
            "default": ""
          },
          "minPrice": {
            "title": "Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or above this amount."
          },
          "maxPrice": {
            "title": "Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this amount."
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Optional: Kleinanzeigen.de search-result URLs with all filters applied (open kleinanzeigen.de, search, set filters, copy the address bar), e.g. https://www.kleinanzeigen.de/s-rolex-gmt-master/k0. Each search is monitored independently. Single listing pages (/s-anzeige/...) are not searches and are skipped.",
            "items": {
              "type": "string"
            }
          },
          "dealThresholdPercent": {
            "title": "Deal threshold (% below median)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "A listing is flagged as a deal when its price is at least this many percent below the trimmed median price of comparable active listings in the same search.",
            "default": 25
          },
          "maxListingAgeHours": {
            "title": "Max listing age (hours)",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Only listings published within the last X hours can be flagged as deals. Lower = catch fresh deals before everyone else. Listings older than this are still scraped, just never marked as a deal.",
            "default": 6
          },
          "privateOnly": {
            "title": "Private sellers only",
            "type": "boolean",
            "description": "When enabled, commercial / PRO sellers are excluded. Private sellers are usually where the real bargains are.",
            "default": false
          },
          "dealsOnly": {
            "title": "Only output deals & price drops",
            "type": "boolean",
            "description": "Push only listings flagged as a deal or whose price dropped since the last run (everything else is still tracked for the median and the seen-list, but not saved or charged).",
            "default": false
          },
          "strictTitleMatch": {
            "title": "Strict title match",
            "type": "boolean",
            "description": "Kleinanzeigen's search is fuzzy ('iphone 13' also returns iPhone 12 ads). When on, only listings whose title contains every search word are scored and saved, which keeps the market median like-for-like. Turn off for broad category monitoring.",
            "default": true
          },
          "fetchDetails": {
            "title": "Fetch listing details",
            "type": "boolean",
            "description": "Load each new listing's detail page for full description, all images and seller profile (active since, listing count). Slower and adds a per-item charge. Recommended OFF for high-frequency monitoring, ON for research runs.",
            "default": false
          },
          "compareEbaySold": {
            "title": "Compare against eBay sold prices",
            "type": "boolean",
            "description": "Best-effort: for each flagged deal, try to look up eBay.de sold prices and attach ebaySoldMedian / ebayMarginPercent. Note: eBay.de currently requires a login for sold-price searches, so these fields usually stay empty.",
            "default": false
          },
          "maxItemsPerSearch": {
            "title": "Max new items to push per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of NEW listings pushed to the dataset per search URL. Caps cost on very broad searches.",
            "default": 100
          },
          "medianBasisDepth": {
            "title": "Median basis depth",
            "minimum": 25,
            "maximum": 500,
            "type": "integer",
            "description": "How many listings to scan per search to build the market median (the deal benchmark) on a refresh run. Higher = more robust deal scoring. Only NEW listings are pushed and charged; the rest are used purely to compute the median.",
            "default": 100
          },
          "medianRefreshEveryRuns": {
            "title": "Refresh median every N runs",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "The market median changes slowly, so it is cached between runs. Only every Nth run does a full deep scan to refresh it; in-between runs do a light scan that's enough to catch new listings. Lower = fresher median but more requests. With a 5-minute schedule, 6 means refresh ~every 30 minutes.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Apify Datacenter proxy is enough for most searches; switch to Residential if you hit blocks.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": []
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}