{
  "openapi": "3.0.1",
  "info": {
    "title": "Taobao Scraper 💰 $2/1K · Deep Search & Price Alerts",
    "description": "Scrape Taobao & Tmall without login: price, promo, shop and image from keywords, shops or categories. Deep search returns 100-400 products per keyword, plus listings by brand. Add seller credit, shop age and ships-from. Monitor mode alerts new products and price changes to Slack, Discord or webhook.",
    "version": "0.1",
    "x-build-id": "NFSxckG6zHGX4Mb2K"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/first-penguin~taobao-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-first-penguin-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/first-penguin~taobao-scraper/runs": {
      "post": {
        "operationId": "runs-sync-first-penguin-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/first-penguin~taobao-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-first-penguin-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": {
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Chinese keywords reach far more products (e.g. 蓝牙耳机 for bluetooth earphones). English works when Taobao has a catalog page for it (e.g. phone case). Each keyword also returns one free summary row with the total listings and listings by brand.",
            "items": {
              "type": "string"
            }
          },
          "shopUrls": {
            "title": "Shop links or numbers",
            "type": "array",
            "description": "Up to 60 products per shop, with the shop's description, service and delivery scores. Examples: https://world.taobao.com/dianpu/63978904.htm, https://shop63978904.taobao.com or 63978904. Shops that do not sell overseas have no public page.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category links or numbers",
            "type": "array",
            "description": "The top 20 products of a category. Example: https://world.taobao.com/category/50103032.htm",
            "items": {
              "type": "string"
            }
          },
          "itemUrls": {
            "title": "Catalog item links",
            "type": "array",
            "description": "Catalog links like https://www.taobao.com/list/item/<code>.htm (every row of this Actor has one in 'url'). Not supported: item.taobao.com / detail.tmall.com links, numeric item IDs and e.tb.cn share links — Taobao asks signed-out visitors to log in for those. They come back as a free row with the reason.",
            "items": {
              "type": "string"
            }
          },
          "maxProductsPerSource": {
            "title": "Max products per keyword, shop or category",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Keywords go past Taobao's 20-product page by re-reading the keyword in other sort orders and price bands (deep search). Shops stop at 60, categories at 20.",
            "default": 100
          },
          "maxItems": {
            "title": "Max products in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap for the whole run.",
            "default": 1000
          },
          "deepSearch": {
            "title": "Deep search for keywords",
            "type": "boolean",
            "description": "Re-read each keyword by sales, rating and price, and in price bands, and keep only new products. Off = the first 20 only (fastest). Extra pages are not billed; only products are.",
            "default": true
          },
          "includeDetails": {
            "title": "Add item pages (seller credit, shop age, ships-from, latest review)",
            "type": "boolean",
            "description": "Opens each product's catalog page and adds: seller credit level, shop opening date, item count, description/service/delivery scores, Tmall or Taobao, ships-from city, category path and the latest review. +$2 per 1,000 products. Item pages that fail are not charged.",
            "default": false
          },
          "monitor": {
            "title": "Monitor mode (new products and price changes)",
            "type": "boolean",
            "description": "Compare with the previous run of the same list: products new in the results of each keyword, shop or category, price drops and rises, promotions started or ended, and products removed from a shop (when the whole shop fits on one page). Previous values are stored only in your own Apify account (a named key-value store).",
            "default": false
          },
          "monitorName": {
            "title": "Monitor list name",
            "type": "string",
            "description": "Use different names to keep separate watch lists.",
            "default": "default"
          },
          "onlyChanged": {
            "title": "Output only new and changed products",
            "type": "boolean",
            "description": "In monitor mode, leave unchanged products out of the output. Products left out are not charged.",
            "default": false
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Optional. One message per keyword, shop or category when something is new or changed."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Optional. One message per keyword, shop or category when something is new or changed."
          },
          "webhookUrl": {
            "title": "Webhook URL (Zapier, Make, n8n, your API)",
            "type": "string",
            "description": "Optional. Receives a JSON POST per keyword, shop or category with the new products, the price changes and the products removed from a shop."
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many item pages to load at the same time.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (the default) worked best in testing. Residential proxies were blocked more often."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}