{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Product Details Scraper: Price Tiers, MOQ",
    "description": "Scrape full Alibaba.com product pages from links, ids, a Google Sheet or searches, 1,000 a run, no login. Get USD price tiers, price at MOQ, variations, SKU stock, specs, customization, sample price, lead time and supplier facts. JSON, CSV or Excel, schedules and a real-time API; pay per product.",
    "version": "0.1",
    "x-build-id": "Kv4Ra1MQ3p4XstXzO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~alibaba-product-details-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-alibaba-product-details-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/automation_craft~alibaba-product-details-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-alibaba-product-details-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/automation_craft~alibaba-product-details-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-alibaba-product-details-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": {
          "productUrls": {
            "title": "Product links or ids",
            "type": "array",
            "description": "Alibaba product pages, one per line: alibaba.com/product-detail/..._<id>.html, the same page on a language site (german.alibaba.com/product-detail/...), a mobile link (m.alibaba.com/product/<id>/...) or a bare product id. Each product is read from its www.alibaba.com product page and delivered as one row with its full record, billed as one Product. A product Alibaba does not show (removed, or not offered in the delivery country) is a free row.",
            "items": {
              "type": "string"
            }
          },
          "productUrlsFile": {
            "title": "Product links from a file",
            "type": "string",
            "description": "One https link to a text or CSV file, or to a Google Sheet shared with anyone who has the link, holding product links or ids (one per line or one per cell). Each link or id is read like an entry of the list above; at most 1,000 products a run."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to search Alibaba.com for, for example yoga mat. The run reads the search results and then each product page, delivering one full product row per product (up to maxResultsPerKeyword a search). A keyword that is an Alibaba link is read as a search or product link.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search or category links",
            "type": "array",
            "description": "Alibaba search links (alibaba.com/trade/search?SearchText=...), catalog links (alibaba.com/catalog/<name>_cid<id>) or showroom links (alibaba.com/products/<words>.html), their filters read; each product found is read from its product page and delivered as one full product row.",
            "items": {
              "type": "string"
            }
          },
          "categoryIds": {
            "title": "Category ids",
            "type": "array",
            "description": "Alibaba category ids (the digits after _cid in a catalog link, or categoryId in a search link). With keywords, each keyword is searched inside each category; given alone, each category is browsed without words.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerKeyword": {
            "title": "Offers per search",
            "minimum": 1,
            "maximum": 960,
            "type": "integer",
            "description": "The most product rows one search delivers (1 to 960). Each is one product page read at the Actor's pace (about 5 a minute after the first 15 of a run).",
            "default": 10
          },
          "maxPagesPerKeyword": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Most result pages of 48 offers read per search, 1 to 20. Left out: up to 20 in Alibaba's own orders, 1 with a price or response rate order (which sorts the offers read)."
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "The result page each search starts at (1 to 20). Left out: page 1, or a search link's own page."
          },
          "maxItems": {
            "title": "Most products in the run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most product rows the whole run delivers (1 to 1,000), from links and searches together. A run reads about 5 product pages a minute after its first 15, so 1,000 products take about 3 hours: give the run a timeout to match.",
            "default": 100
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "best_match",
              "sales",
              "price_low",
              "price_high",
              "response_rate",
              "trade_ranking"
            ],
            "type": "string",
            "description": "best_match (Alibaba's order), sales (Alibaba's best sellers of the last 180 days) or trade_ranking (Alibaba's trade ranking, its own order that puts established trading suppliers first: another set of products than best match); price_low, price_high and response_rate sort the offers this run read (Alibaba serves no such order), and each row's search place says so. Left out: best match, or a search link's own order."
          },
          "minPrice": {
            "title": "Lowest price (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Alibaba's own price filter for searches, in USD per unit. Each row then says outOfRange: true when its price at the minimum order lies outside your range."
          },
          "maxPrice": {
            "title": "Highest price (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Alibaba's own price filter, in USD per unit (see the lowest price)."
          },
          "minMoq": {
            "title": "Smallest minimum order",
            "minimum": 1,
            "maximum": 100000000,
            "type": "integer",
            "description": "Only offers whose minimum order quantity is at least this (checked on each row)."
          },
          "maxMoq": {
            "title": "Largest minimum order",
            "minimum": 1,
            "maximum": 100000000,
            "type": "integer",
            "description": "Only offers you can order in this quantity or less, for example 10 for small test orders (Alibaba's own filter, checked on each row)."
          },
          "supplierCountries": {
            "title": "Supplier countries",
            "type": "array",
            "description": "Two letter codes or English names (CN, IN, VN, TR, US). Each search is read once per country with Alibaba's own country filter.",
            "items": {
              "type": "string"
            }
          },
          "verifiedOnly": {
            "title": "Verified suppliers only",
            "type": "boolean",
            "description": "Suppliers checked by a third party inspection company (Alibaba's Verified badge)."
          },
          "verifiedProOnly": {
            "title": "Verified Pro suppliers only",
            "type": "boolean",
            "description": "Alibaba's Verified Pro suppliers."
          },
          "goldSupplierOnly": {
            "title": "Gold suppliers only",
            "type": "boolean",
            "description": "Searches only: keep only products whose supplier carries Alibaba's Gold Supplier badge on the search result (the product page does not show it); the others are left out and not charged."
          },
          "tradeAssuranceOnly": {
            "title": "Trade Assurance only",
            "type": "boolean",
            "description": "Suppliers that take Trade Assurance orders (checked on each row; almost every supplier does)."
          },
          "businessTypes": {
            "title": "Business types",
            "type": "array",
            "description": "Only suppliers of these business types: manufacturer, trading_company, distributor, buying_office, other. With Verified suppliers only, manufacturer gives verified manufacturers.",
            "items": {
              "type": "string",
              "enum": [
                "manufacturer",
                "trading_company",
                "distributor",
                "buying_office",
                "other"
              ],
              "enumTitles": [
                "Manufacturer",
                "Trading company",
                "Distributor or wholesaler",
                "Buying office",
                "Other"
              ]
            }
          },
          "minSupplierYears": {
            "title": "Least years on Alibaba",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Only suppliers with at least this many years on Alibaba.com (checked on each row)."
          },
          "minSupplierRating": {
            "title": "Lowest store rating",
            "minimum": 0.1,
            "maximum": 5,
            "type": "number",
            "description": "Only suppliers with at least this store rating out of 5 (4.5 and 5 use Alibaba's own filter; every value is checked on each row)."
          },
          "companyCertifications": {
            "title": "Company certifications",
            "type": "array",
            "description": "Only suppliers holding one of these management certifications, for example ISO, BSCI, IATF 16949 (Alibaba's own filter with the first, every row checked for any of them).",
            "items": {
              "type": "string"
            }
          },
          "excludeSupplierIds": {
            "title": "Supplier ids to leave out",
            "type": "array",
            "description": "Supplier ids (supplier.id of earlier rows) whose offers are left out, free; they never count against a cap. Up to 100,000.",
            "items": {
              "type": "string"
            }
          },
          "productCertifications": {
            "title": "Product certifications",
            "type": "array",
            "description": "Only offers that show one of these product certifications, for example CE, ROHS, FCC, UL (Alibaba's own filter with the first, every row checked for any of them).",
            "items": {
              "type": "string"
            }
          },
          "readyToShip": {
            "title": "Ready to ship only",
            "type": "boolean",
            "description": "Alibaba's Ready to Ship offers."
          },
          "samplesAvailable": {
            "title": "Samples available",
            "type": "boolean",
            "description": "Alibaba's filter for products you can order a sample of; a product whose page says it offers no samples is left out, free. Ads are left out under it (an ad slot need not follow the filter). Each row's sample block gives the terms the page shows (the sample price in USD where the page states it in US dollars)."
          },
          "productTagId": {
            "title": "Alibaba product tag id",
            "type": "string",
            "description": "An Alibaba internal product tag id (7 to 16 digits) sent as Alibaba's product tag filter; rows that do not carry the tag are left out, free."
          },
          "maxLeadTimeDays": {
            "title": "Longest lead time (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only products whose lead time on the search card is at most this many days; a product is judged again on its page, at the lead time of an order of its MOQ."
          },
          "excludeAds": {
            "title": "Leave out ads",
            "type": "boolean",
            "description": "Leave out products a search found through a paid ad (foundBy.card.isAd); they are free. Off: ads are delivered, with foundBy.card.isAd true."
          },
          "onlyTitleMatches": {
            "title": "Only titles that carry the words",
            "type": "boolean",
            "description": "Leave out, free, products a search found whose title (on the search card and on the product page) holds fewer than half of the keyword's words (Alibaba also returns related products)."
          },
          "excludeOfferIds": {
            "title": "Offer ids to leave out",
            "type": "array",
            "description": "Product ids (productId of earlier rows) a search leaves out, free. Up to 100,000.",
            "items": {
              "type": "string"
            }
          },
          "shipsFromCountries": {
            "title": "Ships from countries",
            "type": "array",
            "description": "Keep only products whose page lists one of these places of dispatch (two letter codes, for example US, DE): read on each product page; products that do not ship from them are left out and not charged.",
            "items": {
              "type": "string"
            }
          },
          "orderQuantity": {
            "title": "Your order quantity",
            "minimum": 1,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Adds unitPriceAtQuantity to every row: the price per unit at this quantity, read from the product's own tiers (empty below its minimum order, and on a product priced only by variant, which has no tiers)."
          },
          "shipToCountry": {
            "title": "Delivery country",
            "type": "string",
            "description": "Read each product page as a buyer in this country (two letter code, for example DE, GB, AU), with Alibaba's own country setting: the shipping options the page shows are that country's, and a product not offered there is a free row that says so. Prices stay in USD; with currency set, the page's local prices are delivered beside them. Left out: as a buyer in the United States."
          },
          "currency": {
            "title": "Local currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "INR",
              "BRL",
              "MXN",
              "AED",
              "SAR",
              "JPY",
              "KRW",
              "SGD",
              "ZAR",
              "RUB",
              "TRY"
            ],
            "type": "string",
            "description": "Also deliver the page's own prices in this currency (Alibaba's currency setting, the figures as Alibaba shows them, never converted by this Actor), beside the USD figures every row carries. Left out: USD only."
          },
          "includeSupplierRows": {
            "title": "Add one row per supplier",
            "type": "boolean",
            "description": "Also deliver one row per distinct supplier of the products this run delivered (type supplier): company, country, years, verification, ratings, response time, on time delivery, orders and revenue of the last 6 months, company scale, capabilities and contact person. Billed as one Supplier each; built from the product rows, no extra page read.",
            "default": false
          },
          "extendOutputFunction": {
            "title": "Extend output function",
            "type": "string",
            "description": "A JavaScript function that gets each product row and returns an object stored under custom on that row, for example ({ title, unitPriceAtMoq }) => ({ short: title.slice(0, 40) }). It runs in an isolated child process with no network and no access to the run, at most 1 s per row; an error is a note on the row."
          },
          "maxConcurrency": {
            "title": "Pages in flight",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Search pages read at once (1 to 3). Product pages are always read one at a time, at the Actor's pace.",
            "default": 2
          },
          "maxRequestRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Times a failed request is asked again (0 to 5).",
            "default": 2
          },
          "maxRunSeconds": {
            "title": "Time limit (seconds)",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "The run stops reading after this many seconds and writes its rows, summaries and status (30 to 86,400)."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Write detailed log lines.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave the default: the run reads from its own address with one Apify datacenter session behind it. Apify datacenter from the start is also accepted. Residential exits and own proxies are not used (the delivery country is set with Alibaba's own setting)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}