{
  "openapi": "3.0.1",
  "info": {
    "title": "ImportYeti Scraper: US Bills of Lading & Supplier Lists",
    "description": "See who a US company imports from: ImportYeti US customs bills of lading with suppliers, origin countries, weights, containers, carriers, dates, lanes and freight estimates, plus supplier totals.",
    "version": "0.3",
    "x-build-id": "dRxMiCdsTi4j02AgS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~importyeti-bol-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-importyeti-bol-scraper",
        "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/automatic~importyeti-bol-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-importyeti-bol-scraper",
        "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/automatic~importyeti-bol-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-importyeti-bol-scraper",
        "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": {
          "companies": {
            "title": "Company slugs",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "ImportYeti company slugs (the /company/<slug> path), 1-50 per run, e.g. apple or tesla. Full company URLs also work. An input with no companies, searches or resume cursor runs a small apple sample.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "maxResults": {
            "title": "Maximum BOL records per company",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Stop after this many recent bill-of-lading records per company (the page carries at most 50). Defaults to 50, or 10 for the empty-input sample. Example: 50. If unset, saves up to 50 shipments per company, or 10 for the empty-company sample."
          },
          "searches": {
            "title": "Bulk searches (product, HS code, supplier country)",
            "maxItems": 20,
            "type": "array",
            "description": "Find importers from ImportYeti's public directories and scrape every company they lead to, instead of naming the companies yourself. Up to 20 searches per run. Example: [{\"type\": \"keyword\", \"value\": \"lithium-batteries\"}]. Combine with maxItems to pull the whole archive across several runs.",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "title": "Search type",
                  "type": "string",
                  "enum": [
                    "keyword",
                    "hsCode",
                    "supplierCountry",
                    "supplier"
                  ],
                  "enumTitles": [
                    "Product keyword (e.g. lithium-batteries)",
                    "HS code (e.g. 8507.60)",
                    "Supplier country (e.g. china)",
                    "Supplier page (e.g. shenzhen-dynanonic)"
                  ],
                  "default": "keyword",
                  "description": "Where to look: product keyword, HS code, supplier country or supplier page."
                },
                "value": {
                  "title": "Value",
                  "type": "string",
                  "description": "A product keyword, a 2-, 4- or 6-digit HS code, a supplier country slug, or a supplier slug."
                }
              },
              "required": [
                "type",
                "value"
              ]
            }
          },
          "fullShipmentHistory": {
            "title": "Full shipment history per company",
            "type": "boolean",
            "description": "Read each company page's full embedded shipment list (50 shipments, with product descriptions) instead of the 10 rows its table renders. Example: true. If left unset, uses false."
          },
          "dateFrom": {
            "title": "Shipment date from",
            "type": "string",
            "description": "Keep only shipments on or after this date (YYYY-MM-DD or YYYY-MM). Example: 2025-01-01."
          },
          "dateTo": {
            "title": "Shipment date to",
            "type": "string",
            "description": "Keep only shipments on or before this date (YYYY-MM-DD or YYYY-MM). Example: 2025-12-31."
          },
          "maxItems": {
            "title": "Maximum records per run",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop cleanly after this many records and write the rest of the work into OUTPUT.cursor, so the next run continues with no gap and no duplicate keys. Example: 5000. If unset, the run scrapes every company it was given."
          },
          "resumeFrom": {
            "title": "Continue from a previous run (cursor)",
            "type": "object",
            "description": "Paste the full OUTPUT.cursor from the previous run. It keeps the pending companies and settings, and lets the Actor check which records the earlier run saved. Use the most recent cursor to continue."
          },
          "feedName": {
            "title": "Only new records (named feed)",
            "maxLength": 50,
            "type": "string",
            "description": "Deliver records this named feed has never sent before. Use the same name on every scheduled run. Leave it blank for a fresh snapshot each time. Example: apple-watchlist. Letters, digits and dashes, up to 50 characters."
          },
          "concurrency": {
            "title": "Pages fetched in parallel",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "How many company pages to fetch at once (1-6). Higher is faster on long archive pulls. Example: 4. If left unset, uses 1."
          },
          "includePartners": {
            "title": "Include shipping partners (detail mode)",
            "type": "boolean",
            "description": "Also emit one summary record per supplier from the company's Suppliers table (total shipments, activity window, product categories). Example: false. If left unset, uses false."
          },
          "requestDelaySecs": {
            "title": "Request delay (seconds)",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Pause between company fetches. Example: 1. If left unset, uses 1."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}