cURL
curl --request POST \ --url https://spideriq.ai/api/v1/media/videos/import \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "url": "<string>", "title": "<string>", "description": "<string>", "privacy": 123 } '
{ "success": true, "video_id": 123, "title": "Product Demo", "description": "Our product demonstration video", "watch_url": "https://videos.spideriq.ai/w/abc123xyz", "embed_url": "https://videos.spideriq.ai/videos/embed/abc123xyz", "channel_name": "client_cli_abc123", "privacy": 2, "state": "importing" }
Import a video to your client-specific PeerTube channel
1
2
3
curl -X POST "https://spideriq.ai/api/v1/media/videos/import" \ -H "Authorization: Bearer cli_abc123:sk_xxx:secret_xxx" \ -H "Content-Type: application/json" \ -d '{ "url": "https://youtube.com/watch?v=dQw4w9WgXcQ", "title": "Product Demo", "description": "Our product demonstration video", "privacy": 2 }'