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=truereturns TikTok's own JSON at the same price
curl "https://api.handlehaul.com/v1/tiktok/posts/7300000000000000123" \
-H "X-Api-Key: $HANDLEHAUL_API_KEY"
const res = await fetch(
"https://api.handlehaul.com/v1/tiktok/posts/7300000000000000123",
{ headers: { "X-Api-Key": process.env.HANDLEHAUL_API_KEY } }
);
const { data, meta } = await res.json();
console.log(data, meta.credits_charged);
import os, requests
r = requests.get(
"https://api.handlehaul.com/v1/tiktok/posts/7300000000000000123",
headers={"X-Api-Key": os.environ["HANDLEHAUL_API_KEY"]},
)
print(r.json()["data"])
// npm install handlehaul
import { HandleHaul } from 'handlehaul';
const hh = new HandleHaul(); // reads HANDLEHAUL_API_KEY
const { data, meta } = await hh.tiktok.post('7300000000000000123');
console.log(data, meta.credits_charged);
# pip install handlehaul
from handlehaul import HandleHaul
hh = HandleHaul() # reads HANDLEHAUL_API_KEY
res = hh.tiktok.post("7300000000000000123")
print(res.data, res.meta["credits_charged"])
{
"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
}
}
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_uidor numericidfrom 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"
const rows = [];
let cursor = null;
for (let page = 0; page < 5; page++) {
const url = new URL("https://api.handlehaul.com/v1/tiktok/users/river_wren29/posts");
if (cursor) url.searchParams.set("cursor", cursor);
const res = await fetch(url, {
headers: { "X-Api-Key": process.env.HANDLEHAUL_API_KEY },
});
const body = await res.json();
rows.push(...body.data);
if (!body.pagination.has_more) break;
cursor = body.pagination.next_cursor;
}
console.log(rows.length, "rows");
import os, requests
url = "https://api.handlehaul.com/v1/tiktok/users/river_wren29/posts"
headers = {"X-Api-Key": os.environ["HANDLEHAUL_API_KEY"]}
params, rows = {}, []
for _ in range(5):
body = requests.get(url, headers=headers, params=params, timeout=60).json()
rows += body["data"]
if not body["pagination"]["has_more"]:
break
params["cursor"] = body["pagination"]["next_cursor"]
print(len(rows), "rows")
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 URLPostOne video or photo post: counts, caption, author, sound, media URLs
- GET/v1/tiktok/users/{user}/postsin: handle, id or secUid, cursorPostsVideos and photo posts, newest first, with views, likes, comments, shares, saves
- GET/v1/tiktok/posts/{post}/commentsin: id or URL, cursorCommentsComments on a post
- GET/v1/tiktok/hashtags/{tag}/postsin: tag, cursorHashtag postsPosts under a hashtag
- GET/v1/tiktok/music/{music}/postsin: music id, cursorPosts using a soundPosts that use a sound
- GET/v1/tiktok/searchin: q, type, region, cursorSearchTop 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.
| Pack | Per 1,000 calls | 1,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?
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?
/v1/tiktok/posts/https%3A%2F%2Fwww.tiktok.com%2F%40user%2Fvideo%2F7300000000000000123.How much does it cost to track 10,000 videos?
Is this the official TikTok API?
Can I get all videos of an account?
/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.Related
TikTok transcript API
What a video says, as text and timed segments.
Read more →TikTok profile & followers API
Exact counts, followers and following.
Read more →Clipping platforms
Views on every submitted link until payout.
Read more →More: all TikTok endpoints · TikTok post API docs · TikTok posts API docs · pricing · free tools · MCP, CLI and SDKs
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.