{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Shop Scraper",
    "description": "[💰 $4.99 / 1K products] Scrape TikTok Shop products by keyword, shop, category or link in 10 markets: ~200 per search, ~2,000 with deep search. Get prices, sold counts, sales since your last run, stock per variant, shop and creator videos. No account, no proxy. Export JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "WcIuIgTrde9vJijsj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sleepmodesystems~tiktok-shop-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sleepmodesystems-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/sleepmodesystems~tiktok-shop-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sleepmodesystems-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/sleepmodesystems~tiktok-shop-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sleepmodesystems-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": {
          "market": {
            "title": "TikTok Shop market",
            "enum": [
              "us",
              "sg",
              "my",
              "ph",
              "th",
              "vn",
              "jp",
              "id",
              "mx",
              "gb"
            ],
            "type": "string",
            "description": "Which country's TikTok Shop to read for search words and product ids. Links are always read in the market they come from. Keyword search: United States and Southeast Asia. Product, shop and category links also work for Japan, Indonesia, Mexico and the United Kingdom. Germany, France, Italy, Spain, Ireland and Brazil show their shop only in TikTok's app.",
            "default": "us"
          },
          "keywords": {
            "title": "Search TikTok Shop for",
            "type": "array",
            "description": "Words as you would type them in TikTok Shop's search box, one search per line, in any language. Example: vitamin c serum. Each word returns TikTok's own ranking, ~200 products for a broad word. Available for the United States and Southeast Asia.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Products, shops, categories or links",
            "type": "array",
            "description": "Any TikTok Shop link from the United States, Southeast Asia, Japan, Indonesia, Mexico or the United Kingdom: a product (shop.tiktok.com/us/pdp/..., tiktok.com/shop/pdp/..., view/product/..., a share link or just the product id), a shop (its whole catalogue), a category (its best sellers) or a search page. Example: https://shop.tiktok.com/us/store/goli-nutrition/7495794203056835079",
            "items": {
              "type": "string"
            }
          },
          "maxProductsPerKeyword": {
            "title": "Products per search word or category",
            "minimum": 1,
            "type": "integer",
            "description": "How many products to return for each search word and category. TikTok shows ~200 for a broad word; turn on deep search below to go further.",
            "default": 200
          },
          "deepSearch": {
            "title": "Deep search: go past TikTok's ~200 per word",
            "type": "boolean",
            "description": "Reads far more of the market for each search word: ~2,000 products for a broad word such as \"vitamin c serum\", across every price range. Products further down are less closely related to the word. Set the count above to 2000 or more to use it.",
            "default": false
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "relevance",
              "best_sellers",
              "newest",
              "price_low",
              "price_high"
            ],
            "type": "string",
            "description": "Relevance (TikTok's default), best sellers, newest, or price.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Lowest price (market currency)",
            "minimum": 0,
            "type": "number",
            "description": "Only products from this price, in the market's currency (US$, S$, RM...). Example: 10."
          },
          "maxPrice": {
            "title": "Highest price (market currency)",
            "minimum": 0,
            "type": "number",
            "description": "Only products up to this price, in the market's currency. Example: 40."
          },
          "fourStarsAndUp": {
            "title": "4 stars and up",
            "type": "boolean",
            "description": "Only products rated 4 stars or more.",
            "default": false
          },
          "dealsOnly": {
            "title": "Deals only",
            "type": "boolean",
            "description": "Only products on a deal (flash sales, discounts).",
            "default": false
          },
          "output": {
            "title": "Rows",
            "enum": [
              "complete",
              "essentials"
            ],
            "type": "string",
            "description": "Complete: everything on the product page (every variant with live stock and price, full description, specifications, shipping, the shop with its scores, the 1-5 star breakdown and the reviews shown, the category path, creator videos). Essentials: the product card (price, sold count, rating, shop, image, badges), cheaper and faster.",
            "default": "complete"
          },
          "creatorVideos": {
            "title": "Creator videos for each product",
            "type": "boolean",
            "description": "Complete rows: the TikTok videos that sell each product, with plays, likes, the creator, the date and whether the creator earns a commission.",
            "default": true
          },
          "trackSales": {
            "title": "Sales since your previous run",
            "type": "boolean",
            "description": "Each product gets how many were sold since the last run in your account that saw it (from the second run on). Schedule the actor daily or weekly to get sales per day or week.",
            "default": true
          },
          "maxItems": {
            "title": "Max products in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many products for the whole run. Empty = no limit."
          },
          "minItems": {
            "title": "Fail the run below this many products",
            "minimum": 0,
            "type": "integer",
            "description": "For monitoring: the run fails when it delivers fewer products than this. Empty = never."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}