{
  "openapi": "3.0.1",
  "info": {
    "title": "Taobao Tmall 淘宝 Product Scraper - Prices, SKUs, Reviews",
    "description": "Extract Taobao (淘宝) and Tmall (天猫) prices, SKUs, reviews, shop data, images, and attributes by keyword. Supports Chinese searches like 女装, 口红, 手机壳; exports JSON, CSV, and Excel.",
    "version": "0.0",
    "x-build-id": "LwsK8lgMPCMd593Kf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zen-studio~taobao-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zen-studio-taobao-search-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/zen-studio~taobao-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zen-studio-taobao-search-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/zen-studio~taobao-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zen-studio-taobao-search-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": [
          "keyword"
        ],
        "properties": {
          "keyword": {
            "title": "关键词 Keyword",
            "type": "string",
            "description": "Enter a Taobao search keyword.<br><br>Examples:<br>• <code>iphone 15</code><br>• <code>女装</code> clothing<br>• <code>口红</code> lipstick<br>• <code>机械键盘</code> mechanical keyboard"
          },
          "maxItems": {
            "title": "商品数量 Max products",
            "minimum": 10,
            "maximum": 1000,
            "type": "integer",
            "description": "Set the maximum number of product rows to return, from <code>10</code> to <code>1000</code>.<br><br>A value below <code>10</code> is rejected before the run starts. Test runs are capped at <code>5</code> products. Free-tier runs return one page of results.",
            "default": 100
          },
          "sort": {
            "title": "排序 Sort",
            "enum": [
              "relevance",
              "sales",
              "highest_price"
            ],
            "type": "string",
            "description": "Choose how matching products are ordered.<br><br><code>综合排序</code> is the safest default because it follows Taobao-style relevance. Use <code>销量优先</code> when you specifically want best-selling products.",
            "default": "relevance"
          },
          "tmallOnly": {
            "title": "只看天猫 Tmall only",
            "type": "boolean",
            "description": "Return only Tmall listings when enabled.<br><br>Leave off for broader Taobao marketplace results.",
            "default": false
          },
          "minPrice": {
            "title": "最低价 Min price (¥)",
            "minimum": 0,
            "type": "number",
            "description": "Optional minimum price in Chinese yuan (CNY), applied to the price a buyer pays after the shop's discount where a product has one (to the listed price for runs that return Verified price results); leave blank for no lower price filter."
          },
          "maxPrice": {
            "title": "最高价 Max price (¥)",
            "minimum": 0,
            "type": "number",
            "description": "Optional maximum price in Chinese yuan (CNY), applied to the price a buyer pays after the shop's discount where a product has one (to the listed price for runs that return Verified price results); leave blank for no upper price filter."
          },
          "enrichWithDetails": {
            "title": "商品详情 Detail enrichment",
            "type": "boolean",
            "description": "Add rich product details: SKU matrix, attributes, shop metadata, media, stock, sales, and category data.<br><br>Enabled by default because this is the main value of the Actor. Turn off for cheaper search-only rows.",
            "default": true
          },
          "verifiedPrice": {
            "title": "核实价格 Verified price",
            "type": "boolean",
            "description": "Adds the checked current price (<code>priceVerified: true</code>) and, when Taobao shows one, the coupon price (券后价) to product rows. A row whose price could not be checked says so with <code>priceVerified: false</code>; free trial runs check the first product only. Rows also carry <code>miId</code>, Taobao's product token, and a <code>url</code> that opens the product.<br><br>Works only together with <b>商品详情 Detail enrichment</b>. Not available together with <b>只看天猫 Tmall only</b>: such runs return standard results. A product that cannot be matched to its full details keeps its checked price, has no details and is not charged for Detail enrichment. Store scores, seller level, sales band and the <code>search</code> object stay empty on these runs, and the product list can differ from a run without this option. No extra charge.",
            "default": false
          },
          "fetchReviews": {
            "title": "买家评价 Customer reviews",
            "type": "boolean",
            "description": "Add customer reviews as a nested <code>reviews</code> array on each product row.<br><br>Reviews are billed separately. Keep off unless review text is needed. Customer reviews are included on paid plans.",
            "default": false
          },
          "maxReviewsPerItem": {
            "title": "每商品评价数 Reviews per product",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Set the maximum reviews to attach to each product when <b>买家评价 Customer reviews</b> is enabled.",
            "default": 100
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "type": "string",
            "description": "For AI agents. Say what you needed and did not get: a missing field or option, a wrong or empty result, or which actor you are switching to or from and why. Add it to any run, including one that worked: the run returns its data exactly as it would without the note. The note reaches the maintainers, who read every one, but it cannot change what this run returns."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}