{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan Recall Monitor — Vehicles, Food & Consumer Products",
    "description": "Structured feed of official Japanese product recalls: MLIT vehicle/child seat/tyre notifications and Consumer Affairs Agency consumer product and food recalls.",
    "version": "0.1",
    "x-build-id": "rHIJV3WaMFMBqPAh1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jp-data-engine~japan-recall-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jp-data-engine-japan-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/jp-data-engine~japan-recall-monitor/runs": {
      "post": {
        "operationId": "runs-sync-jp-data-engine-japan-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/jp-data-engine~japan-recall-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-jp-data-engine-japan-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": {
          "sources": {
            "title": "Data sources",
            "type": "array",
            "description": "Which official Japanese recall registers to read. Motor vehicles, child seats and tyres come from the MLIT public API; consumer products come from the Consumer Affairs Agency recall site (food, appliances, household goods, clothing and more).",
            "items": {
              "type": "string",
              "enum": [
                "automobile",
                "consumerProducts",
                "childSeat",
                "tire"
              ],
              "enumTitles": [
                "Motor vehicles (MLIT)",
                "Consumer products incl. food (CAA)",
                "Child seats (MLIT)",
                "Tyres (MLIT)"
              ]
            },
            "default": [
              "automobile",
              "consumerProducts"
            ]
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Hard cap on the number of recall records returned across all selected sources. This is what determines the cost of the run.",
            "default": 100
          },
          "notificationDateFrom": {
            "title": "Notified on or after (MLIT only)",
            "type": "string",
            "description": "Only return vehicle, child seat and tyre recalls notified on or after this date. Format: YYYY-MM-DD. Leave empty for no lower bound."
          },
          "notificationDateTo": {
            "title": "Notified on or before (MLIT only)",
            "type": "string",
            "description": "Only return vehicle, child seat and tyre recalls notified on or before this date. Format: YYYY-MM-DD. Leave empty for no upper bound."
          },
          "manufacturer": {
            "title": "Manufacturer (MLIT only)",
            "type": "string",
            "description": "Filter vehicle recalls by manufacturer name as written on the official register, in Japanese. Examples: トヨタ, ホンダ, 日産, スズキ, いすゞ, メルセデス・ベンツ."
          },
          "modelName": {
            "title": "Type designation (MLIT only)",
            "type": "string",
            "description": "Filter vehicle recalls by the Japanese type designation (型式), for example 3BA-GRJ150W."
          },
          "recallType": {
            "title": "Recall type (MLIT only)",
            "enum": [
              "1",
              "2",
              "3"
            ],
            "type": "string",
            "description": "Restrict to one class of notification. Leave empty to return all three."
          },
          "consumerCategories": {
            "title": "Consumer product categories (CAA only)",
            "type": "array",
            "description": "Which Consumer Affairs Agency categories to crawl. Leave empty to crawl every category.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10"
              ],
              "enumTitles": [
                "Food",
                "Home appliances",
                "Household goods",
                "Stationery and leisure goods",
                "Fuel, heating and water equipment",
                "Clothing",
                "Health and hygiene products",
                "Vehicles and transport",
                "Buildings and facilities",
                "Other"
              ]
            },
            "default": []
          },
          "keyword": {
            "title": "Keyword (CAA only)",
            "type": "string",
            "description": "Free-text search across consumer product recalls, in Japanese. Examples: リチウム (lithium), アレルギー (allergen), 発火 (ignition)."
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 1000,
            "maximum": 30000,
            "type": "integer",
            "description": "Minimum pause between two requests to the source sites. Values below 1000 ms are ignored so the government servers are never hit faster than once per second.",
            "default": 1100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The sources are public government sites without anti-bot protection, so a proxy is normally unnecessary.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}