{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen Scraper — Germany Ads, Cars & Prices",
    "description": "Scrape Kleinanzeigen.de (Germany's biggest classifieds) by keyword, category and city: title, price + VB, PLZ, city, state, date, photos, shipping, seller type, mileage and first registration. Optional ad pages for full text and car specs. Deep search beyond 5 pages. No login.",
    "version": "0.1",
    "x-build-id": "DWACsP0gnLLHHH0i5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~kleinanzeigen-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-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/yugenox~kleinanzeigen-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-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/yugenox~kleinanzeigen-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-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": {
          "searchTerms": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "Words to search for, as you would type them on kleinanzeigen.de, e.g. \"iphone 15\", \"golf 7\", \"kinderwagen\", \"e-bike\". Each term is a separate search. Leave empty to list a whole category or city.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "📂 Category",
            "type": "string",
            "description": "Optional: one Kleinanzeigen category by name or id, e.g. \"Autos\" (216), \"Smartphones\" (173), \"Fahrräder & Zubehör\" (217), \"Motorräder & Motorroller\" (305), \"Mietwohnungen\" (203), \"Haus & Garten\" (80), \"Notebooks\" (278). English words like \"cars\", \"phones\" or \"bikes\" work too. Combine it with search terms or use it alone."
          },
          "location": {
            "title": "📍 City or state",
            "type": "string",
            "description": "Optional: a German city, town or state, e.g. \"Berlin\", \"München\", \"Stuttgart\", \"Leipzig\", \"Lüneburg\", \"Bayern\", \"NRW\". If a town name exists in several states, add the state: \"Neustadt, Hessen\". A postcode alone can't be searched (use \"Postcodes\" under Filters to keep only some postcodes)."
          },
          "locations": {
            "title": "📍 More cities or states",
            "type": "array",
            "description": "Run the same searches in several places, e.g. [\"Berlin\", \"Hamburg\", \"München\"].",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Kleinanzeigen links",
            "type": "array",
            "description": "Optional: search or category links copied from kleinanzeigen.de (e.g. https://www.kleinanzeigen.de/s-autos/berlin/golf/k0c216l3331) and/or ad links (https://www.kleinanzeigen.de/s-anzeige/…/3529454569-216-7620). Price, private/commercial and offer/wanted settings in a link are applied as filters; a radius in a link is dropped (the whole city is searched).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max ads",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of ads for the whole run, shared fairly between your searches. 0 = as many as the site gives.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include ad details",
            "type": "boolean",
            "description": "Also open each ad's own page: the full description, every photo, the detail table (brand, model, km, first registration, power, fuel, gearbox, HU/TÜV, condition, storage …), equipment features and shipping price. Charged per ad page (see Pricing). Off = the data shown on the results pages.",
            "default": false
          },
          "deepSearch": {
            "title": "Deep search (beyond 5 pages)",
            "type": "boolean",
            "description": "Kleinanzeigen shows at most 5 results pages (about 125 ads) per search. When a search has more and you ask for more, the run reads it again per state and per city to reach deeper. Each results page read is charged (see Pricing).",
            "default": true
          },
          "onlyNew": {
            "title": "Only new ads",
            "type": "boolean",
            "description": "Skip ads that an earlier run with the same input already saved (not charged). Results are newest first, so a search stops at the first results page whose ads were all saved before — ideal for hourly or daily monitoring.",
            "default": false
          },
          "includeTopAds": {
            "title": "Include top ads",
            "type": "boolean",
            "description": "Top ads are paid placements Kleinanzeigen shows at the top of every results page (marked isTopAd). They can be older than the regular results or come from sellers outside the searched area. Turn off to keep only the regular results.",
            "default": true
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only ads with a price of at least this much. Ads without an amount (just \"VB\") are left out when set."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only ads with a price of at most this much. Ads without an amount are left out when set."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "all",
              "private",
              "commercial"
            ],
            "type": "string",
            "description": "Private sellers, commercial sellers (dealers, shops) or both.",
            "default": "all"
          },
          "adType": {
            "title": "Offers or wanted ads",
            "enum": [
              "all",
              "offers",
              "wanted"
            ],
            "type": "string",
            "description": "Kleinanzeigen has offers (Angebote) and wanted ads (Gesuche, people looking for something).",
            "default": "all"
          },
          "shippingOnly": {
            "title": "Shipping possible only",
            "type": "boolean",
            "description": "Keep only ads that offer shipping (\"Versand möglich\").",
            "default": false
          },
          "postalCodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "Keep only ads whose postcode (PLZ) starts with one of these, e.g. [\"10\", \"12\", \"80331\"]. Works best together with a city or state above.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Keep only ads dated within the last N days (1 = today). The search stops once the results get older."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Keep the default (Apify Proxy). Kleinanzeigen turns away most datacenter IPs, so the run switches to residential proxies by itself when your account has them; that traffic is covered by the event prices.",
            "default": {
              "useApifyProxy": true
            }
          },
          "_noResidential": {
            "title": "Run as an account without residential proxies",
            "type": "boolean",
            "description": "Internal (canaries): behave exactly like an account without the RESIDENTIAL proxy group.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}