TubeAnalytics API

Build custom integrations and applications with our powerful API

REST API

Access all your analytics data through our RESTful API. Simple, reliable, and well-documented.

Available on Pro plans

Webhooks

Receive real-time notifications when new data is available or when specific events occur.

Available on Pro plans

GraphQL API

Query exactly the data you need with our GraphQL API. No over-fetching, no under-fetching.

Coming Soon

Enterprise SDKs

Official SDKs for Python, JavaScript, and more. Secure and enterprise-ready.

Coming Soon

Getting Started

curl -X GET https://api.tubeanalytics.net/v1/channels

Get a list of all connected channels

curl -X GET https://api.tubeanalytics.net/v1/analytics?channel_id=xxx&range=30d

Get analytics for a specific channel

Available Endpoints

Endpoint
Method
Description
/v1/channels
GET
List connected channels
/v1/channels/:id
GET
Get channel details
/v1/analytics
GET
Get channel analytics
/v1/videos
GET
List channel videos
/v1/audience
GET
Get audience insights
/v1/competitors
GET
Get competitor data

Authentication

All TubeAnalytics API requests must include a valid API key in the Authorizationheader using the Bearer token scheme. API keys are tied to your account and carry your plan's permissions — keep your key secret and never expose it in client-side code or commit it to version control.

To generate or rotate an API key, go to Dashboard → Settings → API Keys. Pro and Agency subscribers can create multiple keys and label them per integration.

curl -X GET https://api.tubeanalytics.net/v1/channels \
  -H "Authorization: Bearer YOUR_API_KEY"

Authenticated request to list connected channels

Rate Limits

Each API key is subject to a per-hour request limit based on your plan. If you exceed your limit, the API returns a 429 Too Many Requests response with a Retry-After header indicating how many seconds to wait before retrying. We recommend implementing exponential backoff in any production integration.

Plan
Hourly Limit
Free
100 requests / hour
Pro
1,000 requests / hour
Agency
5,000 requests / hour

Error Codes

The TubeAnalytics API uses standard HTTP status codes. All error responses include a JSON body with error.code, error.message, and an optional error.details object for additional context.

Code
Status
Meaning
400
Bad Request
Invalid or missing request parameters
401
Unauthorized
Missing or invalid API key
403
Forbidden
Endpoint not included in your plan
404
Not Found
Resource does not exist
429
Too Many Requests
Rate limit exceeded — check Retry-After header
500
Server Error
Unexpected error — retry with exponential backoff

What You Can Build

Custom Analytics Dashboards

Pull your channel metrics into your own tools — embed charts in internal portals, client reports, or business intelligence platforms like Metabase or Grafana.

Zapier & Make Automations

Trigger workflows when a video hits a view milestone, a new video is published, or a competitor channel posts. Connect TubeAnalytics data to 5,000+ apps without writing backend code.

Slack Performance Bots

Post daily or weekly performance digests to your team's Slack channel automatically. Stay aligned on channel growth without logging into another dashboard.

Google Sheets & Notion Reports

Sync your analytics data into spreadsheets or Notion databases for custom reporting, goal tracking, or sharing with clients and collaborators.

Get API Access

API access is available on Professional and Enterprise plans. Sign up today to get your API key.