videodownloader
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
index.ts
https://fucker--39e80e4c32d711f0a171569c3dd06744.web.val.run
A straightforward web application that allows users to download videos from YouTube and other websites.
- Simple, clean interface
- Support for YouTube videos
- Support for other video platforms via third-party services
- Direct download links when available
- Alternative download options for all videos
- Enter the URL of the video you want to download
- Click the "Download" button
- Wait for the video to be processed
- Use either the "Download Video" button (if available) or the "Alternative Download" link
This application uses:
- A serverless function in Val Town
- YouTube's oEmbed API for video information
- Y2mate service for YouTube download links
- SaveFrom.net as a fallback for other websites
The application consists of a single file (index.ts
) that handles both the API endpoint and serves the HTML interface. When a user submits a video URL, the application:
- Determines if it's a YouTube URL or another platform
- For YouTube:
- Extracts the video ID
- Gets video information using YouTube's oEmbed API
- Attempts to get download links using Y2mate service
- Falls back to SaveFrom.net if needed
- For other platforms:
- Redirects to SaveFrom.net with the video URL
- Some websites actively prevent video downloading
- YouTube occasionally updates their systems which may require updates to this tool
- Download speeds depend on the third-party services used
This tool is for personal use only. Please respect copyright laws and the terms of service of the websites you download from.