{
  "openapi": "3.0.1",
  "info": {
    "title": "mobile.de Car Scraper — Germany’s Largest Car Marketplace",
    "description": "Scrape mobile.de — Germany’s largest car marketplace. Prices, full specifications, seller details, image galleries, and search filters. Incremental mode detects new and changed listings. Compact output for AI agents and MCP workflows.",
    "version": "0.1",
    "x-build-id": "lY7pp6QMdaYxDYHDv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blackfalcondata~mobile-de-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blackfalcondata-mobile-de-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/blackfalcondata~mobile-de-scraper/runs": {
      "post": {
        "operationId": "runs-sync-blackfalcondata-mobile-de-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/blackfalcondata~mobile-de-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-blackfalcondata-mobile-de-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": {
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Free-text search keywords (e.g. 'VW Golf GTI'). Use JSON array for multi-query."
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Car make / brand (e.g. 'Volkswagen', 'BMW', 'Mercedes-Benz')."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Car model (e.g. 'Golf', '3er', 'C-Klasse'). Requires make."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Direct mobile.de search URLs. Use this for full filter control.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum total listings to return (0 = unlimited).",
            "default": 25
          },
          "maxPages": {
            "title": "Max Pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum search result pages to scrape per source.",
            "default": 5
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "NEW",
              "USED",
              "EMPLOYEE_CAR",
              "PRE_REGISTRATION",
              "CLASSIC"
            ],
            "type": "string",
            "description": "Filter by vehicle condition."
          },
          "fuelType": {
            "title": "Fuel Type",
            "enum": [
              "DIESEL",
              "PETROL",
              "ELECTRIC",
              "HYBRID",
              "PLUG_IN_HYBRID",
              "CNG",
              "LPG",
              "HYDROGEN"
            ],
            "type": "string",
            "description": "Filter by fuel type."
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "MANUAL_GEAR",
              "AUTOMATIC_GEAR",
              "SEMI_AUTOMATIC_GEAR"
            ],
            "type": "string",
            "description": "Filter by transmission type."
          },
          "bodyType": {
            "title": "Body Type",
            "enum": [
              "LIMOUSINE",
              "KOMBI",
              "KLEINWAGEN",
              "COUPE",
              "CABRIO",
              "SUV",
              "GELAENDEWAGEN",
              "VAN",
              "PICKUP"
            ],
            "type": "string",
            "description": "Filter by body type / vehicle category."
          },
          "sellerType": {
            "title": "Seller Type",
            "enum": [
              "DEALER",
              "PRIVATE"
            ],
            "type": "string",
            "description": "Filter by seller type."
          },
          "priceMin": {
            "title": "Price Min (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in EUR."
          },
          "priceMax": {
            "title": "Price Max (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in EUR."
          },
          "mileageMin": {
            "title": "Mileage Min (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum mileage in km."
          },
          "mileageMax": {
            "title": "Mileage Max (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum mileage in km."
          },
          "yearMin": {
            "title": "Year Min",
            "minimum": 1900,
            "maximum": 2030,
            "type": "integer",
            "description": "Minimum first registration year."
          },
          "yearMax": {
            "title": "Year Max",
            "minimum": 1900,
            "maximum": 2030,
            "type": "integer",
            "description": "Maximum first registration year."
          },
          "powerMin": {
            "title": "Power Min (PS)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum engine power in PS."
          },
          "powerMax": {
            "title": "Power Max (PS)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum engine power in PS."
          },
          "zipCode": {
            "title": "ZIP Code",
            "type": "string",
            "description": "German postal code for location-based search."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Search radius around ZIP code."
          },
          "sort": {
            "title": "Sort Order",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "mileage_asc",
              "registration_desc",
              "registration_asc"
            ],
            "type": "string",
            "description": "Sort Order.",
            "default": "relevance"
          },
          "compact": {
            "title": "Compact Output",
            "type": "boolean",
            "description": "Output only core fields (for AI-agent/MCP workflows).",
            "default": false
          },
          "incrementalMode": {
            "title": "Incremental Mode",
            "type": "boolean",
            "description": "Only output new or changed listings since the last run. Unchanged listings are skipped. State is persisted across runs in the named KV store 'mobile-de-state'.",
            "default": false
          },
          "stateKey": {
            "title": "State Key",
            "type": "string",
            "description": "Identifier for the incremental state. Use a unique key per search query to track changes independently (e.g. 'vw-golf-berlin'). Defaults to a key derived from the search inputs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}