v1.0.0 • Production Ready

Upload videos to YouTube
with a single API call

The OKVIR Uploader SDK provides a powerful, type-safe interface for uploading videos to YouTube. OAuth2 authentication, resumable uploads, and real-time progress tracking built-in.

Built for developers

Everything you need to integrate YouTube uploads into your application

🔐

OAuth2 Authentication

Secure Google OAuth2 flow with automatic token refresh and encrypted credential storage.

📤

Resumable Uploads

Upload files up to 256GB with automatic retry and resume on network failures.

Real-time Progress

WebSocket-based progress tracking for live upload status in your UI.

🎯

Type-safe SDK

Full TypeScript support with auto-generated types from OpenAPI spec.

📊

Upload History

Track all uploads with filtering, pagination, and detailed status information.

🛡️

Rate Limiting

Built-in rate limiting to prevent API abuse and ensure fair usage.

Get started in minutes

Install the SDK and upload your first video

// Install: npm install @ouploader/sdk

import { OKVIR Uploader } from '@ouploader/sdk';

const client = new OKVIR Uploader({
  baseUrl: 'https://api.uploader.example.com',
  accessToken: 'your-access-token'
});

// Upload a video
const upload = await client.uploads.create({
  title: 'My Awesome Video',
  description: 'Video description here',
  privacyStatus: 'private',
  file: videoFile,
  onProgress: (progress) => {
    console.log(`Upload: ${progress.percentage}%`);
  }
});

console.log('Video ID:', upload.youtubeVideoId);

REST API Endpoints

Complete API reference for all available endpoints

POST /v1/auth/login Initiate OAuth2 login flow
GET /v1/auth/me Get current user info
GET /v1/channels List connected YouTube channels
POST /v1/uploads Create new video upload
GET /v1/uploads/{id} Get upload status and details
PUT /v1/uploads/{id} Update video metadata
DELETE /v1/uploads/{id} Cancel or delete upload

Ready to start building?

Explore the full API documentation with interactive examples

Open API Documentation