{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen Scraper - Germany Classifieds & Seller Leads",
    "description": "Scrape Kleinanzeigen.de, Germany's #1 classifieds. Cars, real estate, jobs, electronics, furniture & more — real prices, full attributes, all images, descriptions, geo, plus private/commercial seller leads. Filter by keyword, category, city, radius & price. Monitor new ads. Export JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "4AspukTR9EztFAx7s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~kleinanzeigen-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-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/scrapesage~kleinanzeigen-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-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/scrapesage~kleinanzeigen-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-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 queries",
            "type": "array",
            "description": "Keywords to search on Kleinanzeigen, e.g. <code>iphone 15</code>, <code>bmw 3er</code>, <code>sofa</code>, <code>wohnung</code>. Each query is combined with the category, location and price filters below. Leave empty to browse purely by category, or use Start URLs.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Paste any Kleinanzeigen.de URL — a search/category page (<code>https://www.kleinanzeigen.de/s-autos/berlin/c216l3331</code>), an ad page (<code>.../s-anzeige/...</code>) or a seller page (<code>.../s-bestandsliste.html?userId=...</code>). The best way to scrape a specific category or city with the exact filters you set on the site. Used in addition to search queries.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingUrls": {
            "title": "Listing (ad) URLs",
            "type": "array",
            "description": "Direct Kleinanzeigen ad URLs (<code>https://www.kleinanzeigen.de/s-anzeige/...</code>) to scrape full detail for. Each is fetched as a full listing-detail record.",
            "items": {
              "type": "string"
            }
          },
          "sellerUrls": {
            "title": "Seller URLs",
            "type": "array",
            "description": "Kleinanzeigen seller storefront URLs (<code>.../s-bestandsliste.html?userId=12345</code> or commercial <code>.../pro/&lt;shop&gt;</code>) to scrape that seller's active listings (and, with seller leads on, a lead record).",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Limit results to a category. Use a friendly name (<code>Autos</code>, <code>Immobilien</code>, <code>Jobs</code>, <code>Elektronik</code>, <code>Handy &amp; Telefon</code>, <code>Mode &amp; Beauty</code>, <code>Haustiere</code>, <code>Eintrittskarten &amp; Tickets</code>) or a raw Kleinanzeigen code like <code>c216</code>. For sub-categories, use Start URLs."
          },
          "location": {
            "title": "City / location",
            "type": "string",
            "description": "City or place name to limit results to, e.g. <code>Berlin</code>, <code>München</code>, <code>Hamburg</code>, <code>Köln</code>. Resolved automatically to a Kleinanzeigen location. Leave empty for all of Germany."
          },
          "radius": {
            "title": "Radius (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Search radius in kilometres around the selected city (only applies when a location is set). Common values: 5, 10, 20, 50, 100, 200."
          },
          "minPrice": {
            "title": "Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads at or above this price, in euros."
          },
          "maxPrice": {
            "title": "Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads at or below this price, in euros."
          },
          "offerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "commercial"
            ],
            "type": "string",
            "description": "Filter by who is selling. <b>Commercial</b> = professional / business sellers only (dealers, shops — great for lead-gen). <b>Private</b> = individuals only. <b>Any</b> = both.",
            "default": "any"
          },
          "adType": {
            "title": "Ad type",
            "enum": [
              "any",
              "offer",
              "wanted"
            ],
            "type": "string",
            "description": "<b>Offers</b> = items/properties/jobs offered (the default). <b>Wanted</b> = \"Gesuch\" ads from buyers looking for something. <b>Any</b> = both.",
            "default": "any"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "relevance",
              "price_asc"
            ],
            "type": "string",
            "description": "How to order results. Newest first is recommended for monitoring.",
            "default": "newest"
          },
          "includeListingDetails": {
            "title": "Include full listing details",
            "type": "boolean",
            "description": "For every listing, open its ad page and add the full description, every structured attribute (car specs / property specs / condition), the complete image gallery, category path, view count and the seller (private vs commercial). Charged as <code>listingDetail</code>. Slower but far richer.",
            "default": false
          },
          "includeSellerLeads": {
            "title": "Output seller leads",
            "type": "boolean",
            "description": "Also output one deduplicated lead record (type = \"sellerLead\") per unique seller behind the scraped ads — with name, private/commercial type, storefront URL, member-since date, active-ad count, location, reputation badges, price range, sample listings and a 0–100 lead score. Opening ad pages is required, so this implies full listing details.",
            "default": false
          },
          "enrichSellerContacts": {
            "title": "Enrich commercial seller contacts",
            "type": "boolean",
            "description": "For commercial sellers, also open their storefront and best-effort extract a website, email and phone from the dealer's public profile / imprint. Adds extra requests.",
            "default": false
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of listings to scrape across all queries. Kleinanzeigen has tens of thousands of ads per query — use category, location and price filters to focus.",
            "default": 80
          },
          "maxSellerLeads": {
            "title": "Max seller leads",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of seller-lead records to emit (when seller leads are on).",
            "default": 200
          },
          "monitorMode": {
            "title": "Monitoring mode — only new records",
            "type": "boolean",
            "description": "Remember ids across runs in a named key-value store and emit ONLY records not seen before (new ads, new sellers). Perfect for deal alerts and price-watching. Works with Apify Schedules.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the memory used by monitoring mode. Use a distinct key per saved search so different watches don't share state.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Residential proxies (Germany) are strongly recommended and used by default — Kleinanzeigen serves residential IPs reliably; datacenter IPs are blocked.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "DE"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}