{
  "openapi": "3.0.1",
  "info": {
    "title": "US New Car Prices — MSRP by trim",
    "description": "Official US new-car MSRP by trim from 40 manufacturer websites: destination charge, powertrain, specs, EPA/NHTSA match and quality flags. Monthly snapshot in one click or live extraction.",
    "version": "0.3",
    "x-build-id": "zt3MeWs0BqtiU67eB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rastriq~us-new-car-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rastriq-us-new-car-prices",
        "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~us-new-car-prices/runs": {
      "post": {
        "operationId": "runs-sync-rastriq-us-new-car-prices",
        "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~us-new-car-prices/run-sync": {
      "post": {
        "operationId": "run-sync-rastriq-us-new-car-prices",
        "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": {
          "dataSource": {
            "title": "Data source",
            "enum": [
              "preloaded",
              "live"
            ],
            "type": "string",
            "description": "<b>preloaded</b> (default): the latest published snapshot, filtered by your options. Leave everything else empty to get the full database in one click. If the snapshot is unavailable the run switches to <b>live</b> and says so in the run summary (<code>data_source_effective</code>). <b>live</b>: extract now from the manufacturer websites.",
            "default": "preloaded"
          },
          "makes": {
            "title": "Makes",
            "uniqueItems": true,
            "type": "array",
            "description": "Pick one or more brands. Leave empty to get all brands.",
            "items": {
              "type": "string",
              "enum": [
                "acura",
                "alfa_romeo",
                "audi",
                "bmw",
                "buick",
                "cadillac",
                "chevrolet",
                "chrysler",
                "dodge",
                "fiat",
                "ford",
                "genesis",
                "gmc",
                "honda",
                "hyundai",
                "ineos",
                "infiniti",
                "jaguar",
                "jeep",
                "kia",
                "land_rover",
                "lexus",
                "lincoln",
                "lucid",
                "maserati",
                "mazda",
                "mercedes_benz",
                "mini",
                "mitsubishi",
                "nissan",
                "polestar",
                "porsche",
                "ram",
                "rivian",
                "subaru",
                "tesla",
                "toyota",
                "vinfast",
                "volkswagen",
                "volvo"
              ],
              "enumTitles": [
                "Acura",
                "Alfa Romeo",
                "Audi",
                "BMW",
                "Buick",
                "Cadillac",
                "Chevrolet",
                "Chrysler",
                "Dodge",
                "Fiat",
                "Ford",
                "Genesis",
                "GMC",
                "Honda",
                "Hyundai",
                "INEOS",
                "Infiniti",
                "Jaguar",
                "Jeep",
                "Kia",
                "Land Rover",
                "Lexus",
                "Lincoln",
                "Lucid",
                "Maserati",
                "Mazda",
                "Mercedes-Benz",
                "MINI",
                "Mitsubishi",
                "Nissan",
                "Polestar",
                "Porsche",
                "Ram",
                "Rivian",
                "Subaru",
                "Tesla",
                "Toyota",
                "VinFast",
                "Volkswagen",
                "Volvo"
              ]
            },
            "default": []
          },
          "fallbackToLive": {
            "title": "Fall back to live if the snapshot is unavailable",
            "type": "boolean",
            "description": "Only for <b>preloaded</b>. If the published snapshot is unavailable, run live instead and say so in the status message and the run summary. Turn it off to stop the run cleanly instead (nothing is billed).",
            "default": true
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "flat",
              "full"
            ],
            "type": "string",
            "description": "<b>flat</b> (default, the public contract): one flat row per trim with 76 fixed columns, vPIC/EPA enrichment included, lists as JSON arrays and brand-specific leftovers in <code>extras_json</code>. Array columns may be exported by Apify as indexed columns in CSV/XLSX: export the <code>overview</code> view or use <code>fields=</code> for a fixed table. <b>full</b>: the nested enriched records (OEM objects such as <code>options_packages</code> and <code>exterior_colors</code> stay nested; fields vary by brand), meant for advanced users and debugging. Same rows and same <code>record_id</code> in both formats.",
            "default": "flat"
          },
          "includeSupersededModelYears": {
            "title": "Include superseded model years",
            "type": "boolean",
            "description": "Rows of a model year for which a newer model year of the same make+model+trim is published are always flagged <code>superseded_model_year</code>. Untick to exclude them from the dataset (current model years only).",
            "default": true
          },
          "includeOptions": {
            "title": "Save options and colors tables",
            "type": "boolean",
            "description": "With <code>outputFormat</code> = flat, also write the child tables to the run's key-value store: <code>OPTIONS</code> (priced options/packages) and <code>COLORS</code> (exterior colors), JSON arrays linked to the dataset by <code>record_id</code>. They are not dataset rows and are not charged as results. Untick to skip them (the flat rows keep <code>options_count</code> / <code>colors_count</code>). Ignored with <code>outputFormat</code> = full, where options and colors already travel inside each row.",
            "default": true
          },
          "limitPerMake": {
            "title": "Limit per make (testing)",
            "minimum": 0,
            "type": "integer",
            "description": "Testing aid. 0 = no limit. Keeps only the first rows per brand. A limited run is reported as partial in the diff.",
            "default": 0
          },
          "enableBrowserMakes": {
            "title": "Enable browser-tier makes",
            "type": "boolean",
            "description": "Reserved for future use. It currently has no effect.",
            "default": false
          },
          "proxyEscalation": {
            "title": "Proxy escalation",
            "enum": [
              "auto",
              "always",
              "off"
            ],
            "type": "string",
            "description": "Live runs only. Controls whether a proxy is used for the brands that need one. The default is fine for most runs.",
            "default": "auto"
          },
          "proxyConfiguration": {
            "title": "Proxy (optional, your own)",
            "type": "object",
            "description": "Optional. Your own proxy settings, used when a proxy is needed. Leave empty to use the default.",
            "default": {
              "useApifyProxy": false
            }
          },
          "retryFailedFromRun": {
            "title": "Retry failed makes from run",
            "type": "string",
            "description": "Run ID of a previous run of this Actor: re-run only the brands that failed in that run. The previous run must be accessible with your account. Each run summary includes a ready-to-copy <code>retry_input</code>."
          },
          "maxConcurrentJobs": {
            "title": "Max concurrent brand jobs",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many brands are processed at the same time.",
            "default": 4
          },
          "minRequestIntervalSecs": {
            "title": "Min seconds between requests per host",
            "minimum": 1,
            "type": "number",
            "description": "Minimum pause between requests to the same site (never below 1 s).",
            "default": 1
          },
          "perJobTimeoutSecs": {
            "title": "Timeout per brand job",
            "minimum": 60,
            "maximum": 3600,
            "type": "integer",
            "description": "Maximum time allowed per brand. A brand that exceeds it is reported as `failed` in the run summary; the rest of the run continues.",
            "default": 1200
          },
          "compareWithPrevious": {
            "title": "Compare with previous snapshot",
            "type": "boolean",
            "description": "Off by default. When on, the run is compared with a previous snapshot and writes CHANGES (jsonl), CHANGES_SUMMARY and DRIFT_REPORT to the key-value store. Failures here never fail the run.",
            "default": false
          },
          "previousSnapshot": {
            "title": "Previous snapshot",
            "type": "string",
            "description": "`LATEST` (follows the `LATEST` pointer in the named store `us-new-car-prices-snapshots`), a dataset name or ID, or a local `.jsonl` path (local runs only). Empty with compareWithPrevious on = `LATEST`."
          },
          "driftThresholds": {
            "title": "Drift thresholds (override)",
            "type": "object",
            "description": "Optional overrides of the drift thresholds, e.g. {\"row_drop_alert\": 0.5}. See docs/operacion.md for the keys."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}