{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen.de Scraper — German Classifieds Search",
    "description": "Kleinanzeigen.de (ex eBay Kleinanzeigen) scraper for resellers, dealers and AI agents: search by keyword, 159 categories, 48 German cities with radius, price, private/commercial, offers vs wanted ads, shipping.",
    "version": "0.1",
    "x-build-id": "VrfNi7l5nzVipgWXT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yadroo~kleinanzeigen-de/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yadroo-kleinanzeigen-de",
        "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/yadroo~kleinanzeigen-de/runs": {
      "post": {
        "operationId": "runs-sync-yadroo-kleinanzeigen-de",
        "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/yadroo~kleinanzeigen-de/run-sync": {
      "post": {
        "operationId": "run-sync-yadroo-kleinanzeigen-de",
        "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": {
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword(s), e.g. \"e-bike\", \"iphone 15 pro\", \"3 zimmer wohnung\". May be empty when a category is set (browse a whole category)."
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Category id, \"c<id>\" code, slug or German name. \"k0\" or empty = all categories. Top level: Auto, Rad & Boot = 210 (auto-rad-boot); Elektronik = 161 (multimedia-elektronik); Haus & Garten = 80 (haus-garten); Jobs = 102 (jobs); Nachbarschaftshilfe = 400 (nachbarschaftshilfe); Dienstleistungen = 297 (dienstleistungen); Familie, Kind & Baby = 17 (familie-kind-baby); Haustiere = 130 (haustiere); Mode & Beauty = 153 (mode-beauty); Unterricht & Kurse = 235 (unterricht-kurse); Eintrittskarten & Tickets = 231 (eintrittskarten-tickets); Freizeit, Hobby & Nachbarschaft = 185 (freizeit-nachbarschaft); Immobilien = 195 (immobilien); Musik, Filme & Bücher = 73 (musik-film-buecher); Verschenken & Tauschen = 272 (zu-verschenken-tauschen). Popular sub-categories: autos 216, fahrraeder 217, handy-telekom 173, notebooks 278, konsolen 279, wohnung-mieten 203, wohnung-kaufen 196, haus-kaufen 208, kleidung-damen 154. All 159 ids: README → Reference.",
            "default": "k0"
          },
          "location": {
            "title": "City",
            "type": "string",
            "description": "German city name from the built-in list (Berlin, Hamburg, München, Köln, Frankfurt am Main, Stuttgart, Düsseldorf, Leipzig, Dortmund, Dresden, Hannover, Bonn, Mannheim, Kiel, Mainz, Potsdam… — README → Reference). For any other place use locationId + locationSlug. Empty = all Germany."
          },
          "locationSlug": {
            "title": "Location slug (advanced)",
            "type": "string",
            "description": "URL slug of the place, e.g. \"berlin\", \"bad-toelz\" (v0.1 input). Use together with locationId for places not in the built-in list."
          },
          "locationId": {
            "title": "Location ID (advanced)",
            "type": "string",
            "description": "Number after \"l\" in a kleinanzeigen URL, e.g. l3331 for Berlin, l6411 München, l9409 Hamburg."
          },
          "radiusKm": {
            "title": "Radius, km",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Search around the location: 5, 10, 20, 30, 50, 100, 150 or 200 km. Needs a location."
          },
          "priceFrom": {
            "title": "Price from, €",
            "minimum": 0,
            "type": "integer",
            "description": ""
          },
          "priceTo": {
            "title": "Price to, €",
            "minimum": 0,
            "type": "integer",
            "description": ""
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "all",
              "private",
              "commercial"
            ],
            "type": "string",
            "description": "Private or commercial sellers.",
            "default": "all"
          },
          "adType": {
            "title": "Ad type",
            "enum": [
              "offer",
              "wanted",
              "all"
            ],
            "type": "string",
            "description": "Offers = items for sale/rent; wanted = people looking to buy/rent (buyer-intent leads).",
            "default": "offer"
          },
          "shippingOnly": {
            "title": "Shipping possible only",
            "type": "boolean",
            "description": "Only ads with \"Versand möglich\".",
            "default": false
          },
          "attributes": {
            "title": "Category attributes",
            "type": "object",
            "description": "Category-specific filters copied from a kleinanzeigen URL after \"+\", e.g. {\"fahrraeder.type_s\": \"ebike\"}, {\"fahrraeder.art_s\": \"damen\"}, {\"autos.marke_s\": \"bmw\"}, {\"global.zustand\": \"like_new\"}. Requires category."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "price_asc",
              "distance"
            ],
            "type": "string",
            "description": "Sort order supported by the site.",
            "default": "newest"
          },
          "sinceHours": {
            "title": "Posted within (hours)",
            "minimum": 1,
            "maximum": 8760,
            "type": "integer",
            "description": "Only ads posted in the last N hours (from \"Heute/Gestern, HH:MM\" and dates on the cards). With newest sort pagination stops at the first page that is entirely older."
          },
          "includeTopAds": {
            "title": "Include top ads",
            "type": "boolean",
            "description": "Keep paid top ads (they carry no date and may not match filters).",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1250,
            "type": "integer",
            "description": "Stop after this many ads (25 per page, kleinanzeigen shows max 50 pages).",
            "default": 50
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Safety cap. kleinanzeigen.de rate-limits aggressively — keep this low for scheduled runs.",
            "default": 10
          },
          "detail": {
            "title": "Open ad pages",
            "type": "boolean",
            "description": "+1 request per ad (~3 s each): full description, category attributes (Art, Typ, Zustand, Wohnfläche, Kilometerstand…), features, coordinates, seller name, private/commercial, active since, badges, all photos. If kleinanzeigen blocks the IP the remaining items stay list-only with detailError.",
            "default": false
          },
          "dedupe": {
            "title": "Dedupe",
            "type": "boolean",
            "description": "Drop repeated ad ids.",
            "default": true
          },
          "fields": {
            "title": "Output fields",
            "type": "array",
            "description": "Keep only these fields, e.g. [\"id\",\"title\",\"price\",\"postcode\",\"publishedAt\",\"url\"]. Empty = all.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}