{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen Scraper: Ads, Prices & Sellers",
    "description": "Search kleinanzeigen.de (Germany, formerly eBay Kleinanzeigen) by keyword, category or place. Get ads with price, location, posting time, shipping and PRO-shop flags, wanted ads split out. Optional full ad pages add attributes and seller. No proxy needed.",
    "version": "0.1",
    "x-build-id": "u3FqNrSlXquq6QWfm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/reventadata~kleinanzeigen-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-reventadata-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/reventadata~kleinanzeigen-scraper/runs": {
      "post": {
        "operationId": "runs-sync-reventadata-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/reventadata~kleinanzeigen-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-reventadata-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 terms",
            "type": "array",
            "description": "One search per term, across every category of kleinanzeigen.de (Germany). Optional when you give a category ID instead. Spaces separate words; a literal hyphen cannot be told apart from a space by the site.",
            "items": {
              "type": "string"
            }
          },
          "categoryId": {
            "title": "Category ID",
            "minimum": 1,
            "type": "integer",
            "description": "Optional numeric category from the site's own URLs, the number after the c in a category page such as /s-handy-telekom/c173 (173 = Smartphones and phones). Narrows every search term to that category; with no search term it lists the category itself."
          },
          "locationId": {
            "title": "Location ID",
            "minimum": 1,
            "type": "integer",
            "description": "Optional numeric place from the site's own URLs, the number after the l in a search such as /s-berlin/iphone/k0l3331 (3331 = Berlin). Without it the search covers all of Germany. Needs a search term or a category ID."
          },
          "offerType": {
            "title": "Offers or wanted ads",
            "enum": [
              "offers",
              "wanted",
              "all"
            ],
            "type": "string",
            "description": "kleinanzeigen.de mixes offers with wanted ads (cards marked Gesuch, 'I am looking for'). Offers drops the wanted ads, which is almost always what you want; Wanted keeps only them.",
            "default": "offers"
          },
          "sellers": {
            "title": "Seller kind",
            "enum": [
              "any",
              "private",
              "proShops"
            ],
            "type": "string",
            "description": "Judged from the search card: PRO shops are the cards carrying the PRO shop badge, everything else counts as private. A commercial seller without a PRO shop is therefore listed as private here; turn on detail pages and read the sellerKind column for the site's own private or commercial label.",
            "default": "any"
          },
          "minPrice": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional, inclusive. Applied after fetching, because the site's own price filter path is disallowed in its robots.txt. Ads without a numeric price (negotiable-only 'VB') are dropped whenever a bound is set; free ads count as 0."
          },
          "maxPrice": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional, inclusive. Applied after fetching, like the minimum."
          },
          "shippingOnly": {
            "title": "Only ads offering shipping",
            "type": "boolean",
            "description": "Keeps only cards marked Versand möglich (shipping possible).",
            "default": false
          },
          "excludePromoted": {
            "title": "Exclude promoted placements",
            "type": "boolean",
            "description": "Drops the cards shown without a posting date ahead of the dated results on each page (up to 2 on a page). The site labels them nowhere; they are inferred to be paid placements. Off by default, so they are returned and flagged isPromoted.",
            "default": false
          },
          "requireKeywordMatch": {
            "title": "Require the query in title or text",
            "type": "boolean",
            "description": "Drops ads where a word of the search term is missing from both the title and the card's text snippet. The site also matches the full ad text, so a search for a phone returns cases and repair offers too. Ignored for a category-only run.",
            "default": true
          },
          "fetchDetails": {
            "title": "Fetch the full ad page",
            "type": "boolean",
            "description": "Opens every kept ad for the complete description, the structured attributes (brand, condition, storage, battery state and so on), seller name and kind, member-since date, category path and the ad's approximate coordinates. One extra request per row, so runs are slower. Off by default.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on rows pushed across all search terms.",
            "default": 100
          },
          "maxPages": {
            "title": "Maximum pages per search term",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "25 ads a page. The site serves at most 50 pages (1,250 ads) per search and answers a request past the end with a redirect, so this is clamped to 50.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Measured over 25 sequential search pages and 25 ad pages, kleinanzeigen.de needed no proxy at all. Left off by default; only turn it on if you see request failures.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}