{
  "openapi": "3.0.1",
  "info": {
    "title": "Taobao & Tmall Scraper & API: Products & Shops ($1/1k)",
    "description": "⚡ Fast & Cheap ($1.05/1k): Monitor & scrape Taobao (淘宝) & Tmall products, seller shop catalogs, DSR ratings & prices. Sentiment tags, CNY/HKD/TWD prices & HD photos, zero cookies.",
    "version": "1.0",
    "x-build-id": "ZIwhQGuUcGwYkqROp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unitbytes~taobao-tmall-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unitbytes-taobao-tmall-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/unitbytes~taobao-tmall-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unitbytes-taobao-tmall-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/unitbytes~taobao-tmall-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unitbytes-taobao-tmall-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": {
          "queries": {
            "title": "Search Queries (Keywords)",
            "type": "array",
            "description": "Product keywords to search on Taobao Global (world.taobao.com), which lists Taobao & Tmall products sold cross-border. Supports Chinese product/category terms (e.g. '手机壳', '蓝牙耳机', '连衣裙', '盲盒') or English product & brand terms ('phone case', 'wireless earbuds', 'xiaomi power bank', 'anime figure' - auto-resolved to Chinese Taobao tags). $0.0015/item ($0.00 charged on 0 results).",
            "items": {
              "type": "string"
            }
          },
          "shopUrls": {
            "title": "Shop / Seller URLs or IDs (Seller Inventory)",
            "type": "array",
            "description": "Seller shops to scrape from Taobao Global (world.taobao.com/dianpu/{shopId}.htm). Most reliable: numeric shop ID ('63978904'), https://shop63978904.taobao.com, https://world.taobao.com/dianpu/63978904.htm, or a world.taobao.com/item/{itemIdStr}.htm product URL from that shop. Brand handles ('inman', 'https://sanfu.tmall.com') are resolved via search for indexed brands. Domestic-only shops return 0 products at $0.00 charged.",
            "items": {
              "type": "string"
            }
          },
          "itemUrls": {
            "title": "Product URLs / IDs (Direct Item Scraping)",
            "type": "array",
            "description": "Taobao Global product URLs (e.g. https://world.taobao.com/item/Y1QrcEVrd3JLNWVjWno4SDJBVHByZz09.htm) or Taobao/Tmall mobile app share links & clipboard text (e.g. '【淘宝】https://e.tb.cn/h.xxx 「商品标题」'). Products are read from Taobao Global (world.taobao.com/item/{itemIdStr}.htm). Mobile share links with titles are unwrapped and matched by exact itemId on Taobao Global; bare numeric item.taobao.com/detail.tmall.com links without titles and Mainland domestic-only listings return status 'UNAVAILABLE' at $0.00 charged.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (Search, Shop, Category, or Product URLs)",
            "type": "array",
            "description": "Paste Taobao, Tmall, World Taobao, or e.tb.cn/m.tb.cn share URLs directly (search listings, shop storefronts like world.taobao.com/dianpu/... or shopXXXX.taobao.com, world.taobao.com/product/... keyword pages, or direct product item URLs). Routed automatically to the matching catalog engine.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of products to scrape (1 to 10,000).",
            "default": 30
          },
          "maxItemsPerSeller": {
            "title": "Max Items Per Seller (Optional)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional cap on how many products to extract per seller when scraping multiple shops in shopUrls."
          },
          "startPage": {
            "title": "Start Page",
            "minimum": 1,
            "type": "integer",
            "description": "Page number to start scraping from (e.g. 1, 2, 5). Allows paginating through large catalogs without tokens.",
            "default": 1
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "default",
              "sales",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Sorting order for product search results.",
            "default": "default"
          },
          "priceMin": {
            "title": "Min Price (¥ CNY)",
            "type": "integer",
            "description": "Minimum unit price in Chinese Yuan (CNY ¥)."
          },
          "priceMax": {
            "title": "Max Price (¥ CNY)",
            "type": "integer",
            "description": "Maximum unit price in Chinese Yuan (CNY ¥)."
          },
          "resumptionToken": {
            "title": "Resumption Token",
            "type": "string",
            "description": "Optional encrypted resumption token copied from a previous run or dataset item. Restores session and cursor to continue scraping seamlessly with zero duplicates."
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Automatically uses Apify Residential proxies on cloud runs to prevent rate limits.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}