{
  "openapi": "3.0.1",
  "info": {
    "title": "Toyota Europe Inventory & Prices",
    "description": "Extract vehicle catalog, grades, variants, and prices from Toyota Europe across 30+ countries. Get list prices, discounts, promotions, engine specs, CO2 emissions, and fuel consumption for every model and trim level.",
    "version": "0.2",
    "x-build-id": "i21mTrL62Y6dbzHyr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rastriq~toyota-europe-inventory/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rastriq-toyota-europe-inventory",
        "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~toyota-europe-inventory/runs": {
      "post": {
        "operationId": "runs-sync-rastriq-toyota-europe-inventory",
        "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~toyota-europe-inventory/run-sync": {
      "post": {
        "operationId": "run-sync-rastriq-toyota-europe-inventory",
        "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": {
          "countries": {
            "title": "🌍 Countries",
            "uniqueItems": true,
            "type": "array",
            "description": "Select one or more Toyota Europe markets. Each country returns its own catalog with <b>local pricing</b>, promotions, and grade availability.<br><br>Covers <b>30+ markets</b>: Western Europe, Nordics, Central & Eastern Europe, Mediterranean, Turkey, and Eurasia.<br><br>🇧🇪 Belgium and 🇨🇭 Switzerland have separate entries per language (e.g. <code>Belgium (NL)</code> vs <code>Belgium (FR)</code>).<br><br>💡 <b>Tip:</b> Leave empty or select <b>Spain</b> for a quick test. Add more countries to compare cross-market pricing.",
            "items": {
              "type": "string",
              "enum": [
                "es",
                "fr",
                "de",
                "gb",
                "it",
                "nl",
                "pt",
                "ie",
                "at",
                "be_nl",
                "be_fr",
                "lu",
                "ch_de",
                "ch_fr",
                "ch_it",
                "dk",
                "fi",
                "se",
                "no",
                "is",
                "pl",
                "cz",
                "sk",
                "hu",
                "ro",
                "bg",
                "hr",
                "si",
                "ee",
                "lv",
                "lt",
                "rs",
                "gr",
                "cy",
                "tr",
                "ua",
                "ge",
                "az",
                "il",
                "md",
                "am",
                "kz"
              ],
              "enumTitles": [
                "🇪🇸 Spain (EUR)",
                "🇫🇷 France (EUR)",
                "🇩🇪 Germany (EUR)",
                "🇬🇧 United Kingdom (GBP)",
                "🇮🇹 Italy (EUR)",
                "🇳🇱 Netherlands (EUR)",
                "🇵🇹 Portugal (EUR)",
                "🇮🇪 Ireland (EUR)",
                "🇦🇹 Austria (EUR)",
                "🇧🇪 Belgium (NL) (EUR)",
                "🇧🇪 Belgium (FR) (EUR)",
                "🇱🇺 Luxembourg (EUR)",
                "🇨🇭 Switzerland (DE) (CHF)",
                "🇨🇭 Switzerland (FR) (CHF)",
                "🇨🇭 Switzerland (IT) (CHF)",
                "🇩🇰 Denmark (DKK)",
                "🇫🇮 Finland (EUR)",
                "🇸🇪 Sweden (SEK)",
                "🇳🇴 Norway (NOK)",
                "🇮🇸 Iceland (ISK)",
                "🇵🇱 Poland (PLN)",
                "🇨🇿 Czech Republic (CZK)",
                "🇸🇰 Slovakia (EUR)",
                "🇭🇺 Hungary (HUF)",
                "🇷🇴 Romania (RON)",
                "🇧🇬 Bulgaria (BGN)",
                "🇭🇷 Croatia (EUR)",
                "🇸🇮 Slovenia (EUR)",
                "🇪🇪 Estonia (EUR)",
                "🇱🇻 Latvia (EUR)",
                "🇱🇹 Lithuania (EUR)",
                "🇷🇸 Serbia (RSD)",
                "🇬🇷 Greece (EUR)",
                "🇨🇾 Cyprus (EUR)",
                "🇹🇷 Turkey (TRY)",
                "🇺🇦 Ukraine (UAH)",
                "🇬🇪 Georgia (GEL)",
                "🇦🇿 Azerbaijan (AZN)",
                "🇮🇱 Israel (ILS)",
                "🇲🇩 Moldova (MDL)",
                "🇦🇲 Armenia (AMD)",
                "🇰🇿 Kazakhstan (KZT)"
              ]
            },
            "default": [
              "es"
            ]
          },
          "modelFilter": {
            "title": "🚗 Models",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by specific Toyota models. Leave empty to get <b>all available models</b> in each selected country.<br><br>Each model returns all its <b>grades</b> (trims), <b>engine variants</b>, and <b>pricing breakdowns</b>.<br><br>Models are sorted by market availability. Models marked with <b>*</b> are available in very few markets.<br><br>💡 <b>Tip:</b> Use <code>discoveryMode</code> to get a live list of all model codes per country before running a full extraction.",
            "items": {
              "type": "string",
              "enum": [
                "hilux",
                "landcruiser150",
                "yb",
                "ra",
                "pd",
                "c-hr",
                "cb",
                "cx",
                "bz",
                "ya",
                "ax",
                "de",
                "proaceverso",
                "proace",
                "corolla-hb",
                "gy",
                "corolla-ts",
                "pm_ps",
                "pf",
                "corolla",
                "pg",
                "camry",
                "uc",
                "mirai",
                "su",
                "l1",
                "re",
                "highlander",
                "ev",
                "ec",
                "eq",
                "fortuner",
                "gr",
                "ep"
              ],
              "enumTitles": [
                "Hilux (39 markets)",
                "Land Cruiser (39 markets)",
                "Yaris Cross (36 markets)",
                "RAV4 (36 markets)",
                "Proace City (35 markets)",
                "C-HR (34 markets)",
                "C-HR+ (34 markets)",
                "Corolla Cross (33 markets)",
                "bZ4X Touring (32 markets)",
                "Yaris (32 markets)",
                "Aygo X (31 markets)",
                "bZ4X (32 markets)",
                "Proace Verso (32 markets)",
                "Proace (31 markets)",
                "Corolla Hatchback (29 markets)",
                "GR Yaris (28 markets)",
                "Corolla Touring Sports (28 markets)",
                "Proace Max (28 markets)",
                "Proace City Verso (30 markets)",
                "Corolla Sedan (25 markets)",
                "Prius Plug-in (21 markets)",
                "Camry (16 markets)",
                "Urban Cruiser (15 markets)",
                "Mirai (15 markets)",
                "GR Supra (10 markets)",
                "Land Cruiser 300 (6 markets)",
                "RAV4 PHEV (6 markets)",
                "Highlander (5 markets)",
                "Proace Verso EV (4 markets)",
                "* Proace City EV (2 markets)",
                "* Proace City Verso EV (2 markets)",
                "* Fortuner (2 markets)",
                "* GR86 (1 market)",
                "* Proace EV (1 market)"
              ]
            },
            "default": []
          },
          "discoveryMode": {
            "title": "🔍 Discovery mode",
            "type": "boolean",
            "description": "When enabled, the actor only fetches the <b>model catalog</b> from each selected country — no prices, specs, or promotions.<br><br>Returns a <b>flat list of all available models</b> per country with: model code, model name, ModelID, min price, currency, fuel types, and availability flags.<br><br>Use this to <b>discover all model codes</b> before running a full extraction. Only <b>1 request per country</b> — very fast and cheap.<br><br>💡 <b>Tip:</b> Run with all countries + discovery mode to get a complete map of Toyota Europe's model availability across markets.",
            "default": false
          },
          "includeSpecs": {
            "title": "📊 Include specs, CO2 & equipment",
            "type": "boolean",
            "description": "Fetch full specifications for each model from the specs endpoint. <b>Enabled by default</b> since v0.2.<br><br>Adds ~35 fields per variant including:<br>• <b>CO2 emissions</b> (g/km) — from calculationDetails<br>• <b>VAT rate</b> and fiscal region<br>• <b>Grade ID</b> (UUID for cross-country matching)<br>• <b>Colours</b> with prices and RGB codes<br>• <b>Engines</b> with category, plugin status<br>• <b>WLTP</b> fuel/CO2/electric range summaries<br>• <b>Upholsteries</b>, equipment counts<br><br>⚠️ Adds one extra request per model. Disable to reduce run time if you only need pricing.",
            "default": true
          },
          "includePromotions": {
            "title": "📢 Include promotion details",
            "type": "boolean",
            "description": "Fetch detailed promotion info per model: date ranges, disclaimers, starting prices.<br><br>Adds 1 extra request per model.<br><br>New fields: <code>promotions</code> (array), <code>promotion_disclaimer</code> (text).",
            "default": false
          },
          "requestDelay": {
            "title": "⏱️ Request delay",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Milliseconds to wait between data requests. The default value works well for most runs.<br><br>Recommended values:<br>• <b>300–500 ms</b> — normal operation<br>• <b>1000–2000 ms</b> — if experiencing slowdowns<br>• <b>0 ms</b> — fastest (use with caution)",
            "default": 500
          },
          "proxyConfiguration": {
            "title": "🔒 Proxy configuration",
            "type": "object",
            "description": "Optional. Toyota Europe data works <b>without proxies</b> from most locations. Only enable if you're running from a restricted network."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}