TikTok Post Scraper API
With TikTok Post Scraping API you scrape any post on TikTok. You just have to pass the id and username of the account to get the data.
Parameters
Scrapingdog Parameters
Parameter
Description
Search Query
Parameter
Description
API Example
curl "https://api.scrapingdog.com/tiktok/post?api_key=APIKEY&username=nba&post_id=7255379108241198378"import requests
api_key = 'APIKEY'
username = 'nba'
post_id = '7255379108241198378'
params = {
'api_key': api_key,
'username': username,
'post_id': post_id
}
response = requests.get('https://api.scrapingdog.com/tiktok/ost', params=params)
if response.status_code == 200:
# Parse the JSON response using response.json()
response_data = response.json()
# Now you can work with the response_data as a Python dictionary
print(response_data)
else:
print(f'Request failed with status code: {response.status_code}')
API Example
{
"id": "7255379108241198378",
"canonical_url": "https://www.tiktok.com/@nba/video/7255379108241198378",
"description": "Walker was ready to fight for his 2! 😭 #NBA #NBASummerLeague #basketball #freethrow #putback #dunk ",
"created_at": "2023-07-13T18:56:35.000Z",
"created_at_unix": 1689274595,
"schedule_time": null,
"location_created": "US",
"index_enabled": true,
"text_language": "en",
"is_ad": false,
"is_aigc": false,
"aigc_description": null,
"secret": false,
"private_item": false,
"for_friend": false,
"original_item": false,
"offical_item": false,
"take_down": 0,
"digged": false,
"collected": false,
"duet_enabled": true,
"stitch_enabled": true,
"share_enabled": true,
"can_repost": true,
"duet_display": 0,
"stitch_display": 0,
"comment_status": 0,
"category_type": 112,
"diversification_id": 10059,
"share_meta": {
"title": "NBA on TikTok",
"desc": "Walker was ready to fight for his 2! 😭 #NBA #NBASummerLeague #basketball #freethrow #putback #dunk "
},
"stats": {
"plays": 14900000,
"likes": 1200000,
"comments": 1475,
"shares": 3019,
"collects": 52674
},
"video": {
"id": "7255379108241198378",
"width": 576,
"height": 1024,
"duration": 17,
"ratio": "540p",
"format": "mp4",
"codec_type": "h264",
"definition": "540p",
"encoded_type": "normal",
"video_quality": "normal",
"size": "3738221",
"vq_score": "70.83",
"cover": "https://p16-common-sign.tiktokcdn.com/tos-useast5-p-0068-tx/37f08ff75e1a41e885a35a628a3c0d70_1689274596~tplv-tiktokx-dmt-logom:tos-useast5-i-0068-tx/e9bc37e0102c4285844dd97af9ed4c53.image?dr=14573&x-expires=1777143600&x-signature=3ugsQ8ZJtR%2Bf3f598Z6PMceKyUQ%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my3",
"origin_cover": "https://p16-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/edf2144709d347f68f5acb7b4bee4ada_1689274596~tplv-tiktokx-origin.image?dr=14575&x-expires=1777143600&x-signature=XrZWTxhlahgTOxLV4LcUaFl49eY%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my3",
"dynamic_cover": "https://p16-common-sign.tiktokcdn.com/tos-useast5-p-0068-tx/e271e6d0a0944a9fbd31c7c547ec9485_1689274597~tplv-tiktokx-origin.image?dr=14575&x-expires=1777143600&x-signature=j3yAtJ8jio2cih8Dd2L6DLeYC7M%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my3",
"reflow_cover": null,
"share_cover": null,
"zoom_covers": {
"240": "https://p16-common-sign.tiktokcdn.com/tos-useast5-p-0068-tx/37f08ff75e1a41e885a35a628a3c0d70_1689274596~tplv-photomode-zoomcover:240:240.avif?dr=14555&x-expires=1777143600&x-signature=tt1f%2F%2FotJLjBBg8%2Bi0gXY9E8GdQ%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my3&ftpl=1",
"480": "https://p16-common-sign.tiktokcdn.com/tos-useast5-p-0068-tx/37f08ff75e1a41e885a35a628a3c0d70_1689274596~tplv-photomode-zoomcover:480:480.avif?dr=14555&x-expires=1777143600&x-signature=faiIk%2B0vethH7EeB2AaFYdAoNU0%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my3&ftpl=1",
"720": "https://p19-common-sign.tiktokcdn.com/tos-useast5-p-0068-tx/37f08ff75e1a41e885a35a628a3c0d70_1689274596~tplv-photomode-zoomcover:720:720.avif?dr=14555&x-expires=1777143600&x-signature=wMLwL7viv%2BViJ8FkouaRTA6RAbY%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my3&ftpl=1",
"960": "https://p16-common-sign.tiktokcdn.com/tos-useast5-p-0068-tx/37f08ff75e1a41e885a35a628a3c0d70_1689274596~tplv-photomode-zoomcover:960:960.avif?dr=14555&x-expires=1777143600&x-signature=CK97eOg7HsgpYFPQ3C2RGgLnGDo%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my3&ftpl=1"
},
"play_url": "https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/o0KIzhwHIJyQyyCOUAwkLpfDzWgFSBNCElA3MK/?a=1988&bti=ODszNWYuMDE6&&bt=1708&ft=I~da4o62D12NvFNJg.IxRNjjHlBF-UjNS3opiX&mime_type=video_mp4&rc=OmY4M2Y8ZDpmNjM3ZTc5O0BpM2V5djc6Zjg3bDMzZzczNEBhMWBhYDReXi8xMTRhMS1hYSNkMWwxcjQwYGxgLS1kMS9zcw%3D%3D&btag=e000b8000&expire=1777146471&l=20260424034733973AEE29CA14FCA1B287&ply_type=2&policy=2&signature=d3766af504353c4fff9345b94f625bb6&tk=tt_chain_token",
"download_url": "https://v16-webapp-prime.tiktok.com/video/tos/maliva/tos-maliva-ve-0068c799-us/oMyMIphzmJNByEkQSyCwCLgUODfizIAWHKA7Rw/?a=1988&bti=ODszNWYuMDE6&&bt=1712&ft=I~da4o62D12NvFNJg.IxRNjjHlBF-UjNS3opiX&mime_type=video_mp4&rc=ZDM7ZDUzOTw2OGY4aGc3ZUBpM2V5djc6Zjg3bDMzZzczNEBjX2AxXzUwNTQxM2I0Yi4yYSNkMWwxcjQwYGxgLS1kMS9zcw%3D%3D&btag=e000b8000&expire=1777146471&l=20260424034733973AEE29CA14FCA1B287&ply_type=2&policy=2&signature=e8bd83ddc292e02b8f57c998312a6e38&tk=tt_chain_token",
"volume": {
"loudness": -12.5,
"peak": 0.97724
},
"subtitles": [
{
"language_id": "2",
"language_code": "eng-US",
"format": "webvtt",
"source": "ASR",
"url": "https://v16-webapp.tiktok.com/a29b40b9c9824aff89fcb715efeaee8c/69ed1a67/video/tos/maliva/tos-maliva-v-0068c799-us/d0568a3d6ac34fd28bc78520925c7d6f/?a=1988&bti=ODszNWYuMDE6&&bt=6771&ft=IecA0o62D12NvFNJg.IxRNjjHlBF-UjNS3opiX&mime_type=video_mp4&rc=M2V5djc6Zjg3bDMzZzczNEBpM2V5djc6Zjg3bDMzZzczNEBkMWwxcjQwYGxgLS1kMS9zYSNkMWwxcjQwYGxgLS1kMS9zcw%3D%3D&l=20260424034733973AEE29CA14FCA1B287&btag=e00078000",
"url_expire": "2026-04-25T19:47:51.000Z"
}
]
},
"music": {
"id": "7255379083914152747",
"title": "original sound",
"author": "NBA",
"duration": 17,
"precise_duration": {
"preciseDuration": 17.136312,
"preciseShootDuration": 17.136312,
"preciseAuditionDuration": 17.136312,
"preciseVideoDuration": 17.136312
},
"play_url": "https://v77.tiktokcdn.com/f30a67493b62a2a3b7b42537e6f7f39d/69ebc8e7/video/tos/maliva/tos-maliva-v-27dcd7c799-us/989fadb193e740199fdf1cc37642e8c0/?a=1233&bti=ODszNWYuMDE6&&bt=125&ft=.NpOcInz7Th5TCAPXq8Zmo&mime_type=audio_mpeg&rc=amp1dzM6ZnM3bDMzZzU8NEBpamp1dzM6ZnM3bDMzZzU8NEBqcmxjcjQwZWxgLS1kMS9zYSNqcmxjcjQwZWxgLS1kMS9zcw%3D%3D&vvpl=1&l=20260424034733973AEE29CA14FCA1B287&btag=e00078000",
"cover_thumb": "https://p16-pu-sign-useast8.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/8beb8b849e725f2776a11575b1e7aebf~tplv-tiktokx-cropcenter:100:100.jpeg?dr=14579&refresh_token=85e718b9&x-expires=1777143600&x-signature=XpAcifinjsEMR8%2ByGqVpBh8aZ9s%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3",
"cover_medium": "https://p16-pu-sign-useast8.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/8beb8b849e725f2776a11575b1e7aebf~tplv-tiktokx-cropcenter:720:720.jpeg?dr=14579&refresh_token=968ef1be&x-expires=1777143600&x-signature=py9L%2FYD3vMNW%2BI0%2B20IIBZLw4Ko%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3",
"cover_large": "https://p16-pu-sign-useast8.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/8beb8b849e725f2776a11575b1e7aebf~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=1c15b730&x-expires=1777143600&x-signature=Mbg4TnvqG2gluzSZeOB4rT3%2B9tA%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3",
"original": true,
"private": false,
"is_copyrighted": false,
"is_commerce_music": true,
"is_unlimited_music": false
},
"author": {
"id": "134941634731003904",
"sec_uid": "MS4wLjABAAAAsny0dcfyctb1_fdyyiu7JOLnblf8y3jd64yTHQLQoc9O5m57HhjT94OdgfSmNgaG",
"short_id": null,
"username": "nba",
"nickname": "NBA",
"profile_url": "https://www.tiktok.com/@nba",
"verified": true,
"signature": "Home of NBA hoops on TikTok 🏀",
"avatar_thumb": "https://p16-pu-sign-useast8.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/8beb8b849e725f2776a11575b1e7aebf~tplv-tiktokx-cropcenter:100:100.jpeg?dr=14579&refresh_token=85e718b9&x-expires=1777143600&x-signature=XpAcifinjsEMR8%2ByGqVpBh8aZ9s%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3",
"avatar_medium": "https://p16-pu-sign-useast8.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/8beb8b849e725f2776a11575b1e7aebf~tplv-tiktokx-cropcenter:720:720.jpeg?dr=14579&refresh_token=968ef1be&x-expires=1777143600&x-signature=py9L%2FYD3vMNW%2BI0%2B20IIBZLw4Ko%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3",
"avatar_large": "https://p16-pu-sign-useast8.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/8beb8b849e725f2776a11575b1e7aebf~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=1c15b730&x-expires=1777143600&x-signature=Mbg4TnvqG2gluzSZeOB4rT3%2B9tA%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3",
"private_account": false,
"secret": false,
"is_ad_virtual": false,
"is_embed_banned": false,
"tt_seller": false,
"ftc": false,
"open_favorite": false,
"relation": 0,
"room_id": null,
"recommend_reason": null,
"can_exp_playlist": false,
"comment_setting": 0,
"duet_setting": 0,
"stitch_setting": 0,
"download_setting": 0,
"username_modified_at": null,
"nickname_modified_at": null,
"created_at": "2016-08-30T08:01:48.000Z",
"stats": {
"followers": 26100000,
"following": 269,
"likes": 1000000000,
"videos": 20000,
"digg_count": 12800,
"friends": 0
}
},
"hashtags": [
{
"id": "12744",
"title": "NBA",
"url": "https://www.tiktok.com/tag/NBA"
},
{
"id": "20355944",
"title": "nbasummerleague",
"url": "https://www.tiktok.com/tag/nbasummerleague"
},
{
"id": "7131",
"title": "basketball",
"url": "https://www.tiktok.com/tag/basketball"
},
{
"id": "208575",
"title": "freethrow",
"url": "https://www.tiktok.com/tag/freethrow"
},
{
"id": "1378375",
"title": "putback",
"url": "https://www.tiktok.com/tag/putback"
},
{
"id": "7597",
"title": "dunk",
"url": "https://www.tiktok.com/tag/dunk"
}
],
"mentions": [],
"categories": [
"Traditional Sports",
"Sports",
"Sport & Outdoor"
],
"suggested_words": [
"basketball",
"NBA",
"jarace walker draft pick",
"NBA Edit",
"shaq free throw dunk",
"elementary school basketball"
],
"channel_tags": [],
"stickers_on_item": [],
"effect_stickers": [],
"anchors": [],
"warn_info": [],
"app_context": {
"language": "en",
"region": "US",
"request_id": "19979277776973653923",
"cluster_region": "ALL_SG"
}
}Last updated