Tiktok Hashtag Scraper

3 days trial then $30.00/month - No credit card required now

Tiktok Hashtag Scraper

Tiktok Hashtag Scraper

epctex/tiktok-hashtag-scraper

3 days trial then $30.00/month - No credit card required now

Experience the power of our state-of-the-art TikTok scraper, meticulously designed to fetch videos, hashtags, shares, followers, hearts, names, posts, URLs, and music data. Obtain comprehensive insights with ease, and choose your preferred data format: be it HTML, JSON, CSV, Excel, or XML.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

from apify_client import ApifyClient

# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "search": [
        "anime",
        "tiktok",
    ],
    "startUrls": [
        "https://www.tiktok.com/search?q=%23music&t=1670685477846",
        "https://www.tiktok.com/search?q=%23dance&t=1670685484412",
        "https://www.tiktok.com/search?q=%23challenge&t=1670685494590",
    ],
    "maxItems": 10,
    "endPage": 1,
    "extendOutputFunction": "($) => { return {} }",
    "customMapFunction": "(object) => { return {...object} }",
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("epctex/tiktok-hashtag-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
Developer
Maintained by Community
Actor stats
  • 131 users
  • 864 runs
  • Modified about 21 hours ago

You might also like these Actors