{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Shop Product Scraper: Prices, SKUs & Stock, No Login",
    "description": "Scrape TikTok Shop products by product link, id, keyword, store or category (US, UK): price, original price and discount, sold count, rating, reviews, shop, category, images, every SKU with its price and stock, shipping. No login. Misses free.",
    "version": "0.1",
    "x-build-id": "teBeqLcztQOf2Kse4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~tiktok-shop-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-tiktok-shop-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/hyperbach~tiktok-shop-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-tiktok-shop-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/hyperbach~tiktok-shop-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-tiktok-shop-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",
            "maxItems": 5000,
            "type": "array",
            "description": "TikTok Shop product links in any form (shop.tiktok.com/us/pdp/…, shop.tiktok.com/view/product/…, www.tiktok.com/shop/pdp/…, a vm.tiktok.com share link) or bare product ids. A GB link (shop.tiktok.com/gb/pdp/…) is read from the GB storefront, an MX, SG, MY or VN product link from its own storefront. A product the storefront does not have is a free not_found row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "Search keywords",
            "maxItems": 500,
            "type": "array",
            "description": "Words to search TikTok Shop for (the US storefront: GB has no web search). The walk goes past the first screen until the source stops serving new products; how deep that is changes by the hour, and the search shows no count. Set maxItemsPerInput to cap each keyword.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "storeUrls": {
            "title": "Store links or seller ids",
            "maxItems": 500,
            "type": "array",
            "description": "TikTok Shop store links (shop.tiktok.com/us/store/<name>/<seller id>, www.tiktok.com/shop/store/…) or seller ids. A US store is read to the end of its catalogue; a GB store gives its first 20 products to a logged-out reader.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category links or ids",
            "maxItems": 500,
            "type": "array",
            "description": "TikTok Shop category links (shop.tiktok.com/us/c/<name>/<id>) or category ids. The source serves each connection its own sample of about 80–100 products of a category and no count; a category is read on up to 4 connections. A narrower subcategory link gives other products.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Any TikTok Shop links",
            "maxItems": 5000,
            "type": "array",
            "description": "One list for every kind of link: each is read by its form (product, store, category or a search page shop.tiktok.com/us/s?q=…).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Storefront for ids and keywords",
            "enum": [
              "US",
              "GB"
            ],
            "type": "string",
            "description": "The storefront a bare id or a keyword is read from. A link keeps its own storefront. Other TikTok Shop countries are not offered: their pages sit behind a captcha or have no logged-out web storefront.",
            "default": "US"
          },
          "maxItemsPerInput": {
            "title": "Max products per keyword, store or category",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most product rows each search keyword, store or category delivers; 0 = to the end of the list the source serves.",
            "default": 0
          },
          "includeDetails": {
            "title": "Read each product's page",
            "type": "boolean",
            "description": "On: every row of a search, store or category is the full product row (every SKU with its stock, shipping, the category path, the specifications, the description, the shop's scores), one page read per product. Off: the list card's fields only (title, price, original price and discount, sold count, rating, review count, shop, image): faster. Product links always read the page.",
            "default": true
          },
          "includeReviews": {
            "title": "Add the reviews the page embeds",
            "type": "boolean",
            "description": "Adds the reviews the product page embeds (up to 20, or 5 when the page's fuller view is refused) with their rating, text, date, SKU and verified flag; the row says which view it read and the product's own review count. Reviews past the embedded set are a logged-in feature of TikTok Shop.",
            "default": false
          },
          "includeVideos": {
            "title": "Add related videos and the shop's other products",
            "type": "boolean",
            "description": "Adds the TikTok videos the product page shows (plays, likes, title, length) and the shop's other and top-reviewed products. One more read per product.",
            "default": false
          },
          "includeRaw": {
            "title": "Add the page's raw product record",
            "type": "boolean",
            "description": "Adds the product page's own record (its product_info component) as it came, for fields this Actor does not name. Large: about 25–400 KB a row; it holds the page's embedded reviews with the reviewers' shown names and pictures.",
            "default": false
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Keep products whose lowest price is at least this (in the storefront's currency). Left out products are not charged."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Keep products whose lowest price is at most this."
          },
          "minSoldCount": {
            "title": "Min sold count",
            "minimum": 0,
            "type": "integer",
            "description": "Keep products the page shows as sold at least this many times."
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep products rated at least this (0–5). A product with no review yet has no rating and is left out."
          },
          "minReviews": {
            "title": "Min review count",
            "minimum": 0,
            "type": "integer",
            "description": "Keep products with at least this many reviews."
          },
          "strictKeywordMatch": {
            "title": "Every search word in the title",
            "type": "boolean",
            "description": "Keep only search results whose title contains every word of the keyword. Checked on the list card, before a product page is read.",
            "default": false
          },
          "maxItems": {
            "title": "Max products (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged product rows of the whole run; 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}