api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes.
These are code samples for working with api.video in Python without an SDK. Grab a sample that matches your use case and you can use it as-needed. These samples use the requests library, which you may need to install if you haven't already.
- List All Videos w Pagination
- List All Videos up to 100
- List Videos By liveStreamId
- Pick a Thumbnail
- Upload a Thumbnail
- Upload a Video From Your Computer (works for files under 128MB)
- Upload a Large Video (works for files 128MB and up)
- Upload a Video by URL
- Delegated Uploads
- Delegated Uploads for Files That are 128MB and up
- List Delegate Tokens, Show a Single Token, Delete a Token
- Choose a Thumbnail with api.video's Pick a Thumbnail Endpoint
- Create a Thumbnail For Your Video with Python and FFMPEG
- How to Add a Thumbnail to Your Live Stream
- Upload a Big Video File Using Python
- Upload a Video From Your Computer with the api.video API (Python)
- Upload a Video with the api.video API Using a Public URL
- api.video Analytics: Add Markers Representing Viewer Density Per City to a Map with Observable
- api.video Analytics: Build a Choropleth Map (and Find Out What One Is)
- api.video Analytics: Create a Pie Chart Showing What Operating System is Most Popular to View
- Using Analytics to Analyze Where to Edit a Video