{
  "openapi": "3.0.1",
  "info": {
    "title": "BMW Europe Price Tracker",
    "description": "Extract official BMW vehicle prices, trim lines, and catalog data across 14 European markets. ~4,100 structured records per run in under 30 seconds.",
    "version": "0.1",
    "x-build-id": "nLBV5kGdyL0V6V13E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rastriq~bmw-europe-price-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rastriq-bmw-europe-price-tracker",
        "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/rastriq~bmw-europe-price-tracker/runs": {
      "post": {
        "operationId": "runs-sync-rastriq-bmw-europe-price-tracker",
        "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/rastriq~bmw-europe-price-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-rastriq-bmw-europe-price-tracker",
        "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": {
          "markets": {
            "title": "🌍 Markets",
            "uniqueItems": true,
            "type": "array",
            "description": "European markets to scrape. Leave empty to scrape all 14 markets (~4,000 records, ~30 s).<br><br>Each market makes one API call to BMW's UCP endpoint.",
            "items": {
              "type": "string",
              "enum": [
                "es",
                "de",
                "fr",
                "it",
                "co.uk",
                "nl",
                "be",
                "pt",
                "pl",
                "se",
                "no",
                "at",
                "ch",
                "cz",
                "sa"
              ],
              "enumTitles": [
                "🇪🇸 Spain (es)",
                "🇩🇪 Germany (de)",
                "🇫🇷 France (fr)",
                "🇮🇹 Italy (it)",
                "🇬🇧 United Kingdom (co.uk)",
                "🇳🇱 Netherlands (nl)",
                "🇧🇪 Belgium (be)",
                "🇵🇹 Portugal (pt)",
                "🇵🇱 Poland (pl)",
                "🇸🇪 Sweden (se)",
                "🇳🇴 Norway (no)",
                "🇦🇹 Austria (at)",
                "🇨🇭 Switzerland (ch)",
                "🇨🇿 Czech Republic (cz)",
                "🇸🇦 Saudi Arabia (sa)"
              ]
            }
          },
          "seriesFilter": {
            "title": "🚗 Model ranges (optional)",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit extraction to specific BMW ranges. Leave empty to extract all ranges.<br><br>Use BMW platform/chassis codes. Common ones:<br>• <b>F70</b> — Series 1 (new) &nbsp; <b>G20</b> — Series 3 &nbsp; <b>G42</b> — Series 2 Coupé<br>• <b>G60</b> — Series 5 &nbsp; <b>G70</b> — Series 7 &nbsp; <b>G87</b> — M2<br>• <b>U11</b> — iX1 &nbsp; <b>NA5</b> — iX &nbsp; <b>U06</b> — X2",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "F70",
                "F74",
                "G20",
                "G21",
                "G42",
                "G22",
                "G23",
                "G26",
                "G60",
                "G61",
                "G70",
                "G87",
                "G80",
                "G81",
                "G82",
                "G83",
                "G90",
                "G99",
                "G09",
                "G45",
                "G65",
                "G05",
                "G06",
                "G07",
                "U10",
                "U11",
                "NA5",
                "U06"
              ],
              "enumTitles": [
                "F70 — Series 1 5-door",
                "F74 — Series 1 3-door",
                "G20 — Series 3 Sedan",
                "G21 — Series 3 Touring",
                "G42 — Series 2 Coupé",
                "G22 — Series 4 Coupé",
                "G23 — Series 4 Cabriolet",
                "G26 — Series 4 Gran Coupé",
                "G60 — Series 5 Sedan",
                "G61 — Series 5 Touring",
                "G70 — Series 7",
                "G87 — M2",
                "G80 — M3",
                "G81 — M3 Touring",
                "G82 — M4 Coupé",
                "G83 — M4 Cabriolet",
                "G90 — M5",
                "G99 — M5 Touring",
                "G09 — XM",
                "G45 — X3",
                "G65 — X5",
                "G05 — X5 (prev)",
                "G06 — X6",
                "G07 — X7",
                "U10 — iX1",
                "U11 — iX2",
                "NA5 — iX",
                "U06 — X2 / iX2 (prev)"
              ]
            }
          },
          "requestDelay": {
            "title": "Request delay (s)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Pause between requests in seconds. Increase to 1–2 s if you see HTTP 429 errors.",
            "default": 0.5
          },
          "debugMode": {
            "title": "Debug mode",
            "type": "boolean",
            "description": "Enables verbose logging: prints every request URL and HTTP status. Not recommended for production runs — it significantly increases log size.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}