SDKs
JavaScript SDK
The InsightStream JavaScript SDK provides a powerful set of tools for building video experiences in the browser and Node.js.
Installation
Terminal
npm install @insightstream/js
Initialization
import Insight from '@insightstream/js';
// Initialize with your API key
const is = new Insight({ apiKey: 'sk_live_...' });
Usage Examples
Upload a Video
const video = await is.videos.create({
file: document.getElementById('video-input').files[0],
title: 'My New Video',
metadata: { userId: 'user_123' }
});
Get Video Status
const status = await is.videos.retrieve('vid_38402122');
// status.status will be 'processing', 'ready', or 'error'
Updated on Dec 28, 2025
Was this page helpful?