TikTok · Videos

TikTok video API: views, likes and shares for any video

Pass a TikTok video link or id and get one JSON object back: views, likes, comments, shares and saves, plus caption, date, duration, author, sound and hashtags. 1 credit per successful call. Made for clipping platforms and analytics apps that check views on many links.

  • 1 credit per successful call
  • Deleted video: free
  • $0.83–$1.45 per 1,000
  • 10–30 req/s

Every count in one call

Send the numeric id, or the tiktok.com link URL-encoded into the path. Video and photo posts both work.

  • counts: views, likes, comments, shares and saves
  • A deleted or missing post answers 404 and costs nothing
  • raw=true returns TikTok's own JSON at the same price
curl "https://api.handlehaul.com/v1/tiktok/posts/7300000000000000123" \
  -H "X-Api-Key: $HANDLEHAUL_API_KEY"
Responseapplication/json
{
  "data": {
    "id": "7300000000000000123",
    "url": "https://www.tiktok.com/@river_wren29/video/7300000000000000123",
    "caption": "Sample post 124 by @river_wren29 #pixel #fyp",
    "created_at": "2026-07-30T00:53:20.000Z",
    "media_type": "video",
    "duration_seconds": 18,
    "cover_url": "https://p16-sign.tiktokcdn-us.com/…/cover/7300000000000000123.jpeg",
    "play_url": "https://v16-webapp-prime.tiktok.com/…/7300000000000000123.mp4",
    "images": null,
    "counts": {
      "views": 538234,
      "likes": 32294,
      "comments": 1076,
      "shares": 538,
      "saves": 1615
    },
    "author": {
      "id": "6804246811370395890",
      "sec_uid": "MS4wLjABAAAAsKNrxsBn-IUSma2viuD_ShtPMiRgkVWSjeDiJxNJZ2w",
      "handle": "river_wren29",
      "nickname": "River Wren",
      "avatar_url": "https://p16-sign.tiktokcdn-us.com/…/avatar/6804246811370395890~c5_1080x1080.jpeg",
      "is_verified": false,
      "is_private": false,
      "url": "https://www.tiktok.com/@river_wren29",
      "counts": {
        "followers": 579298,
        "following": 318,
        "likes": 17958238,
        "videos": 338
      }
    },
    "music": {
      "id": "7200000000000000000",
      "title": "original sound",
      "artist": "River Wren",
      "is_original": true,
      "duration_seconds": 30,
      "cover_url": "https://p16-sign.tiktokcdn-us.com/…/music/7200000000000000000~c5_720x720.jpeg",
      "play_url": "https://v16-webapp-prime.tiktok.com/…/music/7200000000000000000.mp3",
      "post_count": null,
      "url": "https://www.tiktok.com/music/original-sound-7200000000000000000"
    },
    "hashtags": [
      "pixel",
      "fyp"
    ],
    "mentions": [],
    "language": "en",
    "location": "US",
    "has_captions": true,
    "is_ad": false
  },
  "meta": {
    "request_id": "req_…",
    "cached": false,
    "cache_age_seconds": 0,
    "credits_charged": 1,
    "credits_remaining": 26943
  }
}
Example values. Your key goes in HANDLEHAUL_API_KEY.

A creator’s whole feed, newest first

/v1/tiktok/users/{user}/posts pages through an account's videos and photo posts, about 16 a page, each with the same counts. 1 credit per successful call (one page).

  • Newest first, with a cursor for the next page
  • A handle we have not looked up in the last 7 days adds 1 lookup credit; send the sec_uid or numeric id from the profile call to skip it.
# first page; repeat with ?cursor=<pagination.next_cursor>
curl "https://api.handlehaul.com/v1/tiktok/users/river_wren29/posts" \
  -H "X-Api-Key: $HANDLEHAUL_API_KEY"
Example values. Your key goes in HANDLEHAUL_API_KEY.

Endpoints for this job

