Paragon123456/tiktok-creative-analyzer
0
TikTok Creative Analyzer (Wavemaker MY)
Automated backend that watches a TikTok video and returns a structured 8-section creative audit. Built for the Wavemaker Malaysia biddable team.
Pipeline
yt-dlpdownloads the TikTok (video + metadata)ffmpegextracts 5 frames + audio track- Groq Llama 4 Scout analyses the frames (vision)
- Groq Whisper-large-v3 transcribes the audio
- Groq Llama 3.3 70B synthesises the 8-section audit
Setup
- In Space Settings → Variables and secrets, add:
GROQ_API_KEY= your key from https://console.groq.com/keys- Space rebuilds automatically.
API
POST /analyze
{ "url": "https://www.tiktok.com/@user/video/123..." }Returns:
{
"metadata": { "title": "...", "view_count": 12345, ... },
"transcript": "...",
"visual_analysis": "Frame 1 (0.8s): ...",
"audit": {
"hook": "...",
"format": "...",
"key_message": "...",
"cta": "...",
"audio_strategy": "...",
"pacing": "...",
"why_it_performs": "...",
"applicability": "..."
}
}