{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen API Scraper",
    "description": "Scrape Kleinanzeigen (Germany) classified-ad listings and full ad details via the official mobile API. Search by keyword, location, category and price; get every field incl. all images, attributes, seller profile and geo.",
    "version": "0.0",
    "x-build-id": "g2E8SN7lOeBHL8pEo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rl1987~kleinanzeigen-api-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rl1987-kleinanzeigen-api-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/rl1987~kleinanzeigen-api-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rl1987-kleinanzeigen-api-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/rl1987~kleinanzeigen-api-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rl1987-kleinanzeigen-api-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": {
          "q": {
            "title": "Search keyword",
            "type": "string",
            "description": "Keyword to search for (e.g. 'fahrrad', 'iphone'). Leave empty to browse a category/location."
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "A city, postcode or district (e.g. 'Berlin', '10435', 'München'). Resolved to the app's internal location id automatically."
          },
          "distance": {
            "title": "Radius (km)",
            "type": "integer",
            "description": "Search radius around the location in km.",
            "default": 20
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "type": "integer",
            "description": "Minimum price filter."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "type": "integer",
            "description": "Maximum price filter."
          },
          "adType": {
            "title": "Ad type",
            "enum": [
              "OFFERED",
              "WANTED"
            ],
            "type": "string",
            "description": "Offered or wanted ads."
          },
          "posterType": {
            "title": "Poster type",
            "enum": [
              "PRIVATE",
              "COMMERCIAL"
            ],
            "type": "string",
            "description": "Private or commercial sellers."
          },
          "sortType": {
            "title": "Sort",
            "enum": [
              "DATE_DESCENDING",
              "DISTANCE_ASCENDING",
              "PRICE_ASCENDING",
              "PRICE_DESCENDING",
              "RECOMMENDED"
            ],
            "type": "string",
            "description": "Result ordering.",
            "default": "DATE_DESCENDING"
          },
          "pictureRequired": {
            "title": "With images only",
            "type": "boolean",
            "description": "Only return ads that have at least one image.",
            "default": false
          },
          "buyNowOnly": {
            "title": "Buy-now only",
            "type": "boolean",
            "description": "Only return ads with direct-buy shipping.",
            "default": false
          },
          "includeDetails": {
            "title": "Fetch full ad detail",
            "type": "boolean",
            "description": "Fetch the full ad detail (complete description, all images, all attributes, phone/contact, geo) for every result. Slower.",
            "default": true
          },
          "includeSellerProfile": {
            "title": "Fetch seller profile",
            "type": "boolean",
            "description": "Also fetch each ad's public seller profile (ratings, badges, counters, member-since).",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Maximum number of ads to return (0 = as many as possible).",
            "default": 100
          },
          "category": {
            "title": "Category",
            "enum": [
              "210",
              "216",
              "223",
              "211",
              "217",
              "305",
              "306",
              "276",
              "280",
              "220",
              "241",
              "195",
              "199",
              "402",
              "196",
              "275",
              "197",
              "277",
              "207",
              "208",
              "205",
              "203",
              "403",
              "238",
              "198",
              "80",
              "91",
              "93",
              "246",
              "239",
              "89",
              "90",
              "84",
              "86",
              "82",
              "81",
              "88",
              "87",
              "153",
              "224",
              "154",
              "159",
              "160",
              "158",
              "156",
              "157",
              "155",
              "161",
              "172",
              "226",
              "245",
              "173",
              "176",
              "279",
              "278",
              "228",
              "225",
              "285",
              "175",
              "227",
              "405",
              "406",
              "168",
              "130",
              "138",
              "134",
              "136",
              "132",
              "135",
              "139",
              "133",
              "283",
              "243",
              "313",
              "17",
              "236",
              "22",
              "19",
              "258",
              "21",
              "237",
              "25",
              "20",
              "23",
              "18",
              "102",
              "118",
              "111",
              "114",
              "110",
              "105",
              "107",
              "125",
              "123",
              "247",
              "117",
              "109",
              "185",
              "232",
              "248",
              "187",
              "282",
              "240",
              "191",
              "249",
              "233",
              "234",
              "230",
              "250",
              "189",
              "242",
              "73",
              "76",
              "281",
              "284",
              "77",
              "79",
              "78",
              "74",
              "75",
              "231",
              "286",
              "254",
              "287",
              "252",
              "255",
              "257",
              "251",
              "256",
              "297",
              "288",
              "289",
              "290",
              "293",
              "291",
              "292",
              "294",
              "295",
              "296",
              "298",
              "272",
              "273",
              "274",
              "192",
              "235",
              "269",
              "260",
              "265",
              "263",
              "264",
              "262",
              "268",
              "261",
              "271",
              "267",
              "266",
              "270",
              "400",
              "401"
            ],
            "type": "string",
            "description": "Optionally restrict to a Kleinanzeigen category."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Route requests through a proxy (Apify Proxy by default).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}