Want to get data from TikTok? The Fast TikTok API Scraper is a simple tool to help you collect information from TikTok. You can find popular videos, videos with hashtags, videos from users, search results, and music videos. You can also get info about a video from its link and find comments.
It's also cheap! For just $0.001, you can get up to 100 results.
And, you get video links without watermarks!
What it Does: Features
Here's what the Fast TikTok API Scraper can do:
- Find Videos: Get TikTok video lists by:
- Trending: See popular videos now.
- Hashtag: Find videos with a specific hashtag.
- User: Get videos from a TikTok user.
- Search: Search for videos using keywords.
- Music: Find videos using a song.
- Video Details: Get info about a video using its TikTok link.
- Comments: Get comments from TikTok videos.
- Simple to Use: No need for extra software.
- Works with Many Tools: Use with Python and other tools using APIFY SDK or RESTful API.
- Many Ways to Access: Use API keys or RESTful API to get data.
- Any Programming Language: Works with any code you like.
- Private Data Safe: Only gets public data, respects privacy and TikTok rules.
How to Use: Instructions
To learn how to use the Fast TikTok API Scraper, see the official guide. It has easy steps, API details, and examples to help you start getting TikTok data.
Need Help? Support
If you have problems or questions, get help from the Apify help page. For help from other users, join the Apify Discord group.
Keep Updated
This tool is always getting better! Stay updated on fixes, new things, and changes. It's made to be fast and use little computer power, so you can get lots of data easily.
What You Need to Tell It: Input Options
To use the scraper, you need to give it some settings in JSON format. Here are the settings you can use:
| Setting Name | Type | What it Means |
|---|---|---|
type |
string | What to Scrape: Choose what kind of TikTok data you want. Options: SEARCH, TREND, HASHTAG, USER, MUSIC, VIDEO. |
url |
string | TikTok Link: Needed if type is HASHTAG, USER, or MUSIC. This is the TikTok page link you want to use. |
urls |
string[] | Video Links: Use if type is VIDEO. Put a list of TikTok video links here. Example: ["https://www.tiktok.com/@user1/video/123...", "https://www.tiktok.com/@user2/video/456..."] |
region |
string | Region Code: Use a 2-letter region code like US or VN. Needed for TREND and SEARCH to pick a country. |
keyword |
String | Search Word: The word to search for on TikTok. Only for SEARCH type. |
limit |
integer | How Many Results: Set the maximum number of videos you want to get. |
isUnlimited |
boolean | Get Everything: Set to true to try and get all videos, even past the limit. |
sortType |
integer | Search Order: How to order search results (for SEARCH type).
|
publishTime |
string | Video Timeframe: Filter search by when videos were posted (for SEARCH type). Options: ALL_TIME, PAST_24_HOURS, PAST_WEEK, PAST_MONTH, PAST_YEAR. |
proxyConfiguration |
Object | Proxy Settings: Settings for using proxies. You can use your own or Apify Proxy to stay anonymous. |
Input Examples: Ready to Copy JSON
Here are some JSON examples you can copy and paste to use the scraper:
Search for "viral" videos:
{
"type": "SEARCH",
"keyword": "viral",
"sortType": 0,
"publishTime": "ALL_TIME",
"limit": 100,
"isUnlimited": false,
"proxyConfiguration": {
"useApifyProxy": false
}
}
Get Trending Videos in the US:
{
"type": "TREND",
"region": "US",
"limit": 100,
"isUnlimited": false,
"proxyConfiguration": {
"useApifyProxy": false
}
}
Get Videos from #fyp hashtag:
{
"type": "HASHTAG",
"url": "https://www.tiktok.com/tag/fyp",
"limit": 100,
"isUnlimited": false,
"proxyConfiguration": {
"useApifyProxy": false
}
}
Get info for these TikTok videos:
{
"type": "VIDEO",
"urls": [
"https://www.tiktok.com/@seuamigopitbull/video/7137451371405561093",
"https://www.tiktok.com/@scarymanilla/video/7023014317612207366"
],
"proxyConfiguration": {
"useApifyProxy": false
}
}
Find videos using this song:
{
"type": "MUSIC",
"url": "https://www.tiktok.com/music/original-sound-7023014141862808326",
"limit": 100,
"isUnlimited": false,
"proxyConfiguration": {
"useApifyProxy": false
}
}
Watching it Run
When the scraper is running, you'll see messages about what it's doing, like which page it's looking at and how many videos it has found. If something is wrong with your settings, it will stop and tell you what the problem is.
Getting Your Data
The data is saved in a dataset, with each video's info as one item. You can easily get this data in code like Python, PHP, or Node.js. See our FAQ or API info to learn how to get your data.
Example of Video Data (JSON)
Here's an example of what the video data looks like in JSON:
[
{
"added_sound_music_info": {
"album": "",
"artists": [],
"audition_duration": 54,
"author": "VTV Giai Tri Official",
"author_deleted": false,
"author_position": null,
"avatar_medium": {
"height": 720,
"uri": "tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d",
"url_list": [
"https://p16-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d.webp?x-expires=1683439200&x-signature=Nq4qV8EaKGCuXuy1BNauD7klTH0%3D",
"https://p16-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d.jpeg?x-expires=1683439200&x-signature=x8tIQWWiY3wzNiefIUjhh8g9q9o%3D"
],
"width": 720
},
"avatar_thumb": {
"height": 720,
"uri": "tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d",
"url_list": [
"https://p16-sign-sg.tiktokcdn.com/aweme/100x100/tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d.webp?x-expires=1683439200&x-signature=FHXsU3jZ8YKoyxCWYxnwF3W3o2w%3D",
"https://p16-sign-sg.tiktokcdn.com/aweme/100x100/tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d.jpeg?x-expires=1683439200&x-signature=AbJ3SuoZHmlN4DCbqkYoVmpbci8%3D"
],
"width": 720
},
"binded_challenge_id": 0,
"can_not_reuse": false,
"collect_stat": 0,
"commercial_right_type": 2,
"cover_large": {
"height": 720,
"uri": "tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d",
"url_list": [
"https://p16-sign-sg.tiktokcdn.com/aweme/1080x1080/tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d.webp?x-expires=1683439200&x-signature=y9%2Fv5Fnzgc6JHvd%2Fu7gW2Pvz6L4%3D",
"https://p16-sign-sg.tiktokcdn.com/aweme/1080x1080/tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d.jpeg?x-expires=1683439200&x-signature=7FvoANBrpBQ6BeEnRWZzFg8gCHY%3D"
],
"width": 720
},
"cover_medium": {
"height": 720,
"uri": "tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d",
"url_list": [
"https://p16-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d.webp?x-expires=1683439200&x-signature=Nq4qV8EaKGCuXuy1BNauD7klTH0%3D",
"https://p16-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d.jpeg?x-expires=1683439200&x-signature=x8tIQWWiY3wzNiefIUjhh8g9q9o%3D"
],
"width": 720
},
"cover_thumb": {
"height": 720,
"uri": "tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d",
"url_list": [
"https://p16-sign-sg.tiktokcdn.com/aweme/100x100/tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d.webp?x-expires=1683439200&x-signature=FHXsU3jZ8YKoyxCWYxnwF3W3o2w%3D",
"https://p16-sign-sg.tiktokcdn.com/aweme/100x100/tos-alisg-avt-0068/e58bf19abf1c1badb25233ebb772283d.jpeg?x-expires=1683439200&x-signature=AbJ3SuoZHmlN4DCbqkYoVmpbci8%3D"
],
"width": 720
},
"dmv_auto_show": false,
"duration": 54,
"duration_high_precision": {
"audition_duration_precision": 54.7,
"duration_precision": 54.7,
"shoot_duration_precision": 54.7,
"video_duration_precision": 54.7
},
"external_song_info": [],
"extra": "{\"aed_music_dur\":1,\"beats\":{},\"can_read\":true,\"can_reuse\":true,\"erase_type\":0,\"erase_uid\":0,\"from_user_id\":0,\"has_edited\":0,\"is_ugc_mapping\":false,\"is_used\":0,\"owner_id\":6812490744957256705,\"resource_status\":0,\"review_unshelve_reason\":0,\"reviewed\":0,\"schedule_search_time\":0}",
"id": 7229168247013182210,
"id_str": "7229168247013182210",
"is_audio_url_with_cookie": false,
"is_author_artist": false,
"is_commerce_music": true,
"is_matched_metadata": false,
"is_original": false,
"is_original_sound": true,
"is_pgc": false,
"is_play_music": false,
"is_shooting_allow": true,
"lyric_short_position": null,
"mid": "7229168247013182210",
"multi_bit_rate_play_info": null,
"mute_share": false,
"offline_desc": "",
"owner_handle": "vtvgiaitriofficial",
"owner_id": "6812490744957256705",
"owner_nickname": "VTV Giai Tri Official",
"play_url": {
"height": 720,
"uri": "https://sf16-ies-music-sg.tiktokcdn.com/obj/tiktok-obj/7229168238650166018.mp3",
"url_list": [
"https://sf16-ies-music-sg.tiktokcdn.com/obj/tiktok-obj/7229168238650166018.mp3"
],
"width": 720
},
"position": null,
"prevent_download": false,
"preview_end_time": 0,
"preview_start_time": 0,
"recommend_status": 100,
"search_highlight": null,
"sec_uid": "MS4wLjABAAAAcmWx88_xRFU57rY2YUYFPBarAgam7vOnfxR-TvpyfvKtkFEAsihLpdILoRLvqYjV",
"shoot_duration": 54,
"source_platform": 24,
"status": 1,
"tag_list": null,
"title": "original sound - vtvgiaitriofficial",
"tt_to_dsp_song_infos": null,
"user_count": 0,
"video_duration": 54
},
"music_begin_time_in_ms": 0,
"music_selected_from": "",
"music_title_style": 1,
"need_trim_step": false,
"need_vs_entry": false,
"nickname_position": null,
"no_selected_music": false,
"origin_comment_ids": null,
"playlist_blocked": false,
"playlist_info": {
"index": 6,
"item_total": 43,
"mix_id": "7220755092813777691",
"name": "Cuộc đời vẫn đẹp sao"
},
"poi_re_tag_signal": 0,
"position": null,
"prevent_download": false,
"products_info": null,
"question_list": null,
"rate": 12,
"reference_tts_voice_ids": null,
"reference_voice_filter_ids": null,
"region": "VN",
"risk_infos": {
"content": "",
"risk_sink": false,
"type": 0,
"vote": false,
"warn": false
},
"search_highlight": null,
"share_info": {
"bool_persist": 0,
"now_invitation_card_image_urls": null,
"share_desc": "Check out VTV Giai Tri Official's video! #TikTok",
"share_desc_info": "TikTok: Make Every Second CountCheck out VTV Giai Tri Official’s video! #TikTok > ",
"share_link_desc": "",
"share_quote": "",
"share_signature_desc": "",
"share_signature_url": "",
"share_title": "Check out VTV Giai Tri Official’s video! #TikTok > ",
"share_title_myself": "",
"share_title_other": "",
"share_url": "https://www.tiktok.com/@vtvgiaitriofficial/video/7229167805625847041?_r=1&u_code=0&preview_pb=0&sharer_language=en&_d=e7km4e8ee8j7d2&share_item_id=7229167805625847041&source=h5_m",
"whatsapp_desc": "Download TikTok and watch more fun videos:"
},
"share_url": "https://www.tiktok.com/@vtvgiaitriofficial/video/7229167805625847041?_r=1&u_code=0&preview_pb=0&sharer_language=en&_d=e7km4e8ee8j7d2&share_item_id=7229167805625847041&source=h5_m",
"sort_label": "",
"statistics": {
"aweme_id": "7229167805625847041",
"collect_count": 743,
"comment_count": 183,
"digg_count": 25006,
"download_count": 0,
"forward_count": 0,
"lose_comment_count": 0,
"lose_count": 0,
"play_count": 585709,
"share_count": 492,
"whatsapp_share_count": 0
},
"status": {
"allow_comment": true,
"allow_share": true,
"aweme_id": "7229167805625847041",
"download_status": 0,
"in_reviewing": false,
"is_delete": false,
"is_prohibited": false,
"private_status": 0,
"review_result": {
"review_status": 0
},
"reviewed": 1,
"self_see": false
},
"text_extra": [
{
"end": 66,
"hashtag_id": "1670903934915585",
"hashtag_name": "cuocdoivandepsao",
"is_commerce": false,
"sec_uid": "",
"start": 49,
"type": 1,
"user_id": ""
}
],
"text_sticker_major_lang": "un",
"tts_voice_ids": null,
"uniqid_position": null,
"user_digged": 0,
"video": {
"CoverTsp": 47,
"ai_dynamic_cover": {
"uri": "tos-alisg-p-0037/ad27d3bd0b00480d860c9e22f87b3ac5_1683171895",
"url_list": [
"https://p16-sign-sg.tiktokcdn.com/obj/tos-alisg-p-0037/ad27d3bd0b00480d860c9e22f87b3ac5_1683171895?x-expires=1683439200&x-signature=8Dfb9ZLKsy0h2BMmAKuEOpwyl7w%3D&s=CHALLENGE_AWEME&se=false&sh=&sc=dynamic_cover&l=20230506060531760EDB96FF74C50AB8A9"
]
},
"ai_dynamic_cover_bak": {
"uri": "tos-alisg-p-0037/ad27d3bd0b00480d860c9e22f87b3ac5_1683171895",
"url_list": [
"https://p16-sign-sg.tiktokcdn.com/obj/tos-alisg-p-0037/ad27d3bd0b00480d860c9e22f87b3ac5_1683171895?x-expires=1683439200&x-signature=8Dfb9ZLKsy0h2BMmAKuEOpwyl7w%3D&s=CHALLENGE_AWEME&se=false&sh=&sc=dynamic_cover&l=20230506060531760EDB96FF74C50AB8A9"
]
},
"bit_rate": 320,
"cdn_url_expired": 1683179135,
"cover_url": {
"height": 720,
"uri": "tos-alisg-avt-0068/o_0_03375d58a79b4944924369e56404b2a4_1683171894",
"url_list": [
"https://p16-sign-sg.tiktokcdn.com/obj/tos-alisg-avt-0068/o_0_03375d58a79b4944924369e56404b2a4_1683171894.webp?x-expires=1683439200&x-signature=v6l5x8J0f%2F5W23p0L8mP576l5v0%3D",
"https://p16-sign-sg.tiktokcdn.com/obj/tos-alisg-avt-0068/o_0_03375d58a79b4944924369e56404b2a4_1683171894.jpeg?x-expires=1683439200&x-signature=m%2F8s0OhwD%2B1G0xY0s9sQ0IuE1pI%3D"
],
"width": 720
},
"definition": "720p",
"download_addr": null,
"dynamic_cover": {
"uri": "tos-alisg-p-0037/ad27d3bd0b00480d860c9e22f87b3ac5_1683171895",
"url_list": [
"https://p16-sign-sg.tiktokcdn.com/obj/tos-alisg-p-0037/ad27d3bd0b00480d860c9e22f87b3ac5_1683171895?x-expires=1683439200&x-signature=8Dfb9ZLKsy0h2BMmAKuEOpwyl7w%3D&s=CHALLENGE_AWEME&se=false&sh=&sc=dynamic_cover&l=20230506060531760EDB96FF74C50AB8A9"
]
},
"duration": 54700,
"encoded_type": "mpeg4",
"file_hash": "4c9d45542542145c9039488948986bb3",
"file_size": 2242396,
"format": "mpeg4",
"height": 1280,
"hls_url": "https://v16-webapp-sg.tiktokcdn.com/obj/tos-alisg-ve-0068c003/7f1c9e4a857948679898f49a97575a3b_1683171895~noop~.m3u8?a=1988&ch=0&cr=0&dr=0&cd=0%7C0%7C0%7C0&cv=1&br=320&bt=160&cs=0&ds=3&ft=EfjgoYKjQ2ZzQTplQzhfykRrSDVr8qgG&mime_type=video_mp4&qs=0&rc=M2lsbTc5aDlnNzMzZmVpZ0BpM3U2Zmc6ZmVnaTMzNEBnNmNgZzMzM0AzL2I1YSMwL2Y1YSNzM2pgLS1kMS1zcw%3D%3D&l=2023050423445401024408500005450E37047",
"is_h265": 0,
"is_source_HDR": false,
"low_refine_cover": null,
"meta": "{\"Resolution\":\"720p\"}",
"origin_cover": {
"height": 720,
"uri": "tos-alisg-avt-0068/o_0_03375d58a79b4944924369e56404b2a4_1683171894",
"url_list": [
"https://p16-sign-sg.tiktokcdn.com/obj/tos-alisg-avt-0068/o_0_03375d58a79b4944924369e56404b2a4_1683171894.webp?x-expires=1683439200&x-signature=v6l5x8J0f%2F5W23p0L8mP576l5v0%3D",
"https://p16-sign-sg.tiktokcdn.com/obj/tos-alisg-avt-0068/o_0_03375d58a79b4944924369e56404b2a4_1683171894.jpeg?x-expires=1683439200&x-signature=m%2F8s0OhwD%2B1G0xY0s9sQ0IuE1pI%3D"
],
"width": 720
},
"play_addr": {
"height": 1280,
"uri": "tos-alisg-p-0037/7f1c9e4a857948679898f49a97575a3b_1683171895",
"url_list": [
"https://v16-webapp-sg.tiktokcdn.com/tos-alisg-ve-0068c003/7f1c9e4a857948679898f49a97575a3b_1683171895.mp4?a=1988&ch=0&cr=0&dr=0&cd=0%7C0%7C0%7C0&cv=1&br=320&bt=160&cs=0&ds=3&ft=EfjgoYKjQ2ZzQTplQzhfykRrSDVr8qgG&mime_type=video_mp4&qs=0&rc=M2lsbTc5aDlnNzMzZmVpZ0BpM3U2Zmc6ZmVnaTMzNEBnNmNgZzMzM0AzL2I1YSMwL2Y1YSNzM2pgLS1kMS1zcw%3D%3D&l=2023050423445401024408500005450E37047"
],
"width": 720
},
"play_url_265": null,
"play_url_h264": {
"height": 1280,
"uri": "tos-alisg-p-0037/7f1c9e4a857948679898f49a97575a3b_1683171895",
"url_list": [
"https://v16-webapp-sg.tiktokcdn.com/tos-alisg-ve-0068c003/7f1c9e4a857948679898f49a97575a3b_1683171895.mp4?a=1988&ch=0&cr=0&dr=0&cd=0%7C0%7C0%7C0&cv=1&br=320&bt=160&cs=0&ds=3&ft=EfjgoYKjQ2ZzQTplQzhfykRrSDVr8qgG&mime_type=video_mp4&qs=0&rc=M2lsbTc5aDlnNzMzZmVpZ0BpM3U2Zmc6ZmVnaTMzNEBnNmNgZzMzM0AzL2I1YSMwL2Y1YSNzM2pgLS1kMS1zcw%3D%3D&l=2023050423445401024408500005450E37047"
],
"width": 720
},
"preload_interval": null,
"progressive_play_addr": null,
"ratio": "1280x720",
"refine_cover_url": null,
"uri": "7f1c9e4a857948679898f49a97575a3b",
"vid": "7f1c9e4a857948679898f49a97575a3b",
"width": 720
},
"video_labels": null,
"video_tag_labels": null
}
]
Cheap and Quick: How Much It Costs
The Fast TikTok API is made to be fast and save you money. It can get up to 100 video results in about 30 seconds, and it only costs around $0.001. This way, you get the TikTok data you need without spending too much.
Start Using It Now!
Want to start using TikTok data? The Fast TikTok API Scraper is the best tool for getting TikTok data easily and cheaply. Go to our guide to learn more and start scraping!
We're Here to Help
If you need help or have questions, we are here for you. Ask for help on the Apify help page or join our community on Apify Discord.
Keep checking back for updates and new things added to the Fast TikTok API Scraper!
Comments
Post a Comment