{
  "openapi": "3.0.1",
  "info": {
    "title": "Kleinanzeigen Scraper - Listings, Prices & Sellers",
    "description": "Scrape Kleinanzeigen.de listings by keyword, location or URL: price with VB handling, condition, category, seller, photos and full descriptions. Detail pages on demand.",
    "version": "1.0",
    "x-build-id": "0j0LtULiUtz0bA2cx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~kleinanzeigen-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-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/sian.agency~kleinanzeigen-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-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/sian.agency~kleinanzeigen-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-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": {
          "operation": {
            "title": "🎯 What do you want to scrape?",
            "enum": [
              "search",
              "detail",
              "seller"
            ],
            "type": "string",
            "description": "🎯 **ONE OPERATION PER RUN.** Each returns the same row shape, so results merge cleanly.\n\n🔍 **Listing Search** — a keyword, a city or postcode, and any filter the site offers. 27 ads per page, paged automatically.\n📄 **Listing Detail** — ad URLs or bare ad IDs in; back come the full description, whole gallery, condition, category, posting date and seller profile.\n🏪 **Seller Listings** — every ad on a seller's public list page, from their seller URL or numeric seller ID.",
            "default": "search"
          },
          "keyword": {
            "title": "🔑 Search keyword",
            "type": "string",
            "description": "🔑 **WHAT TO SEARCH FOR.** Searches the ad title and body. German words find far more than English ones — 'fahrrad' not 'bicycle', 'smartphone' not 'phone'. 💡 **TIP:** leave this empty and paste a category or filtered search address into 🌐 Search URLs below to sweep a whole section.",
            "default": "fahrrad"
          },
          "searchUrls": {
            "title": "🌐 Search URLs",
            "type": "array",
            "description": "🌐 **PASTE ADDRESSES INSTEAD OF FILLING THE FORM.** Copy any search, category or filtered results address from the site and drop it here. 🧠 **The site resolves each address itself**, so every filter baked into it is honoured — sub-categories, price bands, condition facets, and anything added after this actor shipped. 📥 **BULK EDIT:** paste many, one per line, or upload a .txt file.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "📍 **WHERE TO LOOK.** A city name or a German postcode — 'Hamburg', '80331', 'Köln-Ehrenfeld'. 🧠 The site resolves the name itself; pair it with 📏 Radius to widen the circle. 💡 **TIP:** empty means all of Germany.",
            "default": "Berlin"
          },
          "radiusKm": {
            "title": "📏 Radius (km)",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "📏 **HOW FAR AROUND THE LOCATION TO LOOK**, in kilometres. 0 uses the location's own area; 50 pulls in the whole commuter belt. ⚠️ Needs 📍 Location to do anything.",
            "default": 0
          },
          "minPrice": {
            "title": "💵 Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "💵 **CHEAPEST ASKING PRICE TO INCLUDE**, in whole euros. 0 means no lower bound. ⚠️ A price band drops ads with no fixed price — giveaways and 'on request' ads — because the site filters on the price field itself.",
            "default": 0
          },
          "maxPrice": {
            "title": "💰 Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "💰 **MOST EXPENSIVE ASKING PRICE TO INCLUDE**, in whole euros. 0 means no upper bound. 💡 **TIP:** narrow bands are how you walk a big category — €0-100, €100-250, €250-500 — and merge.",
            "default": 0
          },
          "shippingOnly": {
            "title": "🚚 Shipping only",
            "type": "boolean",
            "description": "🚚 **ONLY ADS THAT CAN BE POSTED TO YOU.** Sellers who ship can sell to anywhere in Germany, so distance stops mattering. 🤝 Leave it off to include collection-only ads — pair those with a radius for genuinely local stock.",
            "default": false
          },
          "adUrls": {
            "title": "📄 Ad URLs or IDs",
            "type": "array",
            "description": "📄 **USED BY THE LISTING DETAIL OPERATION.** Which ads to open. ✅ **SUPPORTED:** the full ad address, or the bare ad ID — the number in the address — on its own. 📥 **BULK EDIT:** paste many, one per line, or upload a .txt file. Every search row this actor returns carries its ad ID, so feeding them back here is copy-paste.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sellerIds": {
            "title": "🏪 Sellers",
            "type": "array",
            "description": "🏪 **USED BY THE SELLER LISTINGS OPERATION.** Whose ads to pull. ✅ **SUPPORTED:** the seller's list address from any of their ads (kleinanzeigen.de/s-bestandsliste.html?userId=…), or the bare numeric seller ID. 💡 **TIP:** every detail row carries 👤 Seller ID — feed those straight back in here to expand a seller you found in a search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "🔢 Max listings",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "🔢 **HOW MANY ADS TO RETURN**, across everything the run touches. 📦 Searches page 27 ads at a time, so the run finishes on the page that crosses your number. ⚠️ Very broad sweeps (all of Germany, no keyword) are cheaper split into narrower keywords, price bands or city rings.",
            "default": 100
          },
          "includeDetails": {
            "title": "📄 Open each ad's page",
            "type": "boolean",
            "description": "📄 **OPEN EACH AD'S OWN PAGE** for the fields a search result cannot carry: the untruncated description, the complete photo gallery, ✨ the condition and every attribute the seller filled in, 🗂️ the category name, 🕒 the exact posting date and 🔗 the seller's public profile. 💰 **COSTS EXTRA:** one additional request per ad, billed as one Listing Detail event on top of the listing row. Leave it off and you pay for listing rows only.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}