{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Product & Supplier Scraper",
    "description": "11 operations in one actor: product search, product details, product reviews, supplier search, supplier details, supplier products, supplier reviews, image search, autocomplete, trending keywords and categories — all from Alibaba.com.",
    "version": "1.0",
    "x-build-id": "HIqVi9vJKIMm1d1GF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/inexhaustible_glass~alibaba-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-inexhaustible_glass-alibaba-product-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/inexhaustible_glass~alibaba-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-inexhaustible_glass-alibaba-product-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/inexhaustible_glass~alibaba-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-inexhaustible_glass-alibaba-product-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",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "productSearch",
              "productDetail",
              "productReviews",
              "supplierSearch",
              "supplierDetail",
              "supplierProducts",
              "supplierReviews",
              "imageSearch",
              "autocomplete",
              "trending",
              "categories"
            ],
            "type": "string",
            "description": "Which Alibaba.com data to pull this run.",
            "default": "productSearch"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword for productSearch, supplierSearch, supplierProducts (optional) or autocomplete.",
            "default": "bluetooth speaker"
          },
          "productId": {
            "title": "Product ID",
            "type": "string",
            "description": "Numeric Alibaba product id, for productDetail / productReviews."
          },
          "productUrl": {
            "title": "Product URL",
            "type": "string",
            "description": "Full alibaba.com product-detail URL, alternative to productId."
          },
          "supplierId": {
            "title": "Supplier ID",
            "type": "string",
            "description": "Numeric Alibaba supplier/company id, for supplierDetail / supplierProducts / supplierReviews."
          },
          "supplierUrl": {
            "title": "Supplier URL",
            "type": "string",
            "description": "Full *.en.alibaba.com storefront URL, alternative to supplierId."
          },
          "imageUrl": {
            "title": "Image URL",
            "type": "string",
            "description": "Image URL to reverse-search, for imageSearch."
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Alibaba category id, for productSearch by category or imageSearch."
          },
          "parentCategoryId": {
            "title": "Parent category ID",
            "type": "string",
            "description": "Leave empty for the top-level category tree, or set to get one category's children (categories operation)."
          },
          "page": {
            "title": "Page",
            "type": "integer",
            "description": "1-100. Each page is 48 results for products, 20 for suppliers.",
            "default": 1
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best_match",
              "orders",
              "response_rate",
              "newest"
            ],
            "type": "string",
            "description": "best_match/orders/response_rate for productSearch; newest for supplierProducts.",
            "default": "best_match"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO currency code for prices, e.g. USD, EUR. Leave blank for the site default."
          },
          "minPrice": {
            "title": "Min price (USD)",
            "type": "integer",
            "description": "Lower bound of the product price range. productSearch only."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "type": "integer",
            "description": "Upper bound of the product price range. productSearch only."
          },
          "minMoq": {
            "title": "Min order quantity",
            "type": "integer",
            "description": "Lower bound of the minimum order quantity filter. productSearch only."
          },
          "maxMoq": {
            "title": "Max order quantity",
            "type": "integer",
            "description": "Upper bound of the minimum order quantity filter. productSearch only."
          },
          "minReviewScore": {
            "title": "Min review score",
            "enum": [
              "4",
              "4.5",
              "5"
            ],
            "type": "string",
            "description": "productSearch only."
          },
          "supplierCountry": {
            "title": "Supplier country",
            "type": "string",
            "description": "2-letter country code, e.g. CN, IN, US."
          },
          "tradeAssurance": {
            "title": "Trade Assurance only",
            "type": "boolean",
            "description": "Only suppliers/products covered by Alibaba's Trade Assurance. productSearch/supplierSearch.",
            "default": false
          },
          "verifiedSupplier": {
            "title": "Verified suppliers only",
            "type": "boolean",
            "description": "Only third-party-verified suppliers. productSearch/supplierSearch.",
            "default": false
          },
          "verifiedPro": {
            "title": "Verified Pro suppliers only",
            "type": "boolean",
            "description": "Only Verified Pro suppliers (Alibaba's higher verification tier). productSearch/supplierSearch.",
            "default": false
          },
          "alibabaGuaranteed": {
            "title": "Alibaba Guaranteed only",
            "type": "boolean",
            "description": "Only products covered by Alibaba Guaranteed. productSearch only.",
            "default": false
          },
          "freeSample": {
            "title": "Free sample available",
            "type": "boolean",
            "description": "Only products offering a free sample. productSearch only.",
            "default": false
          },
          "shipsFrom": {
            "title": "Ships from",
            "enum": [
              "any",
              "eu",
              "us",
              "gb",
              "de"
            ],
            "type": "string",
            "description": "Only products shipping from this region. productSearch only.",
            "default": "any"
          },
          "deliveryDays": {
            "title": "Max delivery days",
            "type": "integer",
            "description": "Maximum delivery time in days. productSearch only."
          },
          "supplierCertifications": {
            "title": "Supplier certifications",
            "type": "array",
            "description": "e.g. [\"ISO9001\", \"BSCI\"].",
            "items": {
              "type": "string"
            }
          },
          "productCertifications": {
            "title": "Product certifications",
            "type": "array",
            "description": "e.g. [\"CE\", \"RoHS\"]. productSearch only.",
            "items": {
              "type": "string"
            }
          },
          "limit": {
            "title": "Result limit",
            "type": "integer",
            "description": "1-20. For autocomplete / trending.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}