Documentation
Introduction
Welcome to the TubeRaker API documentation. Our REST API provides comprehensive access to video analytics, optimization recommendations, keyword research, and trending data across multiple video platforms.
This documentation will help you integrate TubeRaker's powerful features into your applications, whether you're building creator tools, analytics dashboards, or content management systems.
Analytics API
Access comprehensive video performance metrics, audience insights, and engagement data.
Learn More âOptimization API
Get AI-powered recommendations for titles, descriptions, tags, and thumbnails.
Learn More âKeywords API
Research trending keywords, analyze competition, and discover content opportunities.
Learn More âTrends API
Access real-time trending topics, viral content patterns, and platform insights.
Learn More âQuick Start
Get up and running with the TubeRaker API in just a few steps. This guide will walk you through authentication, making your first API call, and handling responses.
1 Get Your API Key
Sign up for a TubeRaker account and navigate to the API section in your dashboard to generate your API key.
2 Make Your First Request
Use your API key to authenticate requests. Here's a simple example to get video analytics:
curl -X GET "https://api.tuberaker.com/v1/analytics/video/dQw4w9WgXcQ" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
3 Handle the Response
All API responses are returned in JSON format with consistent structure:
{
"success": true,
"data": {
"video_id": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up",
"views": 1234567890,
"likes": 12345678,
"engagement_rate": 0.85,
"optimization_score": 92
},
"meta": {
"timestamp": "2025-01-15T10:30:00Z",
"rate_limit_remaining": 99
}
}
Authentication
TubeRaker API uses Bearer token authentication. Include your API key in the Authorization header of every request.
Authentication Header
Authorization: Bearer YOUR_API_KEY
- ⢠Store API keys securely using environment variables
- ⢠Never commit API keys to version control
- ⢠Rotate API keys regularly
- ⢠Use different API keys for different environments
Analytics API
Access comprehensive analytics for videos, channels, and content performance across multiple platforms.
Get Video Analytics
/v1/analytics/video/{video_id}
Retrieve detailed analytics for a specific video including views, engagement, audience retention, and optimization recommendations.
Parameters
Parameter | Type | Description |
---|---|---|
video_id |
string | YouTube video ID or URL |
timeframe |
string | Optional. 7d, 30d, 90d (default: 30d) |
include_predictions |
boolean | Include growth predictions (default: false) |
Example Request
curl -X GET "https://api.tuberaker.com/v1/analytics/video/dQw4w9WgXcQ?timeframe=30d&include_predictions=true" \
-H "Authorization: Bearer YOUR_API_KEY"
Get Channel Analytics
/v1/analytics/channel/{channel_id}
Get comprehensive channel analytics including subscriber growth, top-performing videos, and audience insights.
Example Response
{
"success": true,
"data": {
"channel_id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
"subscriber_count": 1500000,
"total_views": 500000000,
"video_count": 250,
"engagement_rate": 0.078,
"growth_rate": 0.15,
"top_videos": [
{
"video_id": "dQw4w9WgXcQ",
"title": "Never Gonna Give You Up",
"views": 1234567890,
"performance_score": 95
}
]
}
}
More Documentation Coming Soon
We're continuously expanding our documentation. Check back soon for more detailed guides on Optimization API, Keywords API, SDKs, and advanced integration examples.