{
  "openapi": "3.0.1",
  "info": {
    "title": "Antidumping Duty Checker, AD/CVD Orders & Case Status",
    "description": "Check whether a product is under a US antidumping or countervailing duty order, keyless. Search by product, country or case number, get the current status of each case with the notice that set it, and track orders, reviews, revocations and sunset determinations as they publish.",
    "version": "0.1",
    "x-build-id": "51abss55cswn5gOaO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapemint~antidumping-duty-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapemint-antidumping-duty-tracker",
        "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/scrapemint~antidumping-duty-tracker/runs": {
      "post": {
        "operationId": "runs-sync-scrapemint-antidumping-duty-tracker",
        "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/scrapemint~antidumping-duty-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-scrapemint-antidumping-duty-tracker",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "notices",
              "cases"
            ],
            "type": "string",
            "description": "Notices returns one row per Commerce publication, newest first. Cases resolves a whole proceeding into one row: where it stands now, which notice said so, and the full history.",
            "default": "notices"
          },
          "searchTerms": {
            "title": "Product or company search",
            "type": "array",
            "description": "What to look for, for example \"aluminum extrusions\" or \"solar cells\". Leave empty with no case numbers to sweep every AD/CVD notice in the date range.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "caseNumbers": {
            "title": "Case numbers",
            "type": "array",
            "description": "Commerce case numbers such as A-570-135 or C-570-946. A is antidumping, C is countervailing, and the middle three digits are the country.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Filter to goods from these countries, for example China, Vietnam, South Korea. Commerce writes country names several ways and they are normalised before matching.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dutyType": {
            "title": "Duty type",
            "enum": [
              "both",
              "antidumping",
              "countervailing"
            ],
            "type": "string",
            "description": "Antidumping targets selling below fair value. Countervailing targets foreign subsidies. Many products are subject to both at once.",
            "default": "both"
          },
          "stages": {
            "title": "Lifecycle stages",
            "type": "array",
            "description": "Narrow to specific kinds of action. Leave empty for all of them. Note that reviewRescinded ends a review, not the order, while orderRevoked ends the order itself.",
            "items": {
              "type": "string",
              "enum": [
                "orderIssued",
                "orderRevoked",
                "orderRevokedInPart",
                "orderContinued",
                "sunsetReview",
                "reviewFinalResults",
                "reviewPreliminaryResults",
                "reviewRescinded",
                "investigationInitiated",
                "preliminaryDetermination",
                "finalDetermination",
                "finalDeterminationNegative",
                "scopeRuling",
                "circumventionInquiry",
                "changedCircumstancesReview",
                "newShipperReview",
                "courtRemand",
                "postponement",
                "reviewOpportunity",
                "other"
              ],
              "enumTitles": [
                "Order issued",
                "Order revoked (in full)",
                "Order revoked in part (order survives)",
                "Order continued",
                "Sunset review",
                "Review final results (sets rates)",
                "Review preliminary results",
                "Review rescinded (order stays in force)",
                "Investigation initiated",
                "Preliminary determination",
                "Final determination",
                "Final determination, negative",
                "Scope ruling",
                "Circumvention inquiry",
                "Changed circumstances review",
                "New shipper review",
                "Court remand",
                "Postponement",
                "Opportunity to request review",
                "Other"
              ]
            },
            "default": []
          },
          "dateFrom": {
            "title": "From publication date",
            "type": "string",
            "description": "Earliest publication date as YYYY-MM-DD. In cases mode a narrow window can hide the order notice itself, which shows up as a status of activeOrderInferred."
          },
          "dateTo": {
            "title": "To publication date",
            "type": "string",
            "description": "Latest publication date as YYYY-MM-DD."
          },
          "onlyActiveOrders": {
            "title": "Only cases with an order in force",
            "type": "boolean",
            "description": "Cases mode only. Drops revoked orders, negative determinations and open investigations, leaving the cases that cost money today.",
            "default": false
          },
          "includeOmnibusNotices": {
            "title": "Include multi-case notices",
            "type": "boolean",
            "description": "Commerce publishes round-up notices listing dozens of unrelated cases, such as scope ruling lists and the monthly opportunity to request a review. They are part of a case history but never set its status.",
            "default": false
          },
          "newOnly": {
            "title": "Monitor mode: new documents only",
            "type": "boolean",
            "description": "Remember what has already been returned and emit only what is new. Run it daily to catch an order, revocation or rate change on your products the day it publishes. Quiet runs cost nothing.",
            "default": false
          },
          "maxRows": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many rows. Case rows cost several requests each, so keep this modest in cases mode.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}