{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen Scraper & API - Listings, Prices & Price Drops",
    "description": "Monitor Kleinanzeigen listings by search, city and price range. Get asking prices, VB, price drops, location and listing links as CSV/JSON. Return only new listings and price changes across runs, or add full descriptions and attributes. Built for resellers and market research.",
    "version": "0.3",
    "x-build-id": "CgYUKzuAHRoStha94"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/surefeed~kleinanzeigen-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-surefeed-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/surefeed~kleinanzeigen-scraper/runs": {
      "post": {
        "operationId": "runs-sync-surefeed-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/surefeed~kleinanzeigen-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-surefeed-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": "What to search, one per line (e.g. iphone 15, rennrad, kinderwagen). Combined with Location, Radius and the filters below.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category (keyword searches)",
            "enum": [
              "all",
              "electronics",
              "phones",
              "computers",
              "bicycles",
              "home_garden",
              "cars"
            ],
            "type": "string",
            "description": "Optional category for search terms. With a category and no terms, browse that category. Pasted search URLs keep their own categories; use a URL for any category not listed here.",
            "default": "all"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Optional: a city, district or 5-digit postcode (e.g. Berlin, München, 10115). Empty = all of Germany."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Optional: around the location, e.g. 10, 20, 50, 100. 0 = the location only.",
            "default": 0
          },
          "searchUrls": {
            "title": "Or search links",
            "type": "array",
            "description": "Optional Kleinanzeigen search/category links. Their categories and category-specific attributes are preserved. Explicit price, seller, offer, Buy now and sort options below override the corresponding URL filter; neutral options preserve it. Newest first only fills in a missing sort.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: only listings from this price."
          },
          "maxPrice": {
            "title": "Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: only listings up to this price."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "private",
              "commercial"
            ],
            "type": "string",
            "description": "All sellers, only private sellers or only commercial sellers (dealers, shops).",
            "default": "any"
          },
          "sortNewest": {
            "title": "Newest first",
            "type": "boolean",
            "description": "Legacy/default option: use newest first only when the URL has no sort. An explicit Sort by choice takes precedence. Off preserves the URL/site order.",
            "default": true
          },
          "offerType": {
            "title": "Listing type",
            "enum": [
              "any",
              "offered",
              "wanted"
            ],
            "type": "string",
            "description": "Separate items offered for sale from wanted ads. Any preserves a filter already present in a pasted URL.",
            "default": "any"
          },
          "buyNowOnly": {
            "title": "Buy now listings only",
            "type": "boolean",
            "description": "Use Kleinanzeigen's direct-purchase filter. False does not remove a Buy now filter already present in a URL.",
            "default": false
          },
          "photosOnly": {
            "title": "Listings with photos only",
            "type": "boolean",
            "description": "Skip listings without a photo or positive photo count on the search card, before details or charging. Enabling this creates a separate monitor baseline.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "inherit",
              "newest",
              "price_asc",
              "distance"
            ],
            "type": "string",
            "description": "Explicit choices replace the URL's sort. Distance requires a location and a positive radius in every search. Source ordering may include promoted listings.",
            "default": "inherit"
          },
          "maxListingsPerSearch": {
            "title": "Max listings per search",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum saved listings for each search, after filtering and deduplication. 0 disables this output cap; it does not guarantee complete coverage. Use a page/time cap to bound monitoring work even when there are no changes.",
            "default": 100
          },
          "maxTotalListings": {
            "title": "Max listings for the whole run",
            "minimum": 0,
            "type": "integer",
            "description": "Global limit across all searches. Counts only saved results after filtering/deduplication. 0 disables this additional limit.",
            "default": 0
          },
          "maxSearchPagesPerSearch": {
            "title": "Max search pages per search",
            "minimum": 0,
            "type": "integer",
            "description": "Limits search-page requests, including every price band, even when monitoring finds no changes. Retries and optional detail pages are not included. 0 disables this cap. RUN_SUMMARY records where scanning stopped.",
            "default": 0
          },
          "maxRunSeconds": {
            "title": "Stop starting new work after (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Soft time limit for the whole run. In-flight requests and final storage writes may finish later. Use Apify's run timeout for a hard deadline. 0 disables this limit.",
            "default": 0
          },
          "includeDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Open each listing for its full description, attributes (brand, model, condition…), category, all photos, shipping options and seller type / active since. Slower and charged as an extra event.",
            "default": false
          },
          "onlyNewListings": {
            "title": "Only new listings and price changes",
            "type": "boolean",
            "description": "Return new listings and changes from the last observed price, including returns to an earlier price. Reuse the same search and Monitor key. Old monitor histories establish a fresh baseline once for known ads.",
            "default": false
          },
          "deduplicateAcrossSearches": {
            "title": "Deduplicate overlapping searches",
            "type": "boolean",
            "description": "Recommended: return and charge each listing once per run, using its first matching search. Disable only if you explicitly need a separately billed row for each matching search.",
            "default": true
          },
          "monitorKey": {
            "title": "Monitor key (optional)",
            "type": "string",
            "description": "Optional name for an independent monitor (up to 80 characters). Keep this unchanged between scheduled runs. Different keys maintain separate baselines. Do not run the same search/key concurrently."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}