GET /v1/tiktok/stats

TikTok engagement rate API: plays, likes and top videos by username

Returns engagement stats over the videos we have stored for one TikTok account: total, average, median and max plays, average likes, comments and shares, the average engagement rate ((likes + comments + shares) / plays), videos per week over the last 90 days and the top 3 videos by plays. Send q as a username. The numbers cover the stored videos counted in tracked_videos, not the account's whole history.

Price
$0.0010 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/tiktok/stats?q=flighthouse' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/tiktok/stats",
    params={
        "q": "flighthouse",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
q requiredquerystringTikTok username, @handle, or tiktok.com/@handle URL. Example flighthouse.

Example response

The example response of the API reference, with lists cut to their first 3 items and long text shortened.

json
{
  "data": {
    "username": "flighthouse",
    "followers": 28797400,
    "tracked_videos": 137,
    "total_plays": 580270435,
    "avg_plays": 4235550.6,
    "max_plays": 27680222,
    "median_plays": 2941250,
    "avg_likes": 372109.3,
    "avg_comments": 701.1,
    "avg_shares": 7544.1,
    "avg_engagement_rate": 0.086831,
    "videos_last_90d": 0,
    "videos_per_week_90d": 0,
    "latest_posted_at": "2025-06-09T22:21:33Z",
    "earliest_posted_at": "2023-11-22T19:06:45Z",
    "top_videos": [
      {
        "tiktok_video_id": "7429045534226205983",
        "caption": "Name a more iconic duo 💅 @Maddie L Bailey @Toni #madisonbailey #antoniagentry #gracieabrams #timecut #iloveyouimsorry @Netflix ",
        "likes": 3114842,
        "comments": 6000,
        "shares": 59135,
        "plays": 27680222,
        "posted_at": "2024-10-23T18:51:06Z",
        "cover_url": "https://p19-pu-sign-useast8.tiktokcdn-us.com/tos-useast8-p-0068-tx2/05f8c8369cd64d45a448fb82dfabc35d_1729709469~tplv-photomode-tiktok-play.jpeg?lk3s=b59d6b55&x-expires=1745006400&x-signature=KltRRmgWY64rtrVpIeSjlI8o2CQ%3D&shp=b59d6b55&shcp=…"
      },
      {
        "tiktok_video_id": "7462507490895482158",
        "caption": "In loving memory of Reatha “Rose” Grey ❤️‍🩹 @Retirement House #retirementhouse ",
        "likes": 3525060,
        "comments": 12809,
        "shares": 297362,
        "plays": 23346871,
        "posted_at": "2025-01-21T23:01:00Z",
        "cover_url": "https://p16-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/o0WcGBSDnBJqChnFEMCCzAI1EDeQfk0guRIyuJ~tplv-photomode-tiktok-play.jpeg?lk3s=b59d6b55&x-expires=1746266400&x-signature=RT3YOLBHQemKfuHI%2BXF%2F69hDlrQ%3D&shp=b59d6b55&shcp=-"
      }
    ]
  },
  "meta": {
    "cost": "$0.0010",
    "balance": "$0.7942",
    "request_id": "req_6d57ee5252705a4e0ce0320c4df4d1db"
  }
}

How it works

Engagement analytics over an account's tracked videos: total/avg/max/median plays, avg likes/comments/shares, average engagement rate ((likes+comments+shares)/plays), 90-day posting cadence, and the top 3 videos by plays.

Numbers describe the tracked corpus (tracked_videos), not the account's full TikTok history.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404Account not in the tracked corpus.
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.

Guides that use this endpoint