How to track YouTube posts via the REST API
Step-by-step guide for tracking YouTube posts via the REST API.
Track via the API — YouTube
export INFLUTICS_API_KEY=sk_live_...- 1
Get your API key
Sign in to your Influtics dashboard, navigate to Settings → API keys, and create a new key.
bashexport INFLUTICS_API_KEY=sk_live_... - 2
Track a YouTube video
POST the YouTube URL to the /v1/videos/track endpoint. Supports both youtube.com and youtu.be short links.
bashcurl -X POST https://api.influtics.com/v1/videos/track \ -H "Authorization: Bearer $INFLUTICS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"videos":[{"url":"https://www.youtube.com/watch?v=abc123"}]}' - 3
Fetch analytics
GET /v1/videos/by-external-id/{external_video_id} to retrieve views, likes, comments, and watch time. The response also includes the full stats history for the video, not just the latest snapshot. Stats refresh every 24 hours, and a custom refresh schedule is available on request.
bashcurl https://api.influtics.com/v1/videos/by-external-id/{external_video_id} \ -H "Authorization: Bearer $INFLUTICS_API_KEY"
Also for this platform
Accounts
Ready to Automate Your Social Media Analytics?
Join thousands of creators who trust our platform for real-time metrics tracking
100K+
Videos Tracked
50M+
Data Points Analyzed
99.9%
Uptime