Actions4
- Post Actions
- Video Actions
- Analytics Actions
Overview
The TikTok node's "Get Account Stats" operation under the "Analytics" resource allows users to retrieve various performance metrics related to their TikTok account over a specified date range. This is useful for social media managers, marketers, and content creators who want to analyze how their account is performing in terms of engagement and reach.
Common scenarios include:
- Monitoring key metrics like views, likes, comments, shares, profile views, and followers to evaluate overall account growth.
- Comparing performance over different time periods (last 7, 30, or 60 days) to identify trends.
- Integrating TikTok analytics data into broader marketing dashboards or automated reports.
For example, a user might configure this node to fetch the number of views and likes from the last 30 days to assess the impact of recent campaigns.
Properties
| Name | Meaning |
|---|---|
| Metrics | The specific TikTok account metrics to retrieve. Options: Views, Likes, Comments, Shares, Profile Views, Followers. Default is Views and Likes. |
| Date Range | The time period over which to analyze the metrics. Options: Last 7 Days, Last 30 Days, Last 60 Days. Default is Last 7 Days. |
Output
The node outputs JSON data containing the requested account statistics for the selected metrics over the chosen date range. The structure typically includes metric names as keys with their corresponding values representing counts or totals during that period.
If the node supports binary output (not indicated here), it would likely be used for exporting reports or raw data files, but this is not evident from the provided code.
Dependencies
- Requires an API authentication token credential for TikTok's API.
- The node uses TikTok's official API endpoints, switching between production and sandbox environments based on configuration.
- Proper API credentials must be configured in n8n to authorize requests.
Troubleshooting
Common Issues:
- Invalid or expired API credentials will cause authentication failures.
- Requesting unsupported metrics or invalid date ranges may result in errors.
- Network connectivity issues can prevent successful API calls.
Error Messages:
- Authentication errors typically indicate missing or incorrect API tokens; verify and update credentials.
- Validation errors suggest incorrect property values; ensure metrics and date ranges are selected from the provided options.
- Rate limiting errors from TikTok API require waiting before retrying or adjusting request frequency.