TikTok Post Scraper API
The TikTok Post Scraper API lets you extract detailed data for any TikTok post including play counts, likes, comments, shares, video quality details, music info, and full author stats. Each successful request costs 5 API credits.
Endpoint:
https://api.scrapingdog.com/tiktok/postAPI Parameters
🔑
Scrapingdog Parameters
api_keyRequiredYour personal API key. Available on your dashboard.
Type: String
🎬
Post
usernameOptionalThe username of the TikTok profile whose post you want to scrape. Required unless using theurlparameter.
Type: Stringpost_idOptionalThe ID of the post you want to get data for. Required unless using theurlparameter.
Type: StringurlOptionalFull TikTok post URL if you don't want to passusernameandpost_idseparately. Example:https://www.tiktok.com/@nba/video/7255379108241198378
Type: String
API Examples
Code to Integrate
curl "https://api.scrapingdog.com/tiktok/post?api_key=APIKEY&username=nba&post_id=7255379108241198378"
import requests params = { "api_key": "APIKEY", "username": "nba", "post_id": "7255379108241198378" } response = requests.get("https://api.scrapingdog.com/tiktok/post", params=params) data = response.json() print(data["description"]) print("Plays:", data["statistics"]["plays"])
const params = new URLSearchParams({ api_key: "APIKEY", username: "nba", post_id: "7255379108241198378" }); const res = await fetch(`https://api.scrapingdog.com/tiktok/post?${params}`); const data = await res.json(); console.log(data.description, data.statistics.plays);
<?php $url = 'https://api.scrapingdog.com/tiktok/post?' . http_build_query([ 'api_key' => 'APIKEY', 'username' => 'nba', 'post_id' => '7255379108241198378', ]); echo file_get_contents($url);
API Response
{
"id": "7255379108241198378",
"canonical_url": "https://www.tiktok.com/@nba/video/7255379108241198378",
"description": "When the clock hits zero 🏀 #NBA #Basketball",
"created_at": 1688400000,
"location": null,
"privacy": "public",
"statistics": {
"plays": 14900000,
"likes": 1200000,
"comments": 1475,
"shares": 3019,
"collects": 52674
},
"video": {
"width": 576,
"height": 1024,
"duration": 30,
"quality": "normal",
"codec": "h264",
"play_url": "https://v19-webapp.tiktok.com/...",
"download_url": "https://v19-webapp.tiktok.com/...",
"subtitles": []
},
"music": {
"id": "7255379108241198000",
"title": "original sound",
"author": "NBA",
"duration": 30,
"audio_url": "https://sf16-ies-music.tiktokcdn.com/...",
"cover": "https://p16-sign-sg.tiktokcdn.com/..."
},
"author": {
"id": "6569595380",
"username": "nba",
"verified": true,
"followers": 26100000,
"following": 512,
"likes": 385000000,
"video_count": 4200
},
"hashtags": [
{ "id": "1234", "name": "NBA" },
{ "id": "5678", "name": "Basketball" }
],
"mentions": [],
"categories": ["Sports"],
"suggested_words": ["basketball", "nba", "sports"]
}