# Get a TikTok account's posts from a date range

**Use case:** 

Collect only the videos a TikTok account posted between two dates, here Duolingo's 29 posts from October 2026, with plays, likes, comments, shares and saves. The run seeks straight to the window, so you pay only for posts inside it. Change the account and dates.

## Input

```json
{
  "profiles": [
    "@duolingo"
  ],
  "maxPostsPerProfile": 200,
  "postedAfter": "2026-10-01",
  "postedBefore": "2026-10-31",
  "includePinned": false,
  "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 "Get a TikTok account's posts from a date range". [Sign up or log in](https://console.apify.com/create-task-from-example/6oVHiUEZMHb04jHQP) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get a TikTok account's posts from a date range" 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 "Get a TikTok account's posts from a date range" 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 "Get a TikTok account's posts from a date range" task via API](https://apify.com/mu0i/tiktok-user-posts.md).

## FAQ

### How does the date range work?

In the date range task, 'Posted before' sets where the walk starts and 'Posted after' where it stops, so only the pages inside the window are fetched and charged.

### Which date format should I use?

The date range task takes ISO dates such as 2026-10-01 for 'Posted after' and 2026-10-31 for 'Posted before'. Leave either empty for an open-ended range.

### How much does the date range task cost?

The date range task is billed per video in the window: $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`).
