{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen Scraper — Ads, Prices & New-Listing Monitor",
    "description": "Export classified ads from Kleinanzeigen.de (Germany) with price, location, condition and photos, or monitor a search and get only new ads, price drops and removed ads on each run. No login needed.",
    "version": "0.1",
    "x-build-id": "rVH8p9Geh4b6BtMkj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muira_datamasters~kleinanzeigen-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muira_datamasters-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/muira_datamasters~kleinanzeigen-scraper/runs": {
      "post": {
        "operationId": "runs-sync-muira_datamasters-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/muira_datamasters~kleinanzeigen-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-muira_datamasters-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": {
          "searches": {
            "title": "Searches",
            "type": "array",
            "description": "One entry per search on kleinanzeigen.de. Each search can have:<br><b>query</b>: keywords as you would type them on Kleinanzeigen<br><b>category</b>: one of <code>bikes, electronics, phones, cars, furniture, fashion</code> (mapped to the matching Kleinanzeigen category)<br><b>siteCategory</b>: Kleinanzeigen category id or URL name (the number after <code>c</code> in a search URL, e.g. <code>217</code> for Fahrräder & Zubehör). Overrides <i>category</i><br><b>location</b>: German city name (e.g. <code>Berlin</code>) or 5-digit postcode (e.g. <code>10115</code>). Leave it out to search all of Germany.<br><b>radiusKm</b>: Kilometres around the location. Kleinanzeigen only offers 5, 10, 20, 30, 50, 100, 150 and 200 km, so other values are rounded to the nearest one.<br><b>label</b>: your own name for the search, copied to each result's <i>searchLabel</i><br>Each search needs at least a query, category, siteCategory or location. Example: <code>{\"query\":\"gravel bike\",\"category\":\"bikes\",\"location\":\"Berlin\",\"radiusKm\":50}</code>"
          },
          "startUrls": {
            "title": "Kleinanzeigen search URLs",
            "type": "array",
            "description": "Optional. Paste search result links copied from your browser on kleinanzeigen.de, with any filters you set there (e.g. <code>https://www.kleinanzeigen.de/s-fahrraeder/berlin/gravel/k0c217l…</code>). Each link is crawled like one search.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many ads in total across all searches (default 1,000). In Monitor mode it limits how many ads are checked per run (only changes are output); if left empty, Monitor checks 200 ads per run. Monitor checks are charged as a <i>monitor-scan</i> event per 100 ads."
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "In euros. Ads without a price are left out when a price limit is set."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "In euros. Ads without a price are left out when a price limit is set."
          },
          "condition": {
            "title": "Condition",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only ads in these conditions. Empty = all. Kleinanzeigen shows the condition only on the ad page, so this filter only works with <b>Include ad details</b> turned on; without it, ads are kept.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like_new",
                "good",
                "used",
                "for_parts"
              ],
              "enumTitles": [
                "New",
                "Like new",
                "Good",
                "Used",
                "For parts / broken"
              ]
            }
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Private sellers, businesses (Gewerblich) or both. Kleinanzeigen filters this on its side.",
            "default": "any"
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order in which Kleinanzeigen lists ads. <b>Kleinanzeigen has no \"most expensive first\" order</b>: \"Price: high to low\" falls back to newest first. Monitor mode always uses newest first.",
            "default": "newest"
          },
          "monitor": {
            "title": "Monitor settings",
            "type": "object",
            "description": "Fill this in to switch from a full export to <b>Monitor mode</b>: each run outputs only what changed since the previous run with the same <b>stateKey</b>. Each run checks up to <i>Max results</i> ads (200 if left empty) and is charged a <i>monitor-scan</i> event per 100 ads checked, plus one event per change output. The first run only records the current ads and outputs nothing: it pays the monitor-scan events but no per-ad events. <b>stateKey</b> (required): any name for this watch list, e.g. <code>berlin-gravel</code>; reuse it on every scheduled run. <b>emit</b>: which changes to output, any of <code>new</code>, <code>priceDrop</code>, <code>priceIncrease</code>, <code>removed</code> (default: new, priceDrop, removed). Removed ads are reported only for searches that fit within <i>Max results</i>. Example: <code>{\"stateKey\": \"berlin-gravel\", \"emit\": [\"new\", \"priceDrop\", \"removed\"]}</code>. Leave empty for a normal export."
          },
          "includeDetails": {
            "title": "Include ad details",
            "type": "boolean",
            "description": "Opens each ad page to add the condition (Zustand), shipping option, exact posting time, seller type and full category path. Slower, and charged as an extra <i>ad-detail</i> event per ad.",
            "default": false
          },
          "includeSellerNames": {
            "title": "Include business seller names",
            "type": "boolean",
            "description": "Adds the shop or company name for business sellers. Private sellers' names are never collected, and neither are phone numbers or emails.",
            "default": false
          },
          "splitDeepSearches": {
            "title": "Split large searches to get all results",
            "type": "boolean",
            "description": "Kleinanzeigen shows at most 50 pages (about 1,250 ads) per search. When a search has more results, it is split into the 16 German states and then into price bands so you can get all of them. Turn off to stop at the first 1,250.",
            "default": true
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxies in Germany. Kleinanzeigen blocks datacenter IPs; residential is included in the price. You can also choose your own proxies.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "DE"
            }
          },
          "healthCheck": {
            "title": "Health check (for scheduled monitoring)",
            "type": "object",
            "description": "Optional. Marks the run as <b>failed</b> when the site returned too few ads or the main fields are no longer filled, so a scheduled run can alert you when Kleinanzeigen changes its site. Results are still saved and charged. Example: <code>{\"minAds\": 20, \"minFillRate\": 0.9, \"minPriceFillRate\": 0.75}</code>. <i>minFillRate</i> covers title, link and city."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}