• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
fucker

fucker

videodownloader

Public
Like
videodownloader
Home
Code
5
backend
2
frontend
1
shared
2
README.md
H
index.ts
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
backend
/
README.md
Code
/
backend
/
README.md
Search
5/17/2025
README.md

Video Downloader Backend

This directory contains the server-side code for the Video Downloader application.

Structure

  • index.ts - Main entry point and API routes
  • services/ - Service modules for different video platforms
    • youtube.ts - YouTube-specific download functionality
    • generic.ts - Generic video download functionality for other platforms

API Endpoints

GET /

Serves the main application HTML.

GET /frontend/* and /shared/*

Serves static files from the frontend and shared directories.

POST /api/info

Get information about a video before downloading.

Request Body:

{ "url": "https://www.youtube.com/watch?v=..." }

Response:

{ "title": "Video Title", "thumbnail": "https://...", "duration": 123, "formats": [ { "quality": "720p", "format_id": "22", "ext": "mp4", "resolution": "1280x720" }, ... ], "url": "https://www.youtube.com/watch?v=..." }

POST /api/download

Download a video.

Request Body:

{ "url": "https://www.youtube.com/watch?v=...", "quality": "720p" // Optional }

Response:

{ "success": true, "downloadUrl": "https://...", "title": "Video Title" }

Or in case of error:

{ "success": false, "error": "Error message" }

GET /api/health

Health check endpoint.

Response:

{ "status": "ok" }
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.