Each costs 1 credit per successful call; lists take a cursor. Every TikTok endpoint is on the TikTok API page, full parameters in the docs.

  • GET/v1/tiktok/posts/{post}
    in: id or URL
    Post
    One video or photo post: counts, caption, author, sound, media URLs
  • GET/v1/tiktok/users/{user}/posts
    in: handle, id or secUid, cursor
    Posts
    Videos and photo posts, newest first, with views, likes, comments, shares, saves
  • GET/v1/tiktok/posts/{post}/comments
    in: id or URL, cursor
    Comments
    Comments on a post
  • GET/v1/tiktok/hashtags/{tag}/posts
    in: tag, cursor
    Hashtag posts
    Posts under a hashtag
  • GET/v1/tiktok/music/{music}/posts
    in: music id, cursor
    Posts using a sound
    Posts that use a sound
  • GET/v1/tiktok/search
    in: q, type, region, cursor
    Search
    Top results, users, videos, photo posts, live streams or sounds

What it costs

1 credit per successful call on every pack, so the bill is calls × the pack's price per 1,000. Naming an account by a handle we have not looked up in the last 7 days adds 1 lookup credit; send the numeric id from any result to skip it. Failed calls are free and credits never expire.

Cost by pack for common TikTok jobs
PackPer 1,000 calls1,000 videos
1,000 calls
10,000 videos
10,000 calls
50,000 videos
50,000 calls
$29 · 20,000 credits$1.45$1.45$14.50$72.50
$99 · 80,000 credits$1.24$1.24$12.40$62.00
$249 · 250,000 credits$1.00$1.00$10.00$50.00
$499 · 600,000 credits$0.83$0.83$8.30$41.50

Each re-check of a video is one call. A repeat inside the cache window returns the cached counts for free; add fresh=true when you need a live number (full price). Scale (1M+ calls a month) starts at $0.75 per 1,000. See pricing.

Per call, not per row

1,000 video lookups with HandleHaul: 1,000 calls, $0.83 to $1.45.

Per-row vendors, same 1,000 video lookups

Apify: from $1.70, billed per result.

Bright Data: $1.30 to $1.50, billed per record.

Competitor prices from their own pricing pages, checked December 2026: Apify, Bright Data. Every vendor side by side: social media API pricing.

Good to know

Re-checking views at volume

Clipping and payout tools re-check the same links until payout. Your pack sets the speed: up to 30 requests per second, 108,000 links an hour on the $499 pack. Scale goes higher.

Ids and links

Store the numeric id from the first call. Full tiktok.com links work too: URL-encode them into the path.

Public posts only

Posts from private accounts are not available and the call is free. We never log in to accounts.

TikTok video API questions

How do I get TikTok video views with an API?
Call GET /v1/tiktok/posts/{post} with the video id or its URL-encoded link. data.counts.views is the view count, next to likes, comments, shares and saves. 1 credit per successful call.
Can I pass the TikTok link instead of the id?
Yes. URL-encode the full tiktok.com link and put it where the id goes, for example /v1/tiktok/posts/https%3A%2F%2Fwww.tiktok.com%2F%40user%2Fvideo%2F7300000000000000123.
How much does it cost to track 10,000 videos?
10,000 calls: $8.30 to $14.50 depending on the pack, and repeats inside the cache window are free. Failed calls (deleted or private videos) cost nothing.
Is this the official TikTok API?
No. HandleHaul is an independent API for public TikTok data. No TikTok developer approval and no user logins. TikTok’s own APIs cover accounts that authorize your app or approved research projects.
Can I get all videos of an account?
Yes, page through /v1/tiktok/users/{user}/posts with the cursor, about 16 posts a page, 1 credit per successful call. An account with 160 public posts takes about 10 calls. A handle we have not looked up in the last 7 days adds 1 lookup credit; send the sec_uid or numeric id from the profile call to skip it.

Start with the TikTok video API

$29 for 20,000 calls on Instagram and TikTok. Credits never expire.

Want to test first? Sandbox keys are free and unlimited, with sample data in the live schema.