{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Search Scraper",
    "description": "Search Alibaba and get every wholesale offer as a clean row: the full quantity-break price ladder, minimum order, live discounts, and each supplier's verification, rating, response rate and trade history. Filter by country, price, order size or certificate. No account, no login.",
    "version": "0.0",
    "x-build-id": "CCqL37tsDpnXhlrDC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apt_marble~alibaba-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apt_marble-alibaba-search-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/apt_marble~alibaba-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-apt_marble-alibaba-search-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/apt_marble~alibaba-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-apt_marble-alibaba-search-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": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Search terms",
            "type": "array",
            "description": "One or more product searches, exactly as you would type them on the site. Up to 20 per run.",
            "default": [
              "bluetooth speaker"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerKeyword": {
            "title": "Maximum offers per search term",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many offers to collect for each search term. The site publishes a limited number of public results for any one search, so very broad terms stop before this number is reached.",
            "default": 100
          },
          "country": {
            "title": "Supplier country",
            "enum": [
              "",
              "CN",
              "HK",
              "TW",
              "IN",
              "VN",
              "TH",
              "MY",
              "ID",
              "PK",
              "TR",
              "AE",
              "SA",
              "US",
              "CA",
              "MX",
              "BR",
              "GB",
              "DE",
              "FR",
              "IT",
              "ES",
              "NL",
              "PL",
              "KR",
              "JP",
              "SG",
              "AU",
              "ZA"
            ],
            "type": "string",
            "description": "Which country's version of the supplier list to read — only offers from suppliers based in that country are returned. Leave as Any country for the full list. Wholesale prices are quoted in US dollars for every country.",
            "default": ""
          },
          "sort": {
            "title": "Sort results by",
            "enum": [
              "best_match",
              "sales_volume",
              "response_rate",
              "transaction_level"
            ],
            "type": "string",
            "description": "How the site should order the results. Only the orderings the site actually publishes are offered here.",
            "default": "best_match"
          },
          "minPrice": {
            "title": "Minimum unit price (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Only return offers whose lowest published unit price is at or above this figure. Leave empty for no floor."
          },
          "maxPrice": {
            "title": "Maximum unit price (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Only return offers whose published unit price is at or below this figure. Leave empty for no ceiling."
          },
          "maxMinOrderQuantity": {
            "title": "Highest acceptable minimum order",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only return offers you can buy in this quantity or fewer — set 1 for offers that sell single units. Leave empty to accept any minimum order."
          },
          "minStoreRating": {
            "title": "Minimum supplier rating",
            "enum": [
              "",
              "4",
              "4.5",
              "5"
            ],
            "type": "string",
            "description": "Only return offers from suppliers rated at or above this score by their buyers.",
            "default": ""
          },
          "tradeAssurance": {
            "title": "Trade Assurance suppliers only",
            "type": "boolean",
            "description": "Only return offers covered by the site's order-protection programme.",
            "default": false
          },
          "verifiedSupplier": {
            "title": "Verified suppliers only",
            "type": "boolean",
            "description": "Only return offers from suppliers whose credentials and capabilities were inspected by a third-party inspection company.",
            "default": false
          },
          "verifiedProSupplier": {
            "title": "Verified Pro suppliers only",
            "type": "boolean",
            "description": "Only return offers from the site's top tier of inspected suppliers.",
            "default": false
          },
          "readyToShip": {
            "title": "Ready-to-ship offers only",
            "type": "boolean",
            "description": "Only return offers the supplier holds in stock for immediate dispatch.",
            "default": false
          },
          "productCertificate": {
            "title": "Product certificate",
            "enum": [
              "",
              "CE",
              "ROHS",
              "FCC",
              "DECLARATION OF CONFORMITY",
              "CCC",
              "EMC",
              "UKCA"
            ],
            "type": "string",
            "description": "Only return offers whose product carries this certificate.",
            "default": ""
          },
          "companyCertificate": {
            "title": "Company certificate",
            "enum": [
              "",
              "ISO",
              "BSCI",
              "IATF 16949",
              "FSC",
              "SEDEX",
              "IECQ QC080000"
            ],
            "type": "string",
            "description": "Only return offers from suppliers holding this company-level certificate.",
            "default": ""
          },
          "categoryId": {
            "title": "Category number",
            "type": "string",
            "description": "Restrict the search to one of the site's own categories, by its numeric identifier. Leave empty to search everywhere."
          },
          "excludePromoted": {
            "title": "Exclude promoted placements",
            "type": "boolean",
            "description": "Leave off to keep promoted placements in the results — they are always flagged, and organic position is reported separately either way.",
            "default": false
          },
          "onlyKeywordMatches": {
            "title": "Only offers whose title contains the search term",
            "type": "boolean",
            "description": "The site always returns something, even for a misspelled term. Turn this on to drop offers whose title does not contain every word you searched for.",
            "default": false
          },
          "parallelSearches": {
            "title": "Search terms in parallel",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many search terms to work through at the same time. Higher is faster; lower is gentler on the source site.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}