# TikTok Mix Posts Video Scraper (`powerai/tiktok-mix-posts-video-scraper`) Actor

Scrape videos from a TikTok mix/collection (`mix_id`) with rich metadata, playback URLs, covers, stats, and author fields.

- **URL**: https://apify.com/powerai/tiktok-mix-posts-video-scraper.md
- **Developed by:** [PowerAI](https://apify.com/powerai) (community)
- **Categories:** Social media, Videos, Other
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🎵 TikTok Mix Posts Video Scraper

Collect videos under a specific TikTok mix/collection (`mix_id`). The actor paginates automatically, and pushes each video item to the dataset with `scrapedAt`.

### ✨ Key Features

- 🎵 Query by `mix_id` (required)
- 📄 Auto-pagination
- 📊 Rich video fields: engagement stats, covers, play URLs, and author info
- 🎯 `maxResults` cap to control collection volume
- 📋 Structured JSON output for analysis and pipelines

### 📈 Typical Use Cases

1. Track how a mix/collection is used across different videos
2. Analyze engagement distribution for a specific collection
3. Build datasets for content or ad research
4. Monitor new videos under a target collection over time

### 📝 Input

| Parameter | Required | Description |
|-----------|----------|-------------|
| `mix_id` | Yes | TikTok mix/collection id |
| `maxResults` | No | Maximum videos to collect, default `30` |

#### Input Example
```json
{
  "mix_id": "7585292371022088990",
  "maxResults": 40
}
````

#### Output Example

```json
[
  {
        "aweme_id": "v15044gf0000d5115dnog65q3stovvv0",
        "video_id": "7584645463475932447",
        "region": "US",
        "title": "So excited to perform at the first-ever U.S. TikTok Awards in LA on Dec 18. Catch it live on TikTok + Tubi. 💃🏽🫶🏽",
        "content_desc": [],
        "cover": "https://p16-pu-sign-useast8.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oUF6EpABfACCAYDlEu3CLWIADFRVhQZA2VEEEe~tplv-tiktokx-cropcenter-q:300:400:q72.webp?dr=14782&refresh_token=eb4ddeb5&x-expires=1774335600&x-signature=y%2Bc9ZWQxuWKeJObAV36zd01KgGw%3D&t=bacd0480&ps=933b5bde&shp=d05b14bd&shcp=1d1a97fc&idc=my2&biz_tag=tt_video&s=TIKTOK_MIX_ITEM_LIST&sc=cover",
        "ai_dynamic_cover": "https://p16-pu-sign-useast8.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oUF6EpABfACCAYDlEu3CLWIADFRVhQZA2VEEEe~tplv-tiktokx-origin.image?dr=1364&refresh_token=7c63efe4&x-expires=1774335600&x-signature=XSxTswrMB4SirzFLhoY8neRSBQ4%3D&t=bacd0480&ps=4f5296ae&shp=d05b14bd&shcp=1d1a97fc&idc=my2&biz_tag=tt_video&s=TIKTOK_MIX_ITEM_LIST&sc=dynamic_cover",
        "origin_cover": "https://p16-pu-sign-useast8.tiktokcdn-us.com/tos-useast8-p-0068-tx2/o00RfRuCfIYXbhBArezA4dgelCIkGHxQURuEEF~tplv-tiktokx-360p.webp?dr=1363&refresh_token=de64649c&x-expires=1774335600&x-signature=BI3IFrwvEsIkI%2Fb6nfEuF9Usm0s%3D&t=bacd0480&ps=d97f9a4f&shp=d05b14bd&shcp=1d1a97fc&idc=my2&sc=feed_cover&biz_tag=tt_video&s=TIKTOK_MIX_ITEM_LIST",
        "duration": 31,
        "play": "https://v31-jp.tiktokcdn.com/6aa5a2be87b230f5abbef6caa5eb59ce/69c24274/video/tos/maliva/tos-maliva-ve-0068c799-us/o44lLfGtR9YCxCGgYEurbIdvQeEdEAFhEfQUeA/?a=1233&bti=NjR2KTM2OWYpNzo5Zi86bTMyNTpkNDQwOg%3D%3D&ch=0&cr=13&dr=0&er=0&lr=all&net=0&cd=0%7C0%7C0%7C&cv=1&br=2298&bt=1149&cs=0&ds=3&ft=74eaHDCnNWJVQc6Gpq8ksdvPPUXqYlob_VN~hWLrK&mime_type=video_mp4&qs=0&rc=NTo4PGgzMzc6Njk5NGgzOUBpM3lydnQ5cmc0ODMzaTczNEBfLS01LTQyXjIxYF4tNDIuYSNzc3EwMmRrMi5hLS1kMTJzcw%3D%3D&vvpl=1&l=2026032315504480A5D660B67BE500233A&btag=e0008d000",
        "wmplay": "https://v31-jp.tiktokcdn.com/74bd3b9b6fcaea98db925e29404c172c/69c24274/video/tos/maliva/tos-maliva-ve-0068c799-us/ok8QJrlECdfY8FxJAbU4E4gsuRAGpQChsefeEI/?a=1233&bti=NjR2KTM2OWYpNzo5Zi86bTMyNTpkNDQwOg%3D%3D&ch=0&cr=13&dr=0&er=0&lr=all&net=0&cd=0%7C0%7C0%7C&cv=1&br=2138&bt=1069&cs=0&ds=3&ft=74eaHDCnNWJVQc6Gpq8ksdvPPUXqYlob_VN~hWLrK&mime_type=video_mp4&qs=0&rc=M2k3OjY7M2RpNDhlNTQ2M0BpM3lydnQ5cmc0ODMzaTczNEAzXzZiX2NiX2IxL18xYi1fYSNzc3EwMmRrMi5hLS1kMTJzcw%3D%3D&vvpl=1&l=2026032315504480A5D660B67BE500233A&btag=e0008d000",
        "size": 4681110,
        "wm_size": 4352809,
        "music": "https://v16-ies-music.tiktokcdn.com/be835d1f6e82822ac3e1d727961780e5/69ca2c0c/video/tos/maliva/tos-maliva-ve-27dcd7c799-us/oMJNFEpcCfAMjHupPhVFELEQIBSf3yxCxADEUn/?a=583965&bti=NjR2KTM2OWYpNzo5Zi86bTMyNTpkNDQwOg%3D%3D&ch=0&cr=0&dr=0&er=0&lr=default&cd=0%7C0%7C0%7C0&br=250&bt=125&ft=gk-H6z2O7j6e9wpMLXZmg.CV11RGZcAPrk9j5H6KJE&mime_type=audio_mpeg&qs=6&rc=Zmg6ZDY1NjU0NmlnNTM2M0BpajZqbnk5cnQ0ODMzaTU8NEAtMGEtMV4wNl8xYDRjMGFeYSM0NmdnMmRjMi5hLS1kMTJzcw%3D%3D&vvpl=1&l=2026032315504480A5D660B67BE500233A&btag=e00088000&shp=d05b14bd&shcp=-",
        "play_count": 509596,
        "digg_count": 10246,
        "comment_count": 1332,
        "share_count": 749,
        "download_count": 61,
        "collect_count": 1006,
        "create_time": 1765937895,
        "anchors": null,
        "anchors_extras": "",
        "is_ad": false,
        "commerce_info": {
          "adv_promotable": false,
          "auction_ad_invited": false,
          "branded_content_type": 0,
          "is_diversion_ad": 0,
          "organic_log_extra": "{\"req_id\":\"2026032315504480A5D660B67BE500233A\"}",
          "with_comment_filter_words": false
        },
        "commercial_video_info": "",
        "item_comment_settings": 0,
        "mentioned_users": "",
        "author": {
          "id": "107955",
          "unique_id": "tiktok",
          "nickname": "TikTok",
          "avatar": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg?dr=10793&idc=my2&ps=87d6e48a&refresh_token=b6821376&s=TIKTOK_MIX_ITEM_LIST&sc=avatar&shcp=1d1a97fc&shp=d05b14bd&t=223449c4&x-expires=1774335600&x-signature=dqvP0EwnCh2ug5VS%2F4NVt04Bt3Q%3D"
        },
        "is_top": 0,
        "scrapedAt": "2026-03-23T06:40:35.280Z"
  }
]
```

# Actor input Schema

## `mix_id` (type: `string`):

TikTok mix/collection id used by the /mix/posts endpoint.

## `maxResults` (type: `integer`):

Maximum number of videos to collect.

## Actor input object example

```json
{
  "mix_id": "7585292371022088990",
  "maxResults": 30
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mix_id": "7585292371022088990",
    "maxResults": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("powerai/tiktok-mix-posts-video-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mix_id": "7585292371022088990",
    "maxResults": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("powerai/tiktok-mix-posts-video-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mix_id": "7585292371022088990",
  "maxResults": 30
}' |
apify call powerai/tiktok-mix-posts-video-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=powerai/tiktok-mix-posts-video-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TikTok Mix Posts Video Scraper",
        "description": "Scrape videos from a TikTok mix/collection (`mix_id`) with rich metadata, playback URLs, covers, stats, and author fields.",
        "version": "0.0",
        "x-build-id": "RHr0pBUjoFv5LPK3P"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/powerai~tiktok-mix-posts-video-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-powerai-tiktok-mix-posts-video-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/powerai~tiktok-mix-posts-video-scraper/runs": {
            "post": {
                "operationId": "runs-sync-powerai-tiktok-mix-posts-video-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/powerai~tiktok-mix-posts-video-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-powerai-tiktok-mix-posts-video-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",
                "required": [
                    "mix_id"
                ],
                "properties": {
                    "mix_id": {
                        "title": "Mix ID",
                        "type": "string",
                        "description": "TikTok mix/collection id used by the /mix/posts endpoint.",
                        "default": "7585292371022088990"
                    },
                    "maxResults": {
                        "title": "Maximum Results",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of videos to collect.",
                        "default": 30
                    }
                }
            },
            "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
