{
  "openapi": "3.0.1",
  "info": {
    "title": "ImportYeti Scraper",
    "description": "ImportYeti Scraper SD - ImportYeti Scraper is a trade data tool that extracts US import records of companies and suppliers: bills of lading, shipment counts, trading partners, HS codes, TEU volumes, freight cost estimates and websites. Search by keyword or paste profiles. No login.",
    "version": "1.0",
    "x-build-id": "CndGh9R5XTFRHbjH2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~importyeti-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-importyeti-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/neuro-scraper~importyeti-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-importyeti-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/neuro-scraper~importyeti-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-importyeti-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": {
          "startUrls": {
            "title": "Company or supplier profiles",
            "type": "array",
            "description": "ImportYeti profile links (https://www.importyeti.com/company/ikea-supply, https://www.importyeti.com/supplier/friul-intagli-industries), 'company/<slug>', 'supplier/<slug>' or a bare company slug.",
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "title": "Company slugs",
            "type": "array",
            "description": "Optional: US importer slugs as in the profile link (ikea-supply, costco-wholesale).",
            "items": {
              "type": "string"
            }
          },
          "suppliers": {
            "title": "Supplier slugs",
            "type": "array",
            "description": "Optional: foreign supplier slugs as in the profile link (friul-intagli-industries).",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Optional: find profiles by keyword (product, brand or company name), e.g. furniture or bicycle parts. Each query gives up to 'Max profiles per query' profiles.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "company",
              "supplier",
              "both"
            ],
            "type": "string",
            "description": "Which kind of profile the search queries look for (also the kind used for bare slugs: company unless 'supplier').",
            "default": "company"
          },
          "maxResultsPerQuery": {
            "title": "Max profiles per query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many profiles each search query returns (per profile kind). Example: 10 x 2 queries = up to 20 profiles.",
            "default": 10
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "both",
              "profiles",
              "shipments",
              "partners"
            ],
            "type": "string",
            "description": "Every row has record_type 'profile', 'partner' or 'shipment'. both = a profile row, then one row per trading partner, then one row per bill of lading; profiles = profile rows only (partners and bills nested); shipments / partners = only those rows.",
            "default": "both"
          },
          "maxShipmentsPerTarget": {
            "title": "Max shipments per profile",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Recent bills of lading to keep per profile (the public profile shows the 50 most recent).",
            "default": 50
          },
          "maxPartnersPerTarget": {
            "title": "Max trading partners per profile",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Top suppliers (for a company) or buyers (for a supplier) to keep per profile (up to 50).",
            "default": 50
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "How many rows to save in total (profiles or shipments).",
            "default": 100
          },
          "mostRecentShipment": {
            "title": "Last shipment within",
            "enum": [
              "any",
              "6mo",
              "12mo"
            ],
            "type": "string",
            "description": "Keep only companies / suppliers whose most recent shipment is within this period (active traders).",
            "default": "any"
          },
          "minShipments": {
            "title": "Min total shipments",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only profiles with at least this many shipments in total."
          },
          "hsCodes": {
            "title": "HS codes",
            "type": "array",
            "description": "Keep only profiles that trade goods of these HS codes or chapters (prefix match, e.g. 9403 = furniture, 85 = electrical machinery).",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Keep only profiles whose country, state, city or address contains one of these texts (e.g. China, Vietnam, California).",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Profiles in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many profiles are read at the same time, each with its own session.",
            "default": 5
          },
          "monitorStoreName": {
            "title": "Monitor store name (only new shipments)",
            "type": "string",
            "description": "Name of a key-value store that remembers the bills of lading of earlier runs. With a name, shipment rows already seen are skipped - schedule the Actor to get only new import records."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default and recommended. Search queries additionally use a second Apify proxy group automatically (no setup needed).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}