{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Products Scraper",
    "description": "Extract public Alibaba wholesale product listings, pricing, MOQ, and supplier signals with direct, robots-aware HTTP; contact and private supplier fields are excluded.",
    "version": "1.0",
    "x-build-id": "q6Ro0A2uXlyoYJg1x"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codingfrontend~alibaba-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codingfrontend-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/codingfrontend~alibaba-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-codingfrontend-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/codingfrontend~alibaba-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-codingfrontend-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": {
          "queries": {
            "title": "Search queries",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Product keywords used to create Alibaba searches when searchUrls is omitted. Defaults to wireless earbuds. Use 1–20 phrases, up to 200 Unicode characters each. Alibaba's current robots policy disallows the generated /trade/search path, so keyword searches are skipped; a permitted public catalog/category or showroom URL may be usable instead.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": [
              "wireless earbuds"
            ]
          },
          "searchUrls": {
            "title": "Public Alibaba URLs",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Optional HTTPS URLs for public Alibaba search, catalog, category, showroom, or product-detail pages. When supplied, these URLs take precedence over queries. Use 1–20 objects containing only a url. Alibaba.com must allow the requested page under its robots policy.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "Alibaba URL",
                  "description": "A full public HTTPS Alibaba.com search, catalog, category, showroom, or product-detail page URL.",
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            }
          },
          "max_pages": {
            "title": "Maximum pages per search URL",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum pages to follow for each generated query or supplied search URL. Pagination follows observed next-page links.",
            "default": 1
          },
          "start_page": {
            "title": "Starting page for keyword searches",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "One-indexed starting page for generated keyword searches. It does not change a supplied searchUrls entry.",
            "default": 1
          },
          "max_products": {
            "title": "Maximum unique products",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of unique product rows saved across all queries and supplied URLs.",
            "default": 300
          },
          "moq_min": {
            "title": "Minimum MOQ",
            "minimum": 1,
            "type": "number",
            "description": "Keep products whose displayed minimum order quantity is at least this value. Products without an MOQ do not pass this filter."
          },
          "price_min": {
            "title": "Minimum price amount",
            "minimum": 0,
            "type": "number",
            "description": "Keep products whose displayed price range reaches at least this amount. Values are compared as shown; the Actor does not convert currencies."
          },
          "price_max": {
            "title": "Maximum price amount",
            "minimum": 0,
            "type": "number",
            "description": "Keep products whose displayed price range starts at or below this amount. Values are compared as shown; the Actor does not convert currencies."
          },
          "trade_assurance": {
            "title": "Trade Assurance only",
            "type": "boolean",
            "description": "Keep only products whose public listing is marked Trade Assurance. Missing badge information does not pass the filter.",
            "default": false
          },
          "verified_supplier": {
            "title": "Verified suppliers only",
            "type": "boolean",
            "description": "Keep only products whose public listing is marked Verified Supplier. Missing badge information does not pass the filter.",
            "default": false
          },
          "alibaba_guaranteed": {
            "title": "Alibaba Guaranteed only",
            "type": "boolean",
            "description": "Keep only products carrying the public Alibaba Guaranteed badge. Missing badge information does not pass the filter.",
            "default": false
          },
          "maxRetries": {
            "title": "Maximum request attempts",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum total attempts, including the first request, for each public page request.",
            "default": 2
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Minimum delay between public page requests in milliseconds.",
            "default": 1000
          },
          "requestTimeoutMs": {
            "title": "Request timeout (ms)",
            "minimum": 5000,
            "maximum": 120000,
            "type": "integer",
            "description": "Timeout for each public page request in milliseconds.",
            "default": 30000
          },
          "maxBytes": {
            "title": "Maximum response size (bytes)",
            "minimum": 1000,
            "maximum": 15000000,
            "type": "integer",
            "description": "Largest response body accepted from one public page.",
            "default": 5000000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}