The TikTok Search API allows you to search for TikTok videos based on keywords.
"https://openapi-idk8.onrender.com"
GET `/tiktok/search`
: Searches for TikTok videos based on specified parameters.keywords
(required): The keywords to search for.count
(optional, default: 10): Number of videos to fetch.cursor
(optional, default: 0): Cursor for pagination.region
(optional, default: 'US'): Region for searching videos.publish_time
(optional, default: '0'): Time of video publish.sort_type
(optional, default: '0'): Sorting type for search results.GET `https://openapi-idk8.onrender.com/tiktok/search?keywords=funny+cat+videos&count=20®ion=US`
{
"code": 0,
"msg": "success",
"processed_time": 0.9603,
"data": {
"videos": [
{
"aweme_id": "v09044g40000co7de1nog65tnd2d1udg",
"video_id": "7354055741247851782",
"region": "PH",
"title": "#ad #lettertrend #heart #epwaypi ",
"cover": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/oYttmBQ7cADhQmAGIt4EB6od2JFXRD8EfWFdf3~c5_500x800.jpeg?biz_tag=musically_video.video_cover&lk3s=c1333099&x-expires=1718290800&x-signature=WkGxeeOip6AA7%2BIc%2FQPMzBeqRtA%3D",
"duration": 15,
"play_count": 996886,
"digg_count": 17009,
"comment_count": 95,
"share_count": 2019,
"download_count": 144,
"author": {
"id": "7104262366934598682",
"unique_id": "gamdirut",
"nickname": "Algamdi_Ottok",
"avatar": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/a1e32ad98b1cfd7d4a3e4e45f695b4fb~c5_300x300.jpeg?lk3s=45126217&nonce=23807&refresh_token=6912d115b9043dfb224dc3ea01456209&x-expires=1718355600&x-signature=TuVTflUPLtlD6msMuEkdCHqRo1U%3D&shp=45126217&shcp=-"
}
},
...
]
}
}
aweme_id
: The unique ID of the TikTok video.video_id
: The video ID of the TikTok video.region
: The region of the video.title
: The title of the video.cover
: The cover image URL of the video.duration
: The duration of the video in seconds.play_count
: Number of times the video has been played.digg_count
: Number of likes (digs) on the video.comment_count
: Number of comments on the video.share_count
: Number of times the video has been shared.download_count
: Number of times the video has been downloaded.author
: Information about the author of the video.If an error occurs while searching for TikTok videos, the API will respond with a 500 status code and an error message.