Youtube Video Streamer
Pricing
$10.00/month + usage
Youtube Video Streamer
Fast, Cheap and Unlimited get any video stream url high quality from Youtube.
Pricing
$10.00/month + usage
Rating
0.0
(0)
Developer

ApiLabs
Actor stats
0
Bookmarked
3
Total users
2
Monthly active users
17 days ago
Last modified
Categories
Share
YouTube Video Streamer API
Overview
The YouTube Video Streamer API provides a powerful and flexible solution for extracting streamble urls from youtube. This all-in-one downloader is perfect for developers looking to integrate seamless media downloading capabilities into their applications.
Features
- Streaming Video url: Fetch and store high-quality videos from YouTube.
Important Notes
-
Proxy Usage: If you are using a proxy, please ensure that it is correctly configured and you are using a reliable proxy group. This will help avoid IP blocking by YouTube.
-
QuickTime Note for Mac Users: If you are using macOS, the downloaded video may not work properly with QuickTime Player due to codec issues. In such cases, use a different media player like VLC, or convert the file format using a tool like FFmpeg.
-
Video and Link Storage: Every time the API runs:
- A video link is stored in one dataset permanent.
- A video link is also stored in one temporal dataset
Input Parameters
The API accepts the following input parameters:
- url: The URL of the YouTube video or audio content to download.
- proxy: (Optional) The proxy URL to be used for the download.
Note: Using a proxy is recommended to avoid being blocked by Youtube. However, it may increase download times. If you experience any issues, consider changing your proxy.
Output
Upon a successful request, the API stores an item in the dataset the following format:
{"download_link": "your_streaming_link_here","status_code": 200}
Usage Example Python
The following example shows an full example of usage from running an actor to downloading the video on your device.
import requestsimport mimetypesfrom apify_client import ApifyClient# Initialize the ApifyClient with an API token# (You can generate your own Apify API token for authentication)apify_client = ApifyClient('your_apify_api_token')# Define the input for the actor that downloads TikTok videosactor_input={"proxy": {"useApifyProxy": True, # Enable the use of Apify Proxy"apifyProxyGroups": ["RESIDENTIAL"], # Specify the proxy group to use (e.g., residential)"apifyProxyCountry": "HR" # Set the country code for the proxy (e.g., HR for Croatia)},"url": "TikTok_url" # The TikTok URL to download}# Start the actor on Apify and wait for it to finish# (Replace 'demolitore/my-actor' with the actor you want to use)actor_call = apify_client.actor('apilabs/youtube-video-downloader').call(run_input=actor_input)# Retrieve the dataset associated with the TikTok downloadermy_dataset_client = apify_client.dataset('your_username/YouTube-Video-Downloader')# Fetch the most recent dataset entry, which contains the download linkl = my_dataset_client.list_items(limit=1, desc=True) #Get the only last element insertedurl = l.items[0]['download_link'] # Extract the download link from the datasetprint(url)print(f"File downloaded successfully as {filename}.")else:# Print an error message if the download failsprint(f"Failed to download file. Status code: {response.status_code}")