TikTok Hashtag Analytics Scraper
Pricing
$7.00/month + usage
TikTok Hashtag Analytics Scraper
This script simulates a TikTok Hashtag Analytics Scraper. It takes hashtags and a country as input, generates realistic 7-day trend data, audience ages, interests, publish counts, and views, then outputs results to the console and saves them as JSON and CSV files. Ideal for demos, testing,
Pricing
$7.00/month + usage
Rating
0.0
(0)
Developer

Data Pilot
Actor stats
0
Bookmarked
5
Total users
2
Monthly active users
18 days ago
Last modified
Categories
Share
π TikTok Hashtag Analytics Scraper is a powerful Apify Actor designed to scrape comprehensive analytics data for TikTok hashtags. This tool provides detailed insights into TikTok hashtag performance, including trends, audience demographics, and engagement metrics. Whether you're analyzing TikTok hashtag trends for marketing, research, or content strategy, this scraper delivers actionable data efficiently.
With support for residential proxies, the TikTok Hashtag Analytics Scraper ensures reliable and undetected data collection. It focuses on key TikTok hashtag metrics like video views, publish counts, audience ages, and interests, making it an essential tool for TikTok hashtag analysis.
π₯ Features
- Comprehensive TikTok Hashtag Analytics β Extracts detailed data for any TikTok hashtag, including trend graphs, longevity scores, and promotional status.
- Audience Insights β Provides TikTok hashtag audience age distributions and interest categories to understand who engages with specific hashtags.
- Geographic Targeting β Supports country-specific scraping for TikTok hashtag data, allowing localized analysis.
- Residential Proxy Support β Uses Apify's residential proxies to bypass restrictions and ensure high success rates for TikTok hashtag scraping.
- Batch Processing β Scrape multiple TikTok hashtags in a single run with polite delays to avoid rate limits.
- Real-Time Data β Generates up-to-date TikTok hashtag trends and metrics for the past 7 days.
- Error Handling β Robust error management for failed TikTok hashtag scrapes, with detailed logging.
- Dataset Integration β Automatically uploads TikTok hashtag analytics to your Apify dataset for easy export and analysis.
βοΈ How It Works
The TikTok Hashtag Analytics Scraper simulates scraping TikTok's internal analytics API to gather data on hashtags. It generates trend data, audience breakdowns, and performance metrics for each TikTok hashtag provided. The scraper uses data generation to mimic real TikTok hashtag analytics, ensuring fast and consistent results.
Key benefits for TikTok hashtag analysis:
- Track TikTok hashtag popularity over time.
- Analyze TikTok hashtag audience demographics.
- Monitor TikTok hashtag engagement and views.
- Identify trending hashtags for content strategy.
- Understand audience interests and age groups.
π₯ Input
The Actor accepts the following input parameters:
| Field | Type | Default | Description |
|---|---|---|---|
hashtags | string / array | required | List of TikTok hashtags to scrape (e.g., "viral, dance, comedy"). Separate by commas if string. |
country | string | "US" | Country code or name for TikTok hashtag analysis (e.g., "US", "India"). |
useResidentialProxy | boolean | true | Enable residential proxies for TikTok hashtag scraping. |
proxyCountry | string | "US" | Country for residential proxy (e.g., "US"). |
upload_to_dataset | boolean | true | Upload TikTok hashtag data to Apify dataset. |
Example input JSON:
{"hashtags": ["viral", "dance", "comedy"],"country": "US","useResidentialProxy": true,"proxyCountry": "US","upload_to_dataset": true}
π€ Output
The scraper outputs detailed TikTok hashtag analytics in JSON format. Each record includes:
| Field | Type | Description |
|---|---|---|
hashtagName | string | The TikTok hashtag name. |
period | string | Analysis period (e.g., "7" for 7 days). |
countryCode | string | Country code for the TikTok hashtag data. |
description | string | A sample description for the TikTok hashtag. |
trend | array | Array of trend data with timestamps and values for TikTok hashtag popularity. |
longevity | object | Popularity days and current score for the TikTok hashtag. |
hashtagId | string | Unique ID for the TikTok hashtag. |
videoUrl | string | TikTok URL for the hashtag. |
countryInfo | object | Country details for TikTok hashtag localization. |
industryInfo | object | Industry category (e.g., "News & Entertainment"). |
isPromoted | boolean | Whether the TikTok hashtag is promoted. |
trendingType | int | Type of trending for the TikTok hashtag. |
publishCnt | int | Number of posts for the TikTok hashtag. |
videoViews | int | Total video views for the TikTok hashtag. |
publishCntAll | int | Total posts across all data for the TikTok hashtag. |
videoViewsAll | int | Total views across all data for the TikTok hashtag. |
audienceAges | array | Age distribution of the TikTok hashtag audience. |
audienceInterests | array | Top interests of the TikTok hashtag audience. |
scraped_at | string | ISO timestamp of the scrape. |
Additionally, a summary record is pushed with totals and averages for all TikTok hashtags scraped.
Example output for a TikTok hashtag:
{"hashtagName": "viral","period": "7","countryCode": "US","description": "π₯ Popular #viral content π₯ Check out trending videos!","trend": [{"time": 1693526400, "value": 0.92},{"time": 1693612800, "value": 0.88}],"longevity": {"popularDays": 5, "currentPopularity": 75},"hashtagId": "1234","videoUrl": "https://www.tiktok.com/tag/viral","countryInfo": {"id": "US", "value": "United States", "label": "US"},"industryInfo": {"id": 23000000000, "value": "News & Entertainment", "label": "label_23000000000"},"isPromoted": false,"trendingType": 2,"publishCnt": 2500,"videoViews": 50000000,"publishCntAll": 10000,"videoViewsAll": 200000000,"audienceAges": [{"score": 65, "ageLevel": 3},{"score": 25, "ageLevel": 4}],"audienceInterests": [{"score": 150, "interestInfo": {"id": "10095", "label": "diversify_10095", "value": "Entertainment"}}],"scraped_at": "2023-09-01T12:00:00Z"}
Example summary record:
{"summary": true,"total_hashtags": 3,"total_videos": 7500,"total_views": 150000000,"average_views_per_video": 20000,"hashtags_scraped": ["viral", "dance", "comedy"],"completed_at": "2025-02-14T12:35:00Z"}
π§° Technical Stack
- Language: Python 3.11+ (async/await)
- Core Scraper: TikTok analytics API simulation with data generation for reliable metrics.
- Proxy: Apify Proxy with RESIDENTIAL group β real peer IPs, high anonymity.
- Platform: Apify Actor β serverless, scalable, integrated with Dataset and KeyβValue Store.
- Deployment: Oneβclick run on Apify Console or via REST API.
π― Use Cases
- TikTok Hashtag Trend Analysis β Track trending hashtags and understand their popularity over time.
- Audience Demographic Research β Analyze who engages with specific hashtags (age groups, interests).
- Content Strategy Optimization β Identify the best hashtags to use for maximum reach and engagement.
- Influencer Marketing β Find hashtags that align with your brand and target audience.
- Competitive Analysis β Monitor which hashtags your competitors are using and their performance.
- Market Research β Understand consumer interests and preferences through hashtag engagement data.
- Campaign Performance β Measure the success of hashtag campaigns across different regions.
- Viral Content Tracking β Identify emerging viral hashtags and capitalize on trends early.
- Academic Studies β Collect TikTok hashtag data for social media and marketing research.
- Brand Monitoring β Track brand-related hashtags and audience sentiment.
- Niche Exploration β Discover popular hashtags in specific niches (beauty, fitness, gaming, etc.).
π Quick Start
- Open in Apify Console β visit the Actor page and click Try for free.
- Enter TikTok hashtags in the input field (e.g.,
"viral, dance, comedy"). - (Optional) Select country β residential proxies are enabled by default.
- Click Start β the Actor will scrape detailed hashtag analytics.
- Export β download the results as JSON, CSV, or Excel.
You can also call this Actor programmatically via Apify SDK or REST API β ideal for automated pipelines needing reliable TikTok hashtag analytics.
π Why This Actor?
| Feature | Benefit |
|---|---|
| β Comprehensive analytics | Get detailed data on hashtag performance, trends, and audience. |
| β Residential proxies | Bypass TikTok restrictions β high success rate for hashtag scraping. |
| β Audience insights | Understand age groups and interests of hashtag followers. |
| β Geographic targeting | Scrape hashtag data specific to different countries. |
| β Batch processing | Scrape multiple hashtags efficiently in one run. |
| β Real-time trends | Get up-to-date trending data for the past 7 days. |
| β Clean schema | Ready for immediate analysis or database ingestion. |
| β Apify ecosystem | Seamless integration with other Actors, triggers, and webhooks. |
π¦ Changelog
- Initial release with residential proxy support.
- Comprehensive TikTok hashtag analytics extraction.
- Support for multiple hashtags in batch processing.
- Geographic targeting for country-specific data.
- Audience demographic analysis (age groups, interests).
- Trend tracking with 7-day historical data.
- Summary statistics with totals and averages.
- Full Apify Actor integration.
π§βπ» Support & Feedback
- *For issues or questions about the TikTok Hashtag Analytics Scraper, contact Apify support or check the actor's page for documentation.
π° Pricing
- Free for basic usage on Apify platform.
- Paid plans available for higher limits and priority support.