{
  "openapi": "3.0.1",
  "info": {
    "title": "Self-Driving & Autopilot Crash Reports (NHTSA SGO)",
    "description": "Search official NHTSA crash reports for driverless cars (Waymo, Zoox, Tesla robotaxi) and Level 2 driver assist (Autopilot, Super Cruise). Filter by company, make, state, city, month, severity and narrative keywords, or get summaries. No login, no proxy.",
    "version": "0.1",
    "x-build-id": "xv8Be4CJzrl20oZ2N"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kindred_feathergrass~us-autonomous-vehicle-crash-reports/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kindred_feathergrass-us-autonomous-vehicle-crash-reports",
        "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/kindred_feathergrass~us-autonomous-vehicle-crash-reports/runs": {
      "post": {
        "operationId": "runs-sync-kindred_feathergrass-us-autonomous-vehicle-crash-reports",
        "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/kindred_feathergrass~us-autonomous-vehicle-crash-reports/run-sync": {
      "post": {
        "operationId": "run-sync-kindred_feathergrass-us-autonomous-vehicle-crash-reports",
        "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": {
          "outputMode": {
            "title": "Output",
            "enum": [
              "records",
              "summary"
            ],
            "type": "string",
            "description": "Individual crash reports, or a grouped count table.",
            "default": "records"
          },
          "groupBy": {
            "title": "Group by (summary only)",
            "enum": [
              "company",
              "make",
              "state",
              "city",
              "month",
              "crashWith",
              "severity",
              "roadwayType",
              "systemType"
            ],
            "type": "string",
            "description": "Field to group by in summary mode.",
            "default": "company"
          },
          "systemTypes": {
            "title": "System types",
            "type": "array",
            "description": "Which NHTSA report files to search.",
            "items": {
              "type": "string",
              "enum": [
                "ADS",
                "ADAS",
                "OTHER"
              ],
              "enumTitles": [
                "Driverless / ADS (Waymo, Zoox, robotaxis)",
                "Level 2 driver assist (Autopilot, Super Cruise)",
                "Other"
              ]
            },
            "default": [
              "ADS",
              "ADAS"
            ]
          },
          "companyContains": {
            "title": "Company contains",
            "type": "array",
            "description": "Reporting or operating company, e.g. Waymo, Tesla, Zoox, General Motors.",
            "items": {
              "type": "string"
            }
          },
          "makeContains": {
            "title": "Vehicle make contains",
            "type": "array",
            "description": "e.g. TESLA, JAGUAR, FORD.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "2-letter state codes, e.g. CA, AZ, TX.",
            "items": {
              "type": "string"
            }
          },
          "cityContains": {
            "title": "City contains",
            "type": "array",
            "description": "e.g. San Francisco, Phoenix, Austin.",
            "items": {
              "type": "string"
            }
          },
          "crashWithContains": {
            "title": "Crash with contains",
            "type": "array",
            "description": "e.g. Pedestrian, Cyclist, Heavy Truck, Fixed Object.",
            "items": {
              "type": "string"
            }
          },
          "narrativeKeywords": {
            "title": "Narrative keywords",
            "type": "array",
            "description": "Match any word or phrase in the crash narrative, e.g. school bus, red light.",
            "items": {
              "type": "string"
            }
          },
          "monthFrom": {
            "title": "From month",
            "type": "string",
            "description": "Incident month, YYYY-MM, e.g. 2025-06."
          },
          "monthTo": {
            "title": "To month",
            "type": "string",
            "description": "Incident month, YYYY-MM."
          },
          "minInjurySeverity": {
            "title": "Minimum injury severity (0-5)",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "0 any, 1 minor, 2 minor with hospitalization, 3 moderate, 4 serious, 5 fatal only (alleged highest severity).",
            "default": 0
          },
          "includeNarrative": {
            "title": "Include narrative",
            "type": "boolean",
            "description": "Include the company's written description of the crash.",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Upper limit of records or summary rows (each is billed).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}