{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Scraper By Price, MOQ & Supplier Filter",
    "description": "🛒 Alibaba Scraper extracts product & supplier data from Alibaba search and product pages—titles, prices, MOQ, specs, images, ratings, contact & shipping. 📊 Export to CSV/JSON. 🚀 Perfect for sourcing, market research, price tracking & dropshipping.",
    "version": "0.1",
    "x-build-id": "097NWrHbSE2EKLAu5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/simpleapi~alibaba-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-simpleapi-alibaba-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/simpleapi~alibaba-scraper/runs": {
      "post": {
        "operationId": "runs-sync-simpleapi-alibaba-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/simpleapi~alibaba-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-simpleapi-alibaba-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": [
          "searchUrls"
        ],
        "properties": {
          "searchUrls": {
            "title": "🔗 Search URLs (bulk)",
            "type": "array",
            "description": "**Add every Alibaba search or category page you want to source from** — one URL per line. 📝\n\n✅ Works with search-results, category browse, and similar listing views.\n\n🧭 Tip: set your keywords/category in Chrome or Edge, then copy the address bar — those settings travel with the link.\n\n📦 Bulk: paste many URLs at once; each is processed in order. (Accepts the legacy `urls` key too.)",
            "items": {
              "type": "string"
            }
          },
          "productLimit": {
            "title": "🔢 Product match limit",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "**Total number of MATCHING products** (after filters) to save to the dataset, across all URLs. 🎯\n\n📊 Dataset updates live — rows appear as each page finishes and the run stops once your target is reached. Alibaba returns ~48 products per page, so just enough pages are opened. (Accepts the legacy `maxItems` key too.)\n\n🎯 Try 10–50 first, then raise.",
            "default": 10
          },
          "minPrice": {
            "title": "💵 Min unit price",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only offers whose parsed unit price (priceValue, lower bound of any range) is **at least** this amount. Leave blank for no lower bound. Example: minPrice=5 drops sub-$5 offers."
          },
          "maxPrice": {
            "title": "💸 Max unit price",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only offers whose parsed unit price (priceValue) is **at most** this amount. Leave blank for no upper bound. Example: maxPrice=20 drops offers above $20/unit."
          },
          "maxMoq": {
            "title": "📦 Max MOQ (minimum order quantity)",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only offers whose minimum order quantity (moqValue, parsed from the offer, e.g. \"2 pieces\" → 2) is **at most** this number. Leave blank to allow any MOQ. Example: maxMoq=10 keeps low-MOQ suppliers only."
          },
          "verifiedSuppliersOnly": {
            "title": "🏅 Verified (Gold) suppliers only",
            "type": "boolean",
            "description": "When ON, keep only offers from verified suppliers — paid Gold Suppliers (goldSupplierYears ≥ 1) or suppliers carrying a certification badge in the payload. Default OFF (all suppliers).",
            "default": false
          },
          "minReviewScore": {
            "title": "⭐ Min supplier review score",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only offers whose reviewScore is **at least** this value (Alibaba review scores are ~0–5). Leave blank for no review filter. Offers with no review score are dropped when this filter is set. Example: minReviewScore=4."
          },
          "maxPages": {
            "title": "📄 Max pages per URL (override)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Optional hard cap on how many result pages to open per URL. Leave blank to let the actor derive it from your match limit. Overrides the page auto-estimate when set."
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy configuration",
            "type": "object",
            "description": "Enable Apify Proxy and pick a group. Residential is selected by default."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}