{
  "openapi": "3.0.1",
  "info": {
    "title": "NHTSA Vehicle Recalls Feed + Safety Ratings",
    "description": "Which vehicles, tires and car seats were just recalled? New NHTSA recalls by make, model, year or manufacturer with units affected, defect, remedy and do-not-drive flags, plus NCAP star ratings and complaint counts. Free official data, delta mode.",
    "version": "1.0",
    "x-build-id": "6bcGPT2ak4FcqVoj1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datacrate~vehicle-recalls-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datacrate-vehicle-recalls-feed",
        "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/datacrate~vehicle-recalls-feed/runs": {
      "post": {
        "operationId": "runs-sync-datacrate-vehicle-recalls-feed",
        "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/datacrate~vehicle-recalls-feed/run-sync": {
      "post": {
        "operationId": "run-sync-datacrate-vehicle-recalls-feed",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "newRecalls",
              "vehicleSafety"
            ],
            "type": "string",
            "description": "newRecalls = recall campaigns published in the last N days (vehicles, equipment, tires, child seats). vehicleSafety = NCAP star ratings plus recall, complaint and investigation counts for makes and model years you name.",
            "default": "newRecalls"
          },
          "sinceDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Mode newRecalls: only recall campaigns that NHTSA published in the last N days (1 to 3650).",
            "default": 30
          },
          "makes": {
            "title": "Makes",
            "type": "array",
            "description": "Keep only recalls for these makes (substring, case-insensitive), e.g. \"ford\", \"toyota\", \"tesla\". In vehicleSafety mode this is required and should be the make name, e.g. \"honda\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Models",
            "type": "array",
            "description": "Keep only these models (substring), e.g. \"f-150\", \"civic\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "modelYears": {
            "title": "Model years",
            "type": "array",
            "description": "Keep only these model years, e.g. 2023, 2024. Required in vehicleSafety mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "manufacturers": {
            "title": "Manufacturers",
            "type": "array",
            "description": "Mode newRecalls: keep only campaigns filed by these manufacturers (substring), e.g. \"ford motor\", \"goodyear\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "recallTypes": {
            "title": "Recall types",
            "type": "array",
            "description": "Mode newRecalls: keep only these types. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "V",
                "E",
                "T",
                "C"
              ],
              "enumTitles": [
                "Vehicle",
                "Equipment",
                "Tire",
                "Child restraint (car seat)"
              ]
            },
            "default": []
          },
          "components": {
            "title": "Components",
            "type": "array",
            "description": "Mode newRecalls: keep only campaigns involving these components (substring), e.g. \"air bags\", \"brakes\", \"fuel system\", \"steering\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Mode newRecalls: keep only campaigns whose defect, consequence or remedy text contains any of these words, e.g. \"fire\", \"software\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minUnitsAffected": {
            "title": "Minimum units affected",
            "minimum": 0,
            "type": "integer",
            "description": "Mode newRecalls: keep only campaigns with at least this many potentially affected vehicles or items.",
            "default": 0
          },
          "onlyDoNotDrive": {
            "title": "Do-not-drive advisories only",
            "type": "boolean",
            "description": "Mode newRecalls: keep only campaigns with NHTSA's \"do not drive\" consumer advisory.",
            "default": false
          },
          "includeRecallList": {
            "title": "Include recall list per model",
            "type": "boolean",
            "description": "Mode vehicleSafety: attach the list of recall campaigns for each model and year (first vehicle variant of each model only).",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Delta mode: only new or changed recalls",
            "type": "boolean",
            "description": "Mode newRecalls: return only campaigns not returned by a previous run with the same State name, or whose units affected, vehicle list or advisories changed. The first run returns everything.",
            "default": false
          },
          "stateKey": {
            "title": "State name (for delta mode)",
            "type": "string",
            "description": "Name of the saved list of already-returned campaigns. Use different names for different watchlists.",
            "default": "default"
          },
          "textChars": {
            "title": "Defect/remedy text length (characters)",
            "minimum": 0,
            "maximum": 6000,
            "type": "integer",
            "description": "Shorten the defect, consequence and remedy text to this many characters. 0 removes the text.",
            "default": 1500
          },
          "maxItems": {
            "title": "Max records returned",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many recall campaigns or vehicles. You are charged per record returned.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}