{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA import alert screening — is your supplier red-listed?",
    "description": "Paste your supplier list. For each firm: whether FDA has red-listed it on an import alert, which alert, when, and FDA's own stated reason — each answer carrying the FDA page it was read from and the verbatim line on it. A supplier not found is reported as not found, never as cleared.",
    "version": "1.0",
    "x-build-id": "JC1oudhoqT9EMedSd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/referencesource~fda-import-alert-screening/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-referencesource-fda-import-alert-screening",
        "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/referencesource~fda-import-alert-screening/runs": {
      "post": {
        "operationId": "runs-sync-referencesource-fda-import-alert-screening",
        "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/referencesource~fda-import-alert-screening/run-sync": {
      "post": {
        "operationId": "run-sync-referencesource-fda-import-alert-screening",
        "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": {
          "suppliers": {
            "title": "Supplier names",
            "type": "array",
            "description": "One supplier per line, pasted straight out of a purchase-order export — leading numbering, bullets and trailing commas are stripped for you. Company-form suffixes are NOT stripped, because FDA prints them. Matching is a case-insensitive text search over the firm name as FDA prints it, so a distinctive part of the name works better than the full legal name. IMPORTANT: a supplier not found here is a supplier not found on the 14 alerts this register covers, on the date it was last checked — it is not a clearance, and every row says so.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Only this country (optional)",
            "type": "string",
            "description": "Narrows every supplier search to one country, e.g. \"CHINA\" or \"Vietnam\". FDA prints countries in capitals; matching is case-insensitive. Leave empty unless your list is single-country — a supplier that has moved production will be missed by the filter.",
            "default": ""
          },
          "since": {
            "title": "Also list everything red-listed since this date (optional)",
            "type": "string",
            "description": "An ISO date like \"2026-01-01\". Adds a second block of rows: every firm added to a covered import alert on or after that date, newest first. Use it on a schedule to watch a category rather than a supplier list. It works with or without a supplier list.",
            "default": ""
          },
          "import_alert_number": {
            "title": "Only this import alert (applies to the \"since\" list)",
            "type": "string",
            "description": "Optional, e.g. \"16-120\" (seafood) or \"66-41\" (unapproved drugs). Narrows the \"since\" list to one alert. It does not affect the supplier screen, which searches every covered alert.",
            "default": ""
          },
          "include_reason": {
            "title": "Include FDA's stated reason and the firm's address",
            "type": "boolean",
            "description": "On by default. Adds a second call per listing to fetch FDA's own words for why the firm was listed (\"Decomposition\", \"Unapproved new drug\"), plus the address and product code FDA prints. It is not charged separately. Turn it off for a faster run when you only need to know whether a supplier is listed at all.",
            "default": true
          },
          "only_whole_word_matches": {
            "title": "Count only whole-word name matches",
            "type": "boolean",
            "description": "On by default. The register does a plain text search, so a short name can land inside a longer word — measured here, a search for \"Sung\" returns \"Han Sung Co\" but also \"Sungjin Fishery Co., Ltd.\" and \"ILSUNG F&P\". With this on, only the whole-word hits count as your supplier. NOTHING IS EVER DISCARDED: the others are named on the row in weak_matches_note with their record ids, so a real match under an unexpected spelling is still in front of you.",
            "default": true
          },
          "only_listed": {
            "title": "Only return suppliers that are red-listed",
            "type": "boolean",
            "description": "Off by default, and think before turning it on. On, the output holds only the exceptions — the short list worth acting on. Off, every supplier gets a row either way, which is what makes the output auditable: a supplier absent from an exceptions report looks identical to a supplier you forgot to put in.",
            "default": false
          },
          "limit": {
            "title": "How many recent listings to return",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Applies to the \"since\" list only. 1–20; the register returns at most 20 per call and every row says when the answer was truncated.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}