1. Core Endpoints for Hashtag, Audio & Regional Trend Tracking
TikTokAPI.io exposes five dedicated endpoints covering topic challenges, sound tracks, and regional For You feeds:
| Endpoint | Input Parameter | Key Metrics Returned | Credits Cost |
|---|---|---|---|
| GET /v1/challenge/info | challenge_name (e.g. tiktokmademebuyit) | id, cha_name, view_count, user_count, desc | 10 Credits / call |
| GET /v1/challenge/posts | cid (numeric challenge ID), count, cursor | 30 tagged videos/call with engagement & MP4 URLs | 2 Credits / video |
| GET /v1/music/info | url (music ID or URL) | id, title, author, play (MP3), user_count, duration | 10 Credits / call |
| GET /v1/music/posts | music_id, count, cursor | 30 videos using the sound track per call | 2 Credits / video |
| GET /v1/feed/list | region (US, GB, JP, DE...), count | Real-time regional trending videos | 2 Credits / video |
2. Python Script: Resolve Hashtag ID & Track Sound Velocity
The script below resolves a hashtag to its challenge ID, fetches the top tagged videos, and inspects the most frequently used audio track.
Track Hashtag Views, Tagged Videos & Sound Usage in Python & Node.js
Chains GET /v1/challenge/info -> GET /v1/challenge/posts -> GET /v1/music/info.
# 1. Get hashtag view count & challenge ID
curl -s "https://api.tiktokapi.io/v1/challenge/info?challenge_name=tiktokmademebuyit" \
-H "x-api-key: tk_live_your_api_key" | jq '.data | {id, cha_name, view_count, user_count}'
# 2. Get sound usage velocity
curl -s "https://api.tiktokapi.io/v1/music/info?url=7231338505431288622" \
-H "x-api-key: tk_live_your_api_key" | jq '.data | {id, title, author, user_count}'Interactive Engineering Workbench · GET /v1/challenge/info
Verify real-time latency, pagination math & JSON schema
Frequently Asked Questions
- Do I need the numeric challenge_id before calling /v1/challenge/posts?
- Yes. Call GET /v1/challenge/info?challenge_name=yourhashtag once (10 Credits) to obtain data.id, then cache that numeric ID in your database and pass it as cid to GET /v1/challenge/posts for all future pagination.
- Does /v1/music/info return a playable MP3 link for the audio track?
- Yes. GET /v1/music/info returns data.play (direct MP3 audio stream), cover art, duration, artist metadata, and total video usage count (data.user_count).