{
  "openapi": "3.0.1",
  "info": {
    "title": "NHTSA Recall Monitor",
    "description": "Monitor public vehicle recall data by make, model, year, component, and keyword.",
    "version": "1.0",
    "x-build-id": "nfPZAuejLAFEf6kUk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/junipr~nhtsa-recall-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-junipr-nhtsa-recall-monitor",
        "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/junipr~nhtsa-recall-monitor/runs": {
      "post": {
        "operationId": "runs-sync-junipr-nhtsa-recall-monitor",
        "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/junipr~nhtsa-recall-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-junipr-nhtsa-recall-monitor",
        "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": {
          "vehicleQueries": {
            "title": "NHTSA Vehicle Queries",
            "type": "array",
            "description": "Bounded make, model, and model-year queries sent to the official NHTSA Recalls API.",
            "items": {
              "type": "object",
              "required": [
                "make",
                "model",
                "modelYear"
              ],
              "properties": {
                "make": {
                  "title": "Make",
                  "description": "Vehicle manufacturer, such as Honda.",
                  "type": "string",
                  "minLength": 1
                },
                "model": {
                  "title": "Model",
                  "description": "Vehicle model, such as Accord.",
                  "type": "string",
                  "minLength": 1
                },
                "modelYear": {
                  "title": "Model Year",
                  "description": "Vehicle model year.",
                  "type": "integer",
                  "minimum": 1940,
                  "maximum": 2100
                }
              },
              "additionalProperties": false
            },
            "default": []
          },
          "records": {
            "title": "Records To Check",
            "type": "array",
            "description": "Records, snapshots, or source observations to process. Defaults to a tiny deterministic fixture.",
            "items": {
              "type": "object"
            },
            "default": [
              {
                "sourceId": "nhtsa-honda-2020",
                "sourceUrl": "https://nhtsa.example/recalls/campaign/26V001000",
                "title": "Honda Accord 2020 fuel pump recall",
                "description": "NHTSA recall for 2020 Honda Accord fuel pump failure with remedy available.",
                "entityName": "Honda",
                "category": "vehicle recall",
                "date": "2026-06-20",
                "keywords": [
                  "fuel pump"
                ],
                "metadata": {
                  "campaignNumber": "26V001000",
                  "make": "Honda",
                  "model": "Accord",
                  "modelYear": 2020,
                  "component": "Fuel system",
                  "remedy": "Dealer replacement",
                  "affectedUnits": 44000
                }
              },
              {
                "sourceId": "nhtsa-thin",
                "sourceUrl": "https://nhtsa.example/recalls/campaign/pending",
                "title": "Vehicle equipment recall missing remedy",
                "description": "Vehicle recall record with missing campaign number and remedy.",
                "entityName": "Example Motors",
                "category": "vehicle recall",
                "date": "2026-06-19",
                "keywords": [
                  "brake"
                ],
                "metadata": {
                  "make": "Example",
                  "model": "Sedan",
                  "modelYear": 2021,
                  "component": "Brakes"
                }
              }
            ]
          },
          "fetchTimeoutMs": {
            "title": "Fetch Timeout (ms)",
            "minimum": 1000,
            "maximum": 30000,
            "type": "integer",
            "description": "Timeout for each bounded HTTP request.",
            "default": 12000
          },
          "watchTerms": {
            "title": "Watch Terms",
            "type": "array",
            "description": "Keywords or topics used to flag relevant records.",
            "items": {
              "type": "string"
            },
            "default": [
              "airbag",
              "brake",
              "fuel pump"
            ]
          },
          "includeReport": {
            "title": "Include Report Artifacts",
            "type": "boolean",
            "description": "Write JSON and Markdown report artifacts to the key-value store.",
            "default": true
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum records to process in one run.",
            "default": 2
          },
          "maxTextBytes": {
            "title": "Max Text Bytes",
            "minimum": 100,
            "maximum": 2000000,
            "type": "integer",
            "description": "Maximum searchable text bytes per record.",
            "default": 500000
          },
          "dryRun": {
            "title": "Dry Run",
            "type": "boolean",
            "description": "Validate input and write a dry-run summary without PPE charges or dataset output.",
            "default": false
          },
          "debug": {
            "title": "Debug Logs",
            "type": "boolean",
            "description": "Enable debug logging.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}