{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Scraper",
    "description": "[💰 $3.99 / 1K products] Scrape Alibaba.com by keyword, category, photo, supplier or link: price tiers, MOQ, every variant's price and stock, lead times, shipping cost, verified suppliers. ~9,000 per search. Search fields only $1.99 / 1K. No account, no proxy. Export JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "4EqmUijV3i4vTjY2U"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sleepmodesystems~alibaba-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sleepmodesystems-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/sleepmodesystems~alibaba-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sleepmodesystems-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/sleepmodesystems~alibaba-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sleepmodesystems-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",
        "properties": {
          "searchTerms": {
            "title": "🔍 Search terms or Alibaba links",
            "type": "array",
            "description": "What you would type into Alibaba.com's search box (<code>yoga mat</code>, <code>led strip light</code>), or a link to an Alibaba search, category or showroom page with its filters (<code>alibaba.com/trade/search?SearchText=…&ta=y</code>, <code>alibaba.com/catalog/speakers_cid518</code>). Up to ~9,000 products per search.",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "title": "🔗 Product links or ids",
            "type": "array",
            "description": "Alibaba product pages, from any country site or the app's share link (<code>https://www.alibaba.com/product-detail/…_1601617846699.html</code>), or just the id <code>1601617846699</code>. Each is read complete.",
            "items": {
              "type": "string"
            }
          },
          "suppliers": {
            "title": "🏭 Supplier links",
            "type": "array",
            "description": "A supplier's site (<code>https://dgmika.en.alibaba.com</code> or just <code>dgmika</code>) or company id: every product it lists, with the same filters.",
            "items": {
              "type": "string"
            }
          },
          "imageUrls": {
            "title": "📷 Photo links",
            "type": "array",
            "description": "Links to product photos (JPG, PNG, WebP, up to 10 MB): the Alibaba.com products that look like each photo, most similar first.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Products per search, supplier or photo",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop each search, supplier or photo at this many products. Up to 10,000 (a broad search has ~9,000).",
            "default": 100
          },
          "details": {
            "title": "Complete rows (recommended)",
            "type": "boolean",
            "description": "On: every product with every variant's price and stock, lead times, customization, samples, specifications, certifications, shipping to your country, the description and the supplier's verified record. Off: search fields only (price tiers, minimum order, supplier card), cheaper and faster.",
            "default": true
          },
          "shipTo": {
            "title": "Ship to",
            "type": "string",
            "description": "Your country, for shipping options and costs on complete rows: a code or name (<code>US</code>, <code>Germany</code>, <code>UK</code>). Prices are Alibaba's US dollar prices.",
            "default": "US"
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "type": "number",
            "description": "Only products priced at least this much per unit."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "type": "number",
            "description": "Only products priced at most this much per unit."
          },
          "minOrderAtMost": {
            "title": "Minimum order at most",
            "type": "integer",
            "description": "Only products you can order in this quantity or less, e.g. <code>10</code> for small test orders."
          },
          "minOrderAtLeast": {
            "title": "Minimum order at least",
            "type": "integer",
            "description": "Only products whose minimum order is at least this, e.g. <code>500</code> for factory runs."
          },
          "supplierCountries": {
            "title": "Supplier countries",
            "type": "array",
            "description": "Codes or names: <code>CN</code>, <code>India</code>, <code>Vietnam</code>, <code>TR</code>. Empty: all.",
            "items": {
              "type": "string"
            }
          },
          "tradeAssurance": {
            "title": "Trade Assurance only",
            "type": "boolean",
            "description": "Suppliers whose orders Alibaba's Trade Assurance protects.",
            "default": false
          },
          "verifiedSuppliers": {
            "title": "Verified suppliers only",
            "type": "boolean",
            "description": "Suppliers inspected by a third party (Alibaba's Verified badge).",
            "default": false
          },
          "verifiedProSuppliers": {
            "title": "Verified Pro suppliers only",
            "type": "boolean",
            "description": "Alibaba's top supplier tier.",
            "default": false
          },
          "guaranteed": {
            "title": "Alibaba Guaranteed only",
            "type": "boolean",
            "description": "Products with Alibaba's guaranteed price and delivery date.",
            "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>."
          },
          "certifications": {
            "title": "Product certifications",
            "type": "array",
            "description": "Only products with one of these certificates: <code>CE</code>, <code>RoHS</code>, <code>FCC</code>, <code>FDA</code>…",
            "items": {
              "type": "string"
            }
          },
          "excludeSponsored": {
            "title": "Leave out sponsored listings",
            "type": "boolean",
            "description": "Skip products placed by paid ads (marked <code>sponsored</code>). Skipped products are not charged.",
            "default": false
          },
          "minItems": {
            "title": "Fail the run below this many products",
            "minimum": 0,
            "type": "integer",
            "description": "For monitoring: the run fails when it delivers fewer products. 0: never.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}