{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen Scraper - Germany Classifieds Listings & Prices",
    "description": "Scrape kleinanzeigen.de (formerly eBay Kleinanzeigen) by keyword, city and category: parsed prices and price type (VB/Festpreis/zu verschenken), ISO dates, location, images, optional full ad details and an only-new mode for deal alerts. No start fee, privacy-safe.",
    "version": "0.1",
    "x-build-id": "iaxGNk3h0bqycH02o"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rjmacarthy~kleinanzeigen-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rjmacarthy-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/rjmacarthy~kleinanzeigen-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rjmacarthy-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/rjmacarthy~kleinanzeigen-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rjmacarthy-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 keywords",
            "type": "array",
            "description": "What you would type into Kleinanzeigen's search box, one per line, e.g. \"fahrrad\", \"iphone 15\" or \"kinderwagen\". Each keyword is a separate search with the location and category below. Leave empty to browse a whole category/location, or if you only use start URLs.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location (city or state)",
            "type": "string",
            "description": "German city, district or state as written on Kleinanzeigen, e.g. \"Berlin\", \"München\", \"Köln\" or \"Bayern\". For towns that exist twice add the state (\"Fürth, Bayern\"); a raw location id like \"l3331\" also works. Empty = all of Germany. Postcodes and search radius are not supported: Kleinanzeigen's robots.txt disallows the postcode lookup and all radius URLs."
          },
          "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: limit the search to one Kleinanzeigen category (e.g. Fahrräder & Zubehör). Leave empty for all categories. You can also browse a whole category without keywords."
          },
          "priceMin": {
            "title": "Minimum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only output listings at or above this price. Applied to the scraped results (the site's own price filter URLs are disallowed by its robots.txt), so a narrow range may page through more results. Listings without a price (\"VB\" only) are skipped when a price filter is set."
          },
          "priceMax": {
            "title": "Maximum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only output listings at or below this price. \"Zu verschenken\" (free) listings count as 0 €. See Minimum price for how filtering works."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional: kleinanzeigen.de search result URLs copied from your browser (starting with https://www.kleinanzeigen.de/s-...). Category and attribute filters in the URL are kept. URLs that robots.txt disallows (radius, price, sort or seller-type filters) are skipped with a warning.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max listings per search",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to output for each keyword / start URL. 0 = no limit (Kleinanzeigen shows at most 50 pages, about 1,250 listings, per search).",
            "default": 100
          },
          "fetchDetails": {
            "title": "Fetch ad details",
            "type": "boolean",
            "description": "Also open every ad page to add the full description, attributes (Art, Zustand, ...), all image URLs, seller type (private/commercial) and, for commercial sellers only, the business name. One extra request per listing, charged as a separate \"listing-details\" event.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Output only listings not output by an earlier run with the same \"State key\" (remembered in a named key-value store). The first run outputs everything and becomes the baseline. Schedule the Actor (e.g. hourly) for deal alerts.",
            "default": false
          },
          "stateKey": {
            "title": "State key (for only new listings)",
            "type": "string",
            "description": "Name of the memory used by \"Only new listings\". Use a different key per monitor so they don't share seen ads.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Usually not needed. If kleinanzeigen.de blocks the run (HTTP 403/429), enable Apify Proxy (automatic/datacenter). Residential proxies are not supported: if you pick the RESIDENTIAL group the Actor falls back to datacenter proxy.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}