{
  "openapi": "3.0.1",
  "info": {
    "title": "Taobao & Tmall Product Scraper API 淘宝 天猫 - SKUs, Reviews, Sales",
    "description": "Scrape hundreds of Taobao 淘宝 and Tmall 天猫 products in one run, no login: search any keyword in English or Chinese, or paste shop links, product links or item ids. Price, title, shop and images per product, every SKU with price and stock, buyer reviews 评价, sales 销量 or price sort, Tmall only.",
    "version": "0.0",
    "x-build-id": "Edn96mgbMZR2eHg56"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~taobao-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-taobao-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/memo23~taobao-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-taobao-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/memo23~taobao-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-taobao-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": {
          "startUrls": {
            "title": "Product URLs or item ids",
            "type": "array",
            "description": "Taobao or Tmall product URLs (item.taobao.com/item.htm?id=…, detail.tmall.com/item.htm?id=…, m.intl.taobao.com, world.taobao.com/item/…), bare numeric item ids, or Taobao keyword and category page URLs. One row per product. Each one comes back with its title, price, shop name, images and every SKU with its own price and stock. Taobao shows no public product page for most items, so seller scores, the reviews summary and the ship-from city are not available for these rows; search by keyword if you need those. Each pasted item is billed as one product row, with no extra charge for its SKUs. e.tb.cn share links only open from mainland China, so paste the full product URL instead. Duplicates are removed before anything is fetched.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords in Chinese or English (手机壳, phone case). Each keyword returns the top 20 products on Taobao's public page for it, with a `rank` field. Taobao publishes these pages for common product terms only: a keyword it has no page for returns nothing and the run log says so. Use several related keywords to cover more products.",
            "items": {
              "type": "string"
            }
          },
          "maxProductsPerKeyword": {
            "title": "Products per keyword",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many products each keyword can bring, 1-500. Default 20, the keyword's first page. Above 20, a paying run searches the keyword again across price bands and sort orders and keeps only new products, about 12-20 more per extra search, until the number is reached or the searches stop finding new ones. Products are billed per row as usual; the extra searches are not billed. Free-plan runs stay at the first page.",
            "default": 20
          },
          "searchSort": {
            "title": "Sort keyword results",
            "enum": [
              "relevance",
              "sales",
              "price_desc"
            ],
            "type": "string",
            "description": "Relevance (综合) returns Taobao's top 20 for each keyword. Best-selling (销量) or highest price first return the top 10 in that order. On the free plan this comes from a daily allowance shared by all free runs, up to 10 lookups per run; once it is used up, the run reads the public pages only.",
            "default": "relevance"
          },
          "tmallOnly": {
            "title": "Tmall only (只看天猫)",
            "type": "boolean",
            "description": "Keep keyword results to Tmall stores. Returns the top 10 Tmall products for each keyword. On the free plan this comes from a daily allowance shared by all free runs, up to 10 lookups per run; once it is used up, the run reads the public pages only.",
            "default": false
          },
          "translateKeywords": {
            "title": "Translate English keywords to Chinese",
            "type": "boolean",
            "description": "Search queries written in English (lipstick, phone case) are machine-translated to the Chinese words Taobao matches best. Rows keep the Chinese keyword in sourceQuery and yours in sourceQueryOriginal. Chinese queries are searched as typed.",
            "default": true
          },
          "shopUrls": {
            "title": "Shop links",
            "type": "array",
            "description": "Taobao shop links (`https://shop467290190.taobao.com`) or a seller's numeric user id. Each shop returns up to 20 of its products with prices, the seller id, the shop link and its catalogue size, billed per product like any other row. Needs a paid Apify plan. Shop links pasted into Product URLs work too.",
            "items": {
              "type": "string"
            }
          },
          "categoryIds": {
            "title": "Category ids",
            "type": "array",
            "description": "Taobao category ids (the number in world.taobao.com/category/<id>.htm). Each returns the top 20 products in that category.",
            "items": {
              "type": "string"
            }
          },
          "scrapeDetails": {
            "title": "Add product-page detail to keyword and category results",
            "type": "boolean",
            "description": "For products found by keyword or category, also read each product's page to add seller id, shop credit level, shop scores, shop age, review count and positive rate, what buyers mention most, the latest review, ship-from location and whether it is a Tmall store. One extra request per product. Taobao currently publishes such a page for very few items, so most rows come back without these fields; turn it off to run faster.",
            "default": true
          },
          "includeVariants": {
            "title": "Add variant prices and stock",
            "type": "boolean",
            "description": "Add `variants` to each product: every SKU (colour, size, storage …) with its own price in CNY, stock and image, plus `variantCount`, the lowest and highest variant price, the full untruncated title, description images, minimum order quantity and the seven-day return flag. Items you paste into Product URLs already come back this way, at no extra charge, and do not need this turned on; this option is for products found by keyword, category or shop. From 25 November 2026 each product that gets them adds a Product variants charge of $0.007. Adds about 20 seconds per product, run in parallel. On the free plan this comes from a daily allowance shared by all free runs, up to 10 lookups per run; once it is used up, the run reads the public pages only.",
            "default": false
          },
          "includeReviews": {
            "title": "Add buyer reviews",
            "type": "boolean",
            "description": "After each product, add its newest buyer reviews as rows with `type: review`: rating, text, the variant bought, date, masked buyer name and helpful count. Each review row is billed like a product row. On the free plan this comes from a daily allowance shared by all free runs, up to 10 lookups per run; once it is used up, the run reads the public pages only.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How many of the newest reviews to add per product, at most 20: the newest 20 are what can be read without a login. Used only with \"Add buyer reviews\".",
            "default": 20
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many products in total. Free-plan runs are capped at 20, and a free-plan account can start 10 runs of this actor a day.",
            "default": 100
          },
          "priceMin": {
            "title": "Min price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products priced at or above this, in yuan. Products with no price are kept."
          },
          "priceMax": {
            "title": "Max price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products priced at or below this, in yuan."
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages to fetch at once.",
            "default": 8
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave as is; it works out of the box. A free-plan run uses Apify Residential, billed to your account. If you supply your own, US residential proxies work best."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}