# Tiktok Hashtag Analytics Scraper (`parseforge/tiktok-hashtag-analytics-scraper`) Actor

Extract hashtag performance metrics from TikTok Creative Center. Get video views, post counts, engagement trends, audience demographics by age and country, related hashtags, top creators, and top videos. Analyze specific hashtags or discover trending ones across 7, 30, or 120 day periods.

- **URL**: https://apify.com/parseforge/tiktok-hashtag-analytics-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Social media, Marketing, Other
- **Stats:** 89 total users, 42 monthly users, 91.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

![ParseForge Banner](https://github.com/ParseForge/apify-assets/blob/ad35ccc13ddd068b9d6cba33f323962e39aed5b2/banner.jpg?raw=true)

## 🎵 TikTok Hashtag Analytics Scraper

> 🕒 **Last updated:** 2026-05-05


Collect hashtag performance metrics directly from TikTok Creative Center without needing to code. Extract data on views, engagement trends, audience demographics, and trending hashtags for tracking trends, planning content, or conducting market research. Export comprehensive hashtag data to CSV or JSON quickly, whether you need a one-time snapshot or ongoing trend monitoring.

> **The TikTok Hashtag Analytics Scraper gathers detailed hashtag metrics from TikTok Creative Center, offering over 25 data fields such as views, audience demographics, and engagement trends. It supports both specific hashtag lookups and trending lists.**

### ✨ What Does It Do

- 📊 **Video Views** - Track 7-day and all-time view counts to find viral hashtags
- 👥 **Audience Demographics** - Access age ranges and interests to tailor content to your audience
- 🌍 **Geographic Reach** - See which countries engage most with hashtags to optimize campaigns
- 🔗 **Related Hashtags** - Discover trending variations and adjacent hashtags to expand reach
- 👤 **Top Creators** - Identify creators leading specific hashtags for collaboration opportunities
- 📈 **Engagement Trends** - Monitor trends over time to spot rising trends early

### 🔧 Input

- **Mode** - Choose 'Specific Hashtags' to look up hashtags by name, or 'Trending Hashtags' for the top trending list
- **Hashtags** - List hashtag names to look up without the # symbol, used in Specific Hashtags mode only
- **Max Items** - Number of results to collect (free users: up to 100, paid users: up to 1,000,000)
- **Time Period** - Analytics period: 7, 30, or 120 days
- **Country Code** - Filter data by country (e.g., US, GB, DE, FR, JP) or leave empty for global data
- **Max Concurrency** - Number of parallel requests to adjust if rate limiting occurs

Example input:
```json
{
  "mode": "specificHashtags",
  "hashtags": ["marketing", "springbreak", "digitalmarketing"],
  "maxItems": 50,
  "period": 7,
  "countryCode": "US",
  "maxConcurrency": 5
}
````

### 📊 Output

Each hashtag record includes up to 25 data fields. Download results as JSON, CSV, or Excel.

| 🎵 Hashtag Name | 📝 Hashtag ID | 🔗 Hashtag URL |
|---|---|---|
| 👥 Publish Count 7d | 📊 Video Views 7d | 📈 All-Time Views |
| 🏆 Rank | 📍 Rank Change | 🎯 Rank Direction |
| 🌍 Country Code | 📅 Time Period | 📢 Is Promoted |
| 💼 Industry Category | 📉 Trend Data (over time) | 📊 Normalized Trend |
| 👤 Audience Ages | 🎯 Audience Interests | 🌐 Audience Countries |
| 🔗 Related Hashtags | 👥 Top Creators | 📅 Longevity Popular Days |
| 🎭 Current Popularity | ⏰ Timestamp | ❌ Error (if any) |

### 💎 Why Choose the TikTok Hashtag Analytics Scraper?

| Feature | Our Actor |
|---|---|
| Dual modes for specific hashtags or trending lists | ✔️ |
| Audience age, interest, and country data | ✔️ |
| Related hashtags discovery | ✔️ |
| Top creators per hashtag | ✔️ |
| Global and country-level filtering | ✔️ |
| Engagement trend graphs | ✔️ |
| No login or authentication needed | ✔️ |
| Real-time data from Creative Center | ✔️ |
| Export to CSV, JSON, and Excel | ✔️ |
| Pagination support for large result sets | ✔️ |
| Automatic retry on rate limits | ✔️ |
| Free tier with 100-result limit | ✔️ |

### 📋 How to Use

No technical skills required. Follow these simple steps:

1. **Sign Up** - [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp)
2. **Find the Tool** - Search for "TikTok Hashtag Analytics Scraper" in the Apify Store and configure your input
3. **Run It** - Click "Start" and watch your results appear

That's it. No coding, no setup, no complicated configuration. Export your data in CSV, Excel, or JSON format.

### 🎯 Business Use Cases

- 📊 **Content Strategist** - Monitor competitor hashtag rankings to adjust content strategies
- 💼 **Social Media Manager** - Analyze audience demographics on trending hashtags to align with brand voice
- 🔬 **Market Researcher** - Track geographic hashtag performance to identify emerging markets

***

### ✨ Why choose this Actor

| | Capability |
|---|---|
| 🎯 | **Built for the job.** Scoped specifically to this data source so you skip the parser engineering entirely. |
| 🔖 | **Structured output.** Clean, typed fields ready for analysis, dashboards, or downstream pipelines. |
| ⚡ | **Fast.** Optimized request patterns return results in seconds, not minutes. |
| 🔁 | **Always fresh.** Every run pulls live data, so the dataset reflects the source as of run time. |
| 🌐 | **No infra to manage.** Apify handles proxies, retries, scaling, scheduling, and storage. |
| 🛡️ | **Reliable.** Battle-tested across many runs and edge cases, with graceful error handling. |
| 🚫 | **No code required.** Configure in the UI, run from CLI, schedule via cron, or call from any language with the Apify SDK. |

> 📊 Production-grade structured data without the engineering overhead of building and maintaining your own scraper.

***

### 📈 How it compares to alternatives

| Approach | Cost | Coverage | Refresh | Filters | Setup |
|---|---|---|---|---|---|
| **⭐ TikTok Hashtag Analytics Scraper** *(this Actor)* | $5 free credit, then pay-per-use | Full source coverage | **Live per run** | Source-native filters supported | ⚡ 2 min |
| Build your own scraper | Engineering hours | Full once built | Whenever you maintain it | Custom code | 🐢 Days to weeks |
| Paid managed APIs | $$$ monthly | Vendor-defined | Live | Vendor-defined | ⏳ Hours |
| Third-party data dumps | Varies | Subset, often stale | Periodic | None | 🕒 Variable |

Pick this Actor when you want broad coverage, server-side filtering, and no pipeline maintenance.

***

### 🚀 How to use

1. 📝 **Sign up.** [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes).
2. 🌐 **Open the Actor.** Go to the TikTok Hashtag Analytics Scraper page on the Apify Store.
3. 🎯 **Set input.** Configure the input fields in the form (or paste a JSON), then set `maxItems`.
4. 🚀 **Run it.** Click **Start** and let the Actor collect your data.
5. 📥 **Download.** Grab your results in the **Dataset** tab as CSV, Excel, JSON, or XML.

> ⏱️ Total time from signup to downloaded dataset: **3-5 minutes.** No coding required.

***

### 💼 Business use cases

<table>
<tr>
<td width="50%" valign="top">

#### 📊 Data & Analytics

- Build trend reports and dashboards from live source data
- Feed BI tools, warehouses, and ML pipelines with structured records
- Run periodic snapshots to track changes over time
- Compare segments, regions, or categories with consistent fields

</td>
<td width="50%" valign="top">

#### 🏢 Operations & Strategy

- Monitor competitor moves, pricing, and inventory shifts
- Build internal directories and lookup tools backed by current data
- Power workflows that depend on fresh source records
- Cut manual data-gathering time from hours to minutes

</td>
</tr>
<tr>
<td width="50%" valign="top">

#### 🎯 Marketing & Growth

- Identify market opportunities and trending topics
- Research target audiences and customer personas at scale
- Power lead-generation pipelines with verified records
- Track sentiment, reviews, or social signals over time

</td>
<td width="50%" valign="top">

#### 🛠️ Engineering & Product

- Prototype features that need real-world data without owning a crawler
- Replace fragile in-house scrapers with a managed Actor
- Wire datasets into your apps via the Apify API or webhooks
- Skip the proxy, retry, and parsing maintenance entirely

</td>
</tr>
</table>

***

### 🌟 Beyond business use cases

Data like this powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.

<table>
<tr>
<td width="50%">

#### 🎓 Research and academia

- Empirical datasets for papers, thesis work, and coursework
- Longitudinal studies tracking changes across snapshots
- Reproducible research with cited, versioned data pulls
- Classroom exercises on data analysis and ethical scraping

</td>
<td width="50%">

#### 🎨 Personal and creative

- Side projects, portfolio demos, and indie app launches
- Data visualizations, dashboards, and infographics
- Content research for bloggers, YouTubers, and podcasters
- Hobbyist collections and personal trackers

</td>
</tr>
<tr>
<td width="50%">

#### 🤝 Non-profit and civic

- Transparency reporting and accountability projects
- Advocacy campaigns backed by public-interest data
- Community-run databases for local issues
- Investigative journalism on public records

</td>
<td width="50%">

#### 🧪 Experimentation

- Prototype AI and machine-learning pipelines with real data
- Validate product-market hypotheses before engineering spend
- Train small domain-specific models on niche corpora
- Test dashboard concepts with live input

</td>
</tr>
</table>

### 🤖 Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:

- 💬 [**ChatGPT**](https://chat.openai.com/?q=How%20do%20I%20use%20the%20TIKTOK%20HASHTAG%20ANALYTICS%20SCRAPER%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🧠 [**Claude**](https://claude.ai/new?q=How%20do%20I%20use%20the%20TIKTOK%20HASHTAG%20ANALYTICS%20SCRAPER%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🔍 [**Perplexity**](https://perplexity.ai/search?q=How%20do%20I%20use%20the%20TIKTOK%20HASHTAG%20ANALYTICS%20SCRAPER%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🅒 [**Copilot**](https://copilot.microsoft.com/?q=How%20do%20I%20use%20the%20TIKTOK%20HASHTAG%20ANALYTICS%20SCRAPER%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)

***

### ❓ Frequently Asked Questions

**🔍 How does it work?**
The scraper connects to TikTok Creative Center to gather real-time hashtag analytics, including views, engagement trends, and audience data. It supports two modes: lookup specific hashtags or pull the trending hashtags list.

**📊 How accurate is the data?**
Data is sourced directly from TikTok Creative Center, ensuring accuracy. Frequent updates mean multiple runs provide trend snapshots over time.

**📅 Can I schedule this to run automatically?**
Yes. Use integrations like Make, Zapier, or GitHub Actions to schedule regular runs and monitor trends over time.

**⚖️ Is this legal to use?**
You're accessing publicly available data from TikTok Creative Center. Ensure compliance with TikTok's terms of service and local data laws.

**🛡️ Will TikTok block me?**
TikTok Creative Center is designed for marketers and creators. The scraper uses realistic request patterns to minimize blocking risk. If you hit rate limits, lower the max concurrency setting.

**⚡ How long does a run take?**
For 10 hashtags, expect 30 to 60 seconds. For 100 trending hashtags, expect 2 to 5 minutes depending on network speed and concurrency settings.

**⚠️ Are there any limits?**
Free users can collect up to 100 results per run. Paid users can collect up to 1,000,000 results per run.

**🚫 Why does my hashtag return "not available"?**
TikTok Creative Center does not index ultra-generic hashtags like `fitness`, `travel`, `music`, `beauty`, `comedy`, `nature`, `pets`, `fyp`, `viral`, `trending`, `love`, or `funny`. These are too broad to provide meaningful marketing analytics. Use more specific variants instead, for example `fitnessmotivation`, `traveltiktok`, or `beautyhacks`. The Trending Hashtags mode is a good way to discover which hashtags are indexed and available.

### 🔗 Integrate TikTok Hashtag Analytics Scraper with any app

- [Make](https://docs.apify.com/platform/integrations/make) - Automate workflows
- [Zapier](https://docs.apify.com/platform/integrations/zapier) - Connect 5000+ apps
- [GitHub](https://docs.apify.com/platform/integrations/github) - Version control integration
- [Slack](https://docs.apify.com/platform/integrations/slack) - Get notifications
- [Airbyte](https://docs.apify.com/platform/integrations/airbyte) - Data pipelines
- [Google Drive](https://docs.apify.com/platform/integrations/drive) - Export to spreadsheets

### 🔌 Integrate with any app

TikTok Hashtag Analytics Scraper connects to any cloud service via [Apify integrations](https://apify.com/integrations):

- [**Make**](https://docs.apify.com/platform/integrations/make) - Automate multi-step workflows
- [**Zapier**](https://docs.apify.com/platform/integrations/zapier) - Connect with 5,000+ apps
- [**Slack**](https://docs.apify.com/platform/integrations/slack) - Get run notifications in your channels
- [**Airbyte**](https://docs.apify.com/platform/integrations/airbyte) - Pipe results into your warehouse
- [**GitHub**](https://docs.apify.com/platform/integrations/github) - Trigger runs from commits and releases
- [**Google Drive**](https://docs.apify.com/platform/integrations/drive) - Export datasets straight to Sheets

You can also use webhooks to trigger downstream actions when a run finishes. Push fresh data into your product backend, or alert your team in Slack.

***

### 💡 More ParseForge Actors

- [Idealista Scraper](https://apify.com/parseforge/idealista-scraper) - Extract property listings and real estate data
- [Crexi Real Estate Listings Scraper](https://apify.com/parseforge/commercial-real-estate-listings-scraper) - Collect commercial property data
- [Semantic Scholar Author Profiles Scraper](https://apify.com/parseforge/semantic-scholar-author-profiles-scraper) - Extract academic researcher profiles
- [HUAWEI AppGallery Scraper](https://apify.com/parseforge/huawei-app-gallery-scraper) - Collect app store data
- [Realestateview Scraper](https://apify.com/parseforge/realestateview-scraper) - Extract property listings

Browse our complete collection of [data extraction tools](https://apify.com/parseforge) for more.

### 🚀 Ready to Start?

[Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) and collect your first 100 results for free. No coding, no setup.

### How to enable MCP enrichment

Inside the input form, scroll to the **✨ Enrichment** section and follow these steps:

1. Toggle on the `Enrich Output` checkbox.
2. Pick a connector in the `Enrichment Connector` dropdown. If you don't have one yet, click the **+** button, paste the URL `https://api.trendsmcp.ai/mcp`, and paste your bearer token from trendsmcp.ai.
3. Run the actor. Every scraped item gets an extra `enrichment` object with cross-platform momentum curves (Google, YouTube, Amazon), 1-month and 12-month growth rates, and a trend state classification (rising / stable / declining).

The enrichment is cached per unique key (subreddit or hashtag), so a 100-item run from the same source costs only one batch of API calls. Get a free API key (100 requests per month, no credit card) at trendsmcp.ai.

### 🆘 Need Help?

- Check the FAQ section above for common questions
- Visit the [Apify support page](https://docs.apify.com) for documentation and tutorials
- Contact us to request a new scraper, propose a custom project, or report an issue at [Tally contact form](https://tally.so/r/BzdKgA)

### ⚠️ Disclaimer

> This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by TikTok or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

***

### 🔗 Recommended Actors

- [**🔍 Google Search Scraper**](https://apify.com/parseforge/google-search-scraper) - Multi-engine SERP results with country and language targeting
- [**🗺️ Nominatim OSM Scraper**](https://apify.com/parseforge/nominatim-osm-scraper) - Geocode addresses via OpenStreetMap
- [**📊 Indexmundi Scraper**](https://apify.com/parseforge/indexmundi-scraper) - Global demographic and economic indicators
- [**📰 RAG Web Browser**](https://apify.com/parseforge/rag-web-browser) - Crawl and extract clean text from any URL for AI retrieval
- [**🌐 Website Content Crawler**](https://apify.com/parseforge/website-content-crawler) - Crawl entire sites and export structured content

> 💡 **Pro Tip:** browse the complete [ParseForge collection](https://apify.com/parseforge) for more reference-data scrapers.

# Actor input Schema

## `mode` (type: `string`):

Choose 'specificHashtags' to get analytics for specific hashtags you provide, or 'trendingHashtags' to get the top trending hashtags list.

## `maxItems` (type: `integer`):

Free users: Limited to 100. Paid users: Optional, max 1,000,000.

## `hashtags` (type: `array`):

List of hashtag names to look up (without the # symbol). Used when mode = specificHashtags.

## `period` (type: `integer`):

Time period for analytics data: 7 (7 days), 30 (30 days), or 120 (120 days).

## `countryCode` (type: `string`):

TikTok Creative Center country. Only the codes in the dropdown are supported — picking anything else will fail the run.

## `proxyConfiguration` (type: `object`):

Apify proxy used to reach TikTok Creative Center. Residential is strongly recommended — the endpoint heavily rate-limits and gates datacenter IPs, returning empty payloads instead of failing visibly.

## `maxConcurrency` (type: `integer`):

Maximum number of parallel requests. Lower this if you get rate-limited.

## `enrichOutput` (type: `boolean`):

Toggle on to add cross-platform momentum + growth rates to every hashtag (TikTok, Google, YouTube, Amazon). Default off (free of charge). Requires an enrichment connector below.

## `enrichConnector` (type: `string`):

Pick the Trends MCP (recommended) for cross-platform momentum, or DataForSEO for Google SERP rank + Amazon results on the hashtag. Click '+' to authorize a new connector if you haven't yet.

## `enrichTool` (type: `string`):

Override the auto-picked tool name. Leave empty for auto-detect.

## `mcpProxyUrlOverride` (type: `string`):

Diagnostic only. Bypasses Apify's MCP proxy and talks directly to an MCP server URL. Leave empty for normal use.

## `mcpTokenOverride` (type: `string`):

Diagnostic only. Used with the URL override above — paste the service's API key to authenticate directly. Leave empty for normal use.

## Actor input object example

```json
{
  "mode": "specificHashtags",
  "maxItems": 10,
  "hashtags": [
    "marketing",
    "springbreak",
    "digitalmarketing"
  ],
  "period": 7,
  "countryCode": "US",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxConcurrency": 5,
  "enrichOutput": false
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with all scraped items

# 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 = {
    "mode": "specificHashtags",
    "maxItems": 10,
    "hashtags": [
        "marketing",
        "springbreak",
        "digitalmarketing"
    ],
    "period": 7,
    "countryCode": "US",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/tiktok-hashtag-analytics-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 = {
    "mode": "specificHashtags",
    "maxItems": 10,
    "hashtags": [
        "marketing",
        "springbreak",
        "digitalmarketing",
    ],
    "period": 7,
    "countryCode": "US",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/tiktok-hashtag-analytics-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 '{
  "mode": "specificHashtags",
  "maxItems": 10,
  "hashtags": [
    "marketing",
    "springbreak",
    "digitalmarketing"
  ],
  "period": 7,
  "countryCode": "US",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call parseforge/tiktok-hashtag-analytics-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Tiktok Hashtag Analytics Scraper",
        "description": "Extract hashtag performance metrics from TikTok Creative Center. Get video views, post counts, engagement trends, audience demographics by age and country, related hashtags, top creators, and top videos. Analyze specific hashtags or discover trending ones across 7, 30, or 120 day periods.",
        "version": "1.0",
        "x-build-id": "mnCKjmZ86ViEZEGpb"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/parseforge~tiktok-hashtag-analytics-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-parseforge-tiktok-hashtag-analytics-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/parseforge~tiktok-hashtag-analytics-scraper/runs": {
            "post": {
                "operationId": "runs-sync-parseforge-tiktok-hashtag-analytics-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/parseforge~tiktok-hashtag-analytics-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-parseforge-tiktok-hashtag-analytics-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",
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "specificHashtags",
                            "trendingHashtags"
                        ],
                        "type": "string",
                        "description": "Choose 'specificHashtags' to get analytics for specific hashtags you provide, or 'trendingHashtags' to get the top trending hashtags list.",
                        "default": "specificHashtags"
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Free users: Limited to 100. Paid users: Optional, max 1,000,000."
                    },
                    "hashtags": {
                        "title": "Hashtags",
                        "type": "array",
                        "description": "List of hashtag names to look up (without the # symbol). Used when mode = specificHashtags.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "period": {
                        "title": "Time Period (days)",
                        "minimum": 7,
                        "maximum": 120,
                        "type": "integer",
                        "description": "Time period for analytics data: 7 (7 days), 30 (30 days), or 120 (120 days).",
                        "default": 7
                    },
                    "countryCode": {
                        "title": "Country Code",
                        "enum": [
                            "US",
                            "GB",
                            "DE",
                            "FR",
                            "JP",
                            "IT",
                            "ES",
                            "BR",
                            "MX",
                            "CA",
                            "AU",
                            "RU",
                            "TR",
                            "SA",
                            "AE",
                            "EG",
                            "ID",
                            "IN",
                            "PH",
                            "TH",
                            "VN",
                            "MY",
                            "SG",
                            "KR",
                            "PL",
                            "NL",
                            "BE",
                            "SE",
                            "NO",
                            "DK",
                            "FI",
                            "CH",
                            "AT",
                            "PT",
                            "GR",
                            "CZ",
                            "RO",
                            "HU",
                            "AR",
                            "CL",
                            "CO",
                            "PE",
                            "ZA",
                            "IL",
                            "PK",
                            "BD",
                            "NG",
                            "KE",
                            "IE"
                        ],
                        "type": "string",
                        "description": "TikTok Creative Center country. Only the codes in the dropdown are supported — picking anything else will fail the run.",
                        "default": "US"
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Apify proxy used to reach TikTok Creative Center. Residential is strongly recommended — the endpoint heavily rate-limits and gates datacenter IPs, returning empty payloads instead of failing visibly."
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of parallel requests. Lower this if you get rate-limited.",
                        "default": 5
                    },
                    "enrichOutput": {
                        "title": "✨ Enrich each hashtag with cross-platform trend data",
                        "type": "boolean",
                        "description": "Toggle on to add cross-platform momentum + growth rates to every hashtag (TikTok, Google, YouTube, Amazon). Default off (free of charge). Requires an enrichment connector below.",
                        "default": false
                    },
                    "enrichConnector": {
                        "title": "✨ Enrichment Connector",
                        "type": "string",
                        "description": "Pick the Trends MCP (recommended) for cross-platform momentum, or DataForSEO for Google SERP rank + Amazon results on the hashtag. Click '+' to authorize a new connector if you haven't yet."
                    },
                    "enrichTool": {
                        "title": "✨ Enrichment tool override (advanced)",
                        "type": "string",
                        "description": "Override the auto-picked tool name. Leave empty for auto-detect."
                    },
                    "mcpProxyUrlOverride": {
                        "title": "🛠 MCP proxy URL override (dev/diagnostic)",
                        "type": "string",
                        "description": "Diagnostic only. Bypasses Apify's MCP proxy and talks directly to an MCP server URL. Leave empty for normal use."
                    },
                    "mcpTokenOverride": {
                        "title": "🛠 MCP bearer token override (dev/diagnostic)",
                        "type": "string",
                        "description": "Diagnostic only. Used with the URL override above — paste the service's API key to authenticate directly. Leave empty for normal use."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
