Complete API reference for StreamCloud video hosting platform
All API requests require authentication using an API key. Include your API key in the request header:
Authorization: Bearer YOUR_API_KEY
Get your API key from your dashboard after logging in.
Upload a video file to StreamCloud
Content-Type: multipart/form-data
file: (binary)
title: "My Video"
description: "Video description"
{
"success": true,
"video_id": "abc123xyz",
"embed_url": "https://streamcloud.com/v/abc123xyz",
"stream_url": "https://streamcloud.com/v/abc123xyz.mp4"
}
Get information about a specific video
{
"video_id": "abc123xyz",
"title": "My Video",
"duration": 3600,
"size": 1073741824,
"views": 1234,
"status": "active",
"created_at": "2024-01-01T00:00:00Z"
}
Stream video content with CDN delivery
This endpoint supports HTTP range requests for seeking and resuming playback.
Range: bytes=0-1048575
List all your videos
page - Page number (default: 1)limit - Results per page (default: 20)sort - Sort by: views, date, titleDelete a video
{
"success": true,
"message": "Video deleted successfully"
}
API requests are limited to:
Rate limit headers are included in all responses:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1640995200
| Code | Description |
|---|---|
400 |
Bad Request - Invalid parameters |
401 |
Unauthorized - Invalid API key |
404 |
Not Found - Video doesn't exist |
429 |
Too Many Requests - Rate limit exceeded |
500 |
Internal Server Error |
Official SDKs available for:
composer require streamcloud/php-sdkpip install streamcloudnpm install streamcloud-sdkgem install streamcloud