{
  "openapi": "3.0.1",
  "info": {
    "title": "NHTSA Vehicle Recalls, Complaints & Safety Ratings API",
    "description": "For dealers, used-car marketplaces, insurers and fleet safety teams: safety recalls, consumer complaints and NCAP crash-test star ratings for any US-market vehicle from NHTSA's own API. Across 4,793 complaints on 2026-09-10, crash and fire flags are rare enough to be worth filtering on. No API key.",
    "version": "0.1",
    "x-build-id": "PxuFLl2aobmMBKbQL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~nhtsa-vehicle-recalls/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-nhtsa-vehicle-recalls",
        "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/neverempty~nhtsa-vehicle-recalls/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-nhtsa-vehicle-recalls",
        "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/neverempty~nhtsa-vehicle-recalls/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-nhtsa-vehicle-recalls",
        "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",
        "required": [
          "vehicles"
        ],
        "properties": {
          "vehicles": {
            "title": "Vehicles",
            "type": "array",
            "description": "One entry per vehicle: {\"make\":\"Toyota\",\"model\":\"Camry\",\"modelYear\":2022}. Spelling has to be one NHTSA knows - the recall endpoint answers HTTP 400 for a make, model or year it does not have, and that 400 is reported as a rejected input rather than as \"no recalls\". Note that the three endpoints do not share a model vocabulary: a 2021 Ford \"F-150\" returns 29 recalls but no complaints and no crash-test ratings, while \"F-150 SUPER CREW\" returns the complaints and ratings and no recalls. Plain model names such as Camry, Accord, Civic, RAV4 and Altima work on all three.",
            "default": [
              {
                "make": "Toyota",
                "model": "Camry",
                "modelYear": 2022
              },
              {
                "make": "Honda",
                "model": "Accord",
                "modelYear": 2021
              }
            ]
          },
          "datasets": {
            "title": "What to read",
            "type": "array",
            "description": "recalls = NHTSA safety recall campaigns. complaints = consumer complaints filed with NHTSA, including whether a crash, fire, injury or death was reported. safety-ratings = NCAP crash test star ratings, which need one extra request per body style.",
            "items": {
              "type": "string",
              "enum": [
                "recalls",
                "complaints",
                "safety-ratings"
              ],
              "enumTitles": [
                "Recalls",
                "Complaints",
                "Safety ratings (NCAP stars)"
              ]
            },
            "default": [
              "recalls",
              "complaints"
            ]
          },
          "maxRecordsPerVehicle": {
            "title": "Maximum records per vehicle",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit of rows kept for each vehicle and each dataset. You are charged for the rows you actually receive. For reference, measured on 2026-09-10: a 2021 Ford F-150 had 29 recalls, and a 2021 Honda Accord had 226 complaints.",
            "default": 200
          },
          "onlyCrashOrFire": {
            "title": "Complaints: only those reporting a crash or a fire",
            "type": "boolean",
            "description": "Keep a complaint only if NHTSA's own crash or fire flag is true. The flag comes from the filing, not from searching the text for the word crash.",
            "default": false
          },
          "onlyWithInjuriesOrDeaths": {
            "title": "Complaints: only those reporting injuries or deaths",
            "type": "boolean",
            "description": "Keep a complaint only if it states at least one injury or death. A complaint that does not state a number is treated as zero by NHTSA itself and is dropped by this filter.",
            "default": false
          },
          "componentContains": {
            "title": "Component contains",
            "type": "string",
            "description": "Keep a record only if the component text contains this (case-insensitive). NHTSA writes components in capitals, such as \"AIR BAGS:SENSOR:OCCUPANT CLASSIFICATION\" or \"POWER TRAIN\". Crash-test ratings carry no component, so this filter is not applied to them - they are returned regardless. Leave empty for all components.",
            "default": ""
          },
          "maxRetries": {
            "title": "Attempts per request",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "How many times to try a request in total when NHTSA does not answer. HTTP 400 is a permanent answer and is never retried.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}