# Scrape TikTok Shop electronics with subcategories

**Use case:** 

Collect 200 products from the US TikTok Shop's Phones & Electronics category and its subcategories, such as Mobile Phone Accessories and Audio & Video, with price, rating, reviews, units sold and shop name. Each row says which subcategory it came from. Use it to map a whole category.

## Input

```json
{
  "categoryUrls": [
    "https://shop.tiktok.com/us/c/phones-electronics/601739"
  ],
  "maxProductsPerCategory": 200,
  "includeSubcategories": true
}
```

## Output

```json
{
  "categoryId": {
    "label": "Requested category"
  },
  "sourceCategoryName": {
    "label": "From subcategory"
  },
  "sourceCategoryId": {
    "label": "Subcategory ID"
  },
  "productId": {
    "label": "Product ID"
  },
  "title": {
    "label": "Title"
  },
  "price": {
    "label": "Price"
  },
  "originPrice": {
    "label": "Was"
  },
  "currency": {
    "label": "Currency"
  },
  "rating": {
    "label": "Rating"
  },
  "reviewCount": {
    "label": "Reviews"
  },
  "soldCount": {
    "label": "Sold"
  },
  "sellerId": {
    "label": "Seller ID"
  },
  "shopName": {
    "label": "Shop"
  },
  "image": {
    "label": "Image"
  },
  "pdpUrl": {
    "label": "URL"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The TikTok Shop Category Scraper — every product Actor is ready to run with the inputs already set for "Scrape TikTok Shop electronics with subcategories". [Sign up or log in](https://console.apify.com/create-task-from-example/ozid4GJpMPOS7SaqD) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Scrape TikTok Shop electronics with subcategories" task

The TikTok Shop Category Scraper — every product Actor will start running based on the input automatically. You can also change all the input fields, like category page urls, max products per category, and more, to match your specific use case.

### 3. Receive the "Scrape TikTok Shop electronics with subcategories" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as requested category, from subcategory, subcategory id, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Scrape TikTok Shop electronics with subcategories" task via API](https://apify.com/mu0i/tiktok-shop-category-scraper.md).

## FAQ

### Why include subcategories?

A single TikTok Shop category feed ends at about 100 to 110 products. With subcategories on, the electronics task also walks the subcategories, which is how it collected 200 products here.

### How do I know which subcategory a product is from?

Every row of the TikTok Shop electronics task has sourceCategoryName and sourceCategoryId, the subcategory it was found in, alongside categoryId, the category you asked for.

### How much does the electronics task cost?

The TikTok Shop electronics task is billed per product: $6.00 per 1,000 on the Apify Free plan, less on paid plans. The 'Max products per category' limit is also your budget.

## About this Actor

This example demonstrates how to use [TikTok Shop Category Scraper — every product](https://apify.com/mu0i/tiktok-shop-category-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/mu0i/tiktok-shop-category-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/mu0i/tiktok-shop-category-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
