Tiktok Videos by Keyword avatar
Tiktok Videos by Keyword

Pricing

$9.99/month + usage

Go to Apify Store
Tiktok Videos by Keyword

Tiktok Videos by Keyword

Developed by

shareze

shareze

Maintained by Community

Get the videos on Tiktok through keywords, such as candle, tshirt, etc.

0.0 (0)

Pricing

$9.99/month + usage

3

19

4

Last modified

5 days ago

TikTok Videos by Keyword Scraper

This Apify Actor is designed to scrape TikTok videos based on specific keywords. It allows you to retrieve detailed information about videos matching the given search criteria.

How to Use

1. Input Configuration

The Actor requires an input JSON object to define the scraping parameters. The structure of the input is as follows:

{
"keyword": "candle",
"size": 10,
"regionCode": "US"
}
  • keyword: (Required) The search keyword to find TikTok videos. For example, "candle".
  • size: (Required) The number of videos to retrieve. Default is 10.
  • regionCode: (Optional) The region code to filter results. For example, "US", "FR", or "CA".

2. Output Data

The Actor returns an array of objects containing information about the TikTok videos matching the search criteria. The structure of each object is as follows:

{
"id": "123456789",
"url": "https://www.tiktok.com/@example_user/video/123456789",
"createTime": 1680000000,
"desc": "This is an example video description.",
"autor": {
"id": "987654321",
"avatarLarger": "https://example.com/avatar_large.jpg",
"avatarMedium": "https://example.com/avatar_medium.jpg",
"avatarThumb": "https://example.com/avatar_thumb.jpg",
"nickname": "Example User",
"uniqueId": "example_user",
"verified": true,
"privateAccount": false
},
"authorStats": {
"followerCount": 1000,
"heartCount": 5000,
"videoCount": 50
},
"challenges": [
{
"id": "111",
"title": "Example Challenge"
}
],
"music": {
"id": "222",
"title": "Example Music",
"authorName": "Example Artist"
},
"stats": {
"playCount": 10000,
"likeCount": 500,
"commentCount": 50,
"shareCount": 10
},
"textLanguage": "en",
"video": {
"duration": 30,
"height": 1080,
"width": 1920,
"url": "https://example.com/video.mp4"
}
}
  • id: The unique ID of the video.
  • url: The URL to the TikTok video.
  • createTime: The creation timestamp of the video.
  • desc: The description of the video.
  • autor: Information about the video author.
  • authorStats: Statistics about the author, such as follower count and total likes.
  • challenges: A list of challenges associated with the video.
  • music: Information about the music used in the video.
  • stats: Statistics about the video, such as play count and like count.
  • textLanguage: The language of the video's text.
  • video: Details about the video, such as duration and resolution.

3. Running the Actor

  1. Deploy the Actor on the Apify platform.
  2. Provide the input JSON in the Actor's input configuration.
  3. Run the Actor to scrape data.
  4. The results will be available in the Actor's dataset.

4. Example Use Case

To scrape TikTok videos with the keyword "candle":

  1. Set the input as:
    {
    "keyword": "candle",
    "size": 5,
    "regionCode": "US"
    }
  2. Run the Actor.
  3. Retrieve the output dataset containing the video details.

Notes

  • This Actor uses TikTok's public web interface to fetch data.
  • Ensure that the input parameters are valid and correspond to existing TikTok content.
  • The Actor is optimized for performance but may be subject to rate limits or restrictions imposed by TikTok.