# Scrape all videos from a TikTok profile

**Use case:** 

Collect every video a TikTok account has posted, here all 67 of NASA's, with each video's link, caption, post date, plays, likes, comments, shares, saves, length, hashtags, sound and pinned flag. Change the account to any public profile.

## Input

```json
{
  "profiles": [
    "@nasa"
  ],
  "maxPostsPerProfile": 100,
  "includePinned": true,
  "includeDownloadUrls": false
}
```

## Output

```json
{
  "authorUsername": {
    "label": "@handle"
  },
  "videoId": {
    "label": "Video ID"
  },
  "url": {
    "label": "URL"
  },
  "description": {
    "label": "Caption"
  },
  "createdAt": {
    "label": "Posted"
  },
  "isPinned": {
    "label": "Pinned"
  },
  "playCount": {
    "label": "Plays"
  },
  "likeCount": {
    "label": "Likes"
  },
  "commentCount": {
    "label": "Comments"
  },
  "shareCount": {
    "label": "Shares"
  },
  "saveCount": {
    "label": "Saves"
  },
  "durationMs": {
    "label": "Duration (ms)"
  },
  "hashtags": {
    "label": "Hashtags"
  },
  "musicTitle": {
    "label": "Sound"
  },
  "noWatermarkUrl": {
    "label": "No-watermark link"
  }
}
```

## How it works

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

The TikTok User Posts Scraper — every video + stats Actor is ready to run with the inputs already set for "Scrape all videos from a TikTok profile". [Sign up or log in](https://console.apify.com/create-task-from-example/bMLanfyKBINNW6z1h) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Scrape all videos from a TikTok profile" task

The TikTok User Posts Scraper — every video + stats Actor will start running based on the input automatically. You can also change all the input fields, like tiktok handles, profile urls or user ids, max posts per account, and more, to match your specific use case.

### 3. Receive the "Scrape all videos from a TikTok profile" 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 @handle, video id, URL, 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 all videos from a TikTok profile" task via API](https://apify.com/mu0i/tiktok-user-posts.md).

## FAQ

### Does the task really get every video?

The all videos task pages through the profile until TikTok says there are no more, up to 'Max posts per profile'. For NASA it collected all 67 videos in three pages.

### Are pinned videos included?

The all videos task includes pinned videos and marks them with isPinned. Turn off 'Include pinned' to leave them out, for example when you only want posts in date order.

### How much does the all videos task cost?

The all videos task is billed per video: $2.50 per 1,000 on the Apify Free plan, less on paid plans. Free plan accounts get up to 1,000 videos a month.

## About this Actor

This example demonstrates how to use [TikTok User Posts Scraper — every video + stats](https://apify.com/mu0i/tiktok-user-posts.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/mu0i/tiktok-user-posts.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-user-posts.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`).
