{"name":"TubeGrow API","version":"1.0.0","docs":"/docs","endpoints":{"auth":{"login":"/auth/login","callback":"/auth/callback","status":"/auth/status","logout":"/auth/logout"},"analytics":{"channel_stats":"/api/channel/stats","recent_videos":"/api/videos/recent","video_details":"/api/videos/{video_id}","agent_query":"/api/agent/query"},"seo":{"analyze_video":"/api/seo/analyze/{video_id}","audit_channel":"/api/seo/audit","research_keywords":"/api/seo/research","generate_metadata":"/api/seo/generate","videos_for_optimization":"/api/seo/videos"},"analysis":{"patterns":"/api/analysis/patterns - Data-driven SEO patterns from YOUR videos","top_videos":"/api/analysis/top-videos - Your best performing videos","compare":"/api/analysis/compare/{video_id} - Compare video to your top performers","deep":"/api/analysis/deep - ASYNC deep analysis (submit job, poll for results)","deep_status":"/api/analysis/deep/status/{job_id} - Check deep analysis job status"},"clips":{"generate":"/api/clips/generate - Generate viral short clip suggestions","render":"/api/clips/render - Render clip to MP4 with captions (async)","status":"/api/clips/{job_id}/status - Check render progress","download":"/api/clips/{job_id}/download - Download rendered clip"},"youtube":{"channel":"/api/youtube/channel - Get connected YouTube channel info","videos":"/api/youtube/videos - List user's own videos","video_details":"/api/youtube/videos/{video_id} - Get video details","verify_ownership":"/api/youtube/videos/{video_id}/verify-ownership - Verify user owns video","prepare_download":"/api/youtube/videos/{video_id}/prepare-download - Download user's video"},"billing":{"plans":"/api/billing/plans - Get available subscription plans","subscription":"/api/billing/subscription - Get current subscription status","checkout":"/api/billing/checkout - Create Stripe checkout session","portal":"/api/billing/portal - Create Stripe customer portal session","usage":"/api/billing/usage - Get usage statistics","downgrade":"/api/billing/downgrade - Downgrade to free plan","webhook":"/api/billing/webhook - Stripe webhook handler"},"admin":{"status":"/api/admin/status - Check admin services status","seo_rankings":"/api/admin/seo/rankings - Get SEO rankings summary","seo_domains":"/api/admin/seo/domains - Manage tracked domains","seo_keywords":"/api/admin/seo/keywords - Manage tracked keywords","api_costs_summary":"/api/admin/api-costs/summary - Get API cost summary","api_costs_breakdown":"/api/admin/api-costs/breakdown - Get cost breakdown by day/agent/model","api_costs_recent":"/api/admin/api-costs/recent - Get recent API calls","api_costs_by_user":"/api/admin/api-costs/by-user - Get costs by user"},"user":{"profile":"/api/user/profile - Get/update user profile","settings":"/api/user/settings - Get/update account settings","channels":"/api/user/channels - Get connected YouTube channels","export_data":"/api/user/export-data - Request GDPR data export","request_deletion":"/api/user/request-deletion - Request account deletion","cancel_deletion":"/api/user/cancel-deletion - Cancel deletion request"},"audience":{"demographics":"/api/audience/demographics - Age/gender breakdown","geography":"/api/audience/geography - Views by country","devices":"/api/audience/devices - Device type breakdown (mobile, desktop, TV)","summary":"/api/audience/summary - Combined audience intelligence data"},"traffic":{"sources":"/api/traffic/sources - Where views come from (search, suggested, browse)","subscribers":"/api/traffic/subscribers - Subscriber gain/loss by source","playback_locations":"/api/traffic/playback-locations - Where videos are watched","summary":"/api/traffic/summary - Combined traffic analytics"},"revenue":{"overview":"/api/revenue/overview - Revenue and monetization data","by_country":"/api/revenue/by-country - Revenue breakdown by country with CPM","daily":"/api/revenue/daily - Day-by-day revenue breakdown","status":"/api/revenue/status - Check if monetization is available"},"comments":{"analyze":"/api/comments/analyze - AI-powered comment analysis across channel","analyze_video":"/api/comments/analyze/{video_id} - Analyze comments for specific video","sentiment_trend":"/api/comments/sentiment-trend - Sentiment trends across videos","questions":"/api/comments/questions - Extract questions needing responses","content_ideas":"/api/comments/content-ideas - Mine content ideas from comments","notable_commenters":"/api/comments/notable-commenters - Find creators who commented"}}}