{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Products Scraper",
    "description": "Alibaba scraper: search Alibaba.com by keyword and get products with price range, quantity price tiers and minimum order (MOQ), plus supplier country, years, rating and badges. Typical run: a 20-product search in about 5 seconds. Built for AI agents and MCP: keywords and limit in, JSON rows out.",
    "version": "0.1",
    "x-build-id": "AmzWzZfBsXlxNVSwh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blueskyscraper~alibaba-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blueskyscraper-alibaba-products-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/blueskyscraper~alibaba-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-blueskyscraper-alibaba-products-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/blueskyscraper~alibaba-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-blueskyscraper-alibaba-products-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": {
          "mode": {
            "title": "🧭 What to get",
            "enum": [
              "products"
            ],
            "type": "string",
            "description": "Always \"products\" in this Actor and can be omitted: Alibaba search results with title, price range and quantity price tiers, minimum order, images, and the supplier's country, years, rating and response rate.",
            "default": "products"
          },
          "keywords": {
            "title": "🔍 Search keywords",
            "type": "array",
            "description": "Alibaba search terms, one search per item: \"yoga mat\", \"led strip light\", \"custom t-shirt\". Short product names work best, not full sentences. With no keywords and no URLs the Actor runs a demo search for \"yoga mat\".",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "🔗 Product URLs or IDs",
            "type": "array",
            "description": "Product page URLs or numeric IDs: https://www.alibaba.com/product-detail/_1601617846699.html or 1601617846699. Each returns one full product-page row, billed at the product-page price. For a keyword search use keywords instead.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Alibaba URLs",
            "type": "array",
            "description": "Alibaba links: a search results page with your filters (alibaba.com/trade/search?SearchText=...), a product page, or a supplier store such as https://topko.en.alibaba.com/ (returns the store's product list).",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerInput": {
            "title": "💯 Results per keyword or URL",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Products per keyword or URL (not per run), default 50, up to 4,800 per search. Each product is one billed row. For a quick answer set 10-20.",
            "default": 50
          },
          "minPrice": {
            "title": "💲 Minimum price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Alibaba's own price filter."
          },
          "maxPrice": {
            "title": "💲 Maximum price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Alibaba's own price filter."
          },
          "maxMinOrder": {
            "title": "📦 Minimum order at most",
            "minimum": 0,
            "type": "integer",
            "description": "Only products you can order in this quantity or less — e.g. <code>10</code> for small test orders."
          },
          "supplierCountries": {
            "title": "🌍 Supplier countries",
            "type": "array",
            "description": "Two-letter ISO country codes: CN, IN, VN, TR, PK, US. English country names (\"China\", \"Vietnam\") are converted to codes; a value that cannot be read returns a free notice and no rows. One country uses Alibaba's own filter; several are filtered row by row. Empty = all countries.",
            "items": {
              "type": "string"
            }
          },
          "tradeAssuranceOnly": {
            "title": "🛡️ Trade Assurance only",
            "type": "boolean",
            "description": "Suppliers covered by Alibaba Trade Assurance.",
            "default": false
          },
          "verifiedSupplierOnly": {
            "title": "✅ Verified suppliers only",
            "type": "boolean",
            "description": "Suppliers inspected by a third party (Alibaba's Verified Supplier badge).",
            "default": false
          },
          "verifiedProOnly": {
            "title": "⭐ Verified Pro suppliers only",
            "type": "boolean",
            "description": "Alibaba's highest supplier tier.",
            "default": false
          },
          "minSupplierRating": {
            "title": "⭐ Minimum supplier rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Store rating out of 5, e.g. <code>4.5</code>."
          },
          "sortBy": {
            "title": "↕️ Order",
            "enum": [
              "bestMatch",
              "responseRate"
            ],
            "type": "string",
            "description": "\"bestMatch\" = Alibaba's default order, \"responseRate\" = suppliers who answer fastest first. There is no price sort: sort the returned rows by price yourself.",
            "default": "bestMatch"
          },
          "excludeAds": {
            "title": "🚫 Skip sponsored listings",
            "type": "boolean",
            "description": "Leave out products placed by paid ads (marked <code>isAd</code>). Skipped rows are free.",
            "default": false
          },
          "includeDetails": {
            "title": "📋 Open each product page (billed at the product-page price)",
            "type": "boolean",
            "description": "Leave false for a fast, cheap search. True opens every product page and bills each row at the product-page price instead of the search-row price. Adds specifications, variants, lead time, sample price, sold count and the supplier contact person.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum rows per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many rows in the whole run — a hard ceiling on cost.",
            "default": 10000
          },
          "monitoringStoreName": {
            "title": "🔔 Monitoring mode — store name",
            "type": "string",
            "description": "Leave empty for a normal run. This is not a supplier store name. Only for scheduled monitoring: with a name set (e.g. new-yoga-mats), a run returns only rows not delivered by earlier runs with the same name, so a repeated call can return 0 rows."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}