{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen Deal Finder & Price Monitor",
    "description": "$2/1K 🔥 Kleinanzeigen DEAL FINDER for Germany 🇩🇪! Auto-spot underpriced listings vs. market median — flip, resell & profit. Title, price, deal-score, location & images. JSON, CSV, Excel or API. Paste a search URL & surface bargains instantly ⚡",
    "version": "0.0",
    "x-build-id": "SRrjncqb58pCCcZVn"
  },
  "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",
        "required": [
          "searchUrls"
        ],
        "properties": {
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "One or more Kleinanzeigen.de SEARCH-RESULTS URLs (with all filters applied in the URL). Open kleinanzeigen.de, type your keyword, set filters (category, location, radius, price), then copy the URL from the address bar — e.g. https://www.kleinanzeigen.de/s-rolex-gmt-master/k0. ⚠️ Do NOT paste a single listing page (a /s-anzeige/... URL) — that is one ad, not a search, and will be rejected. Each search is monitored independently. Soft limit: 10 searches per run.",
            "default": [
              "https://www.kleinanzeigen.de/s-handy-telefon/iphone-13/k0c173"
            ],
            "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
          },
          "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": "For each flagged deal, also look up eBay.de sold/completed prices and attach the eBay sold median + estimated cross-platform margin (ebaySoldMedian, ebayMarginPercent). Best-effort and only run on deals, so it stays cheap. Adds a little time per deal.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}