# Compare TikTok hashtags for a campaign

**Use case:** 

Collect 30 videos each from #skincareroutine and #glowup, with plays, likes, comments and shares on every video, to compare how two hashtags perform before you pick one for a campaign. Every row says which hashtag found it. Put in your own shortlist.

## Input

```json
{
  "hashtags": [
    "skincareroutine",
    "glowup"
  ],
  "maxVideosPerHashtag": 30,
  "includeDownloadUrls": false
}
```

## Output

```json
{
  "hashtag": {
    "label": "Hashtag"
  },
  "videoId": {
    "label": "Video ID"
  },
  "url": {
    "label": "URL"
  },
  "authorUsername": {
    "label": "@handle"
  },
  "description": {
    "label": "Caption"
  },
  "createdAt": {
    "label": "Posted"
  },
  "playCount": {
    "label": "Plays"
  },
  "likeCount": {
    "label": "Likes"
  },
  "commentCount": {
    "label": "Comments"
  },
  "shareCount": {
    "label": "Shares"
  },
  "hashtags": {
    "label": "All hashtags"
  },
  "musicTitle": {
    "label": "Sound"
  },
  "noWatermarkUrl": {
    "label": "No-watermark link"
  }
}
```

## How it works

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

The TikTok Hashtag Scraper — videos by hashtag Actor is ready to run with the inputs already set for "Compare TikTok hashtags for a campaign". [Sign up or log in](https://console.apify.com/create-task-from-example/Rt8Qss1tvmIF4Nhwd) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare TikTok hashtags for a campaign" task

The TikTok Hashtag Scraper — videos by hashtag Actor will start running based on the input automatically. You can also change all the input fields, like hashtags, max videos per hashtag, and more, to match your specific use case.

### 3. Receive the "Compare TikTok hashtags for a campaign" 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 hashtag, 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 "Compare TikTok hashtags for a campaign" task via API](https://apify.com/mu0i/tiktok-hashtag-scraper.md).

## FAQ

### How do I compare the hashtags?

The compare TikTok hashtags task tags every video with its hashtag, so you can average plays, likes and shares per hashtag in a spreadsheet and see which one gets more engagement.

### How many hashtags can I compare?

The compare TikTok hashtags task takes any number of hashtags and collects up to the per-hashtag limit from each, so the cost grows with each hashtag you add.

### How much does the hashtag comparison cost?

The compare TikTok hashtags task is billed per video: $2.00 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 Hashtag Scraper — videos by hashtag](https://apify.com/mu0i/tiktok-hashtag-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/mu0i/tiktok-hashtag-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-hashtag-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`).
