{
  "openapi": "3.0.1",
  "info": {
    "title": "Fleet VIN Cost & Recall Audit",
    "description": "Turn a list of VINs into a fleet report: decoded vehicle, EPA fuel economy match, annual fuel or electricity cost at your prices, and NHTSA recall campaigns for each model and year, plus fleet totals.",
    "version": "0.1",
    "x-build-id": "aybyjLknb4ViTrwJG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/howmuchworks~fleet-vin-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-howmuchworks-fleet-vin-audit",
        "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/howmuchworks~fleet-vin-audit/runs": {
      "post": {
        "operationId": "runs-sync-howmuchworks-fleet-vin-audit",
        "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/howmuchworks~fleet-vin-audit/run-sync": {
      "post": {
        "operationId": "run-sync-howmuchworks-fleet-vin-audit",
        "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": {
          "vins": {
            "title": "VINs",
            "type": "array",
            "description": "One vehicle per line: the 17-character VIN, optionally followed by annual miles and a fleet label, separated by commas. Example: 1HGCM82633A004352,12000,Van 7. Full VINs are sent to NHTSA vPIC (a U.S. government service) for decoding. Use fleet labels (unit or asset numbers), not names, plates or other personal data.",
            "items": {
              "type": "string"
            }
          },
          "csvText": {
            "title": "CSV text (optional)",
            "type": "string",
            "description": "Paste a CSV instead of (or as well as) the list. With a header row, columns are found by name: a column containing \"vin\"; an annual distance column whose name says miles or km (km is converted; odometer, MPG and cost columns are never used); and a fleet label column (label, unit, asset, fleet, vehicle id, stock, ref, id, tag or depot). Columns with names, driver, owner, plate, registration, email or phone are never read. Without a header: VIN, annual miles, label. Comma, semicolon or tab delimited; a CSV with broken quoting is rejected before anything is charged."
          },
          "csvUrl": {
            "title": "CSV URL (optional)",
            "pattern": "^https?://.+",
            "type": "string",
            "description": "Public http(s) link to a CSV in the same format as CSV text (for example a published Google Sheet CSV export). Up to 5 MB. Private, local and reserved network addresses are refused."
          },
          "useSampleFleet": {
            "title": "Free sample run when no VINs are given",
            "type": "boolean",
            "description": "When VINs, CSV text and CSV URL are all empty, run five public sample VINs free of charge so you can see the output. Ignored as soon as you enter any VIN or CSV: sample vehicles are never added to your own fleet.",
            "default": true
          },
          "defaultAnnualMiles": {
            "title": "Default annual miles per vehicle",
            "minimum": 0,
            "maximum": 250000,
            "type": "integer",
            "description": "Used for every row that has no annual distance of its own. 15,000 is the mileage EPA uses for the annual fuel cost on its fuel economy labels.",
            "default": 15000
          },
          "fuelPricePerGallon": {
            "title": "Regular gasoline price (USD per gallon)",
            "minimum": 0.01,
            "maximum": 20,
            "type": "number",
            "description": "Your price. Empty = the national regular gasoline price fueleconomy.gov currently uses (fetched at run time and named in the output). Flex-fuel vehicles are priced on gasoline."
          },
          "electricityPricePerKwh": {
            "title": "Electricity price (USD per kWh)",
            "minimum": 0.001,
            "maximum": 2,
            "type": "number",
            "description": "Your charging cost per kWh, used for electric vehicles and the grid share of plug-in hybrids. Empty = the national electricity price fueleconomy.gov currently uses."
          },
          "midgradeFuelPricePerGallon": {
            "title": "Midgrade gasoline price (USD per gallon, optional)",
            "minimum": 0.01,
            "maximum": 20,
            "type": "number",
            "description": "Used for vehicles EPA lists on midgrade gasoline. Empty = fueleconomy.gov's current national midgrade price."
          },
          "premiumFuelPricePerGallon": {
            "title": "Premium gasoline price (USD per gallon, optional)",
            "minimum": 0.01,
            "maximum": 20,
            "type": "number",
            "description": "Used for vehicles EPA lists on premium gasoline. Empty = fueleconomy.gov's current national premium price."
          },
          "dieselPricePerGallon": {
            "title": "Diesel price (USD per gallon, optional)",
            "minimum": 0.01,
            "maximum": 20,
            "type": "number",
            "description": "Used for diesel vehicles. Empty = fueleconomy.gov's current national diesel price. If a needed price is neither given nor available, that vehicle gets no cost and is not charged."
          },
          "maxVehicles": {
            "title": "Maximum vehicles per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Rows beyond this number are not processed or charged.",
            "default": 1000
          },
          "includeRecallText": {
            "title": "Include recall summary, risk and remedy text",
            "type": "boolean",
            "description": "Turn off for a compact output with campaign number, date and component only.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}