mkhossainx/Terabox-Downloader-API — reverse-engineered prompt
Reverse engineered prompt
Build me a simple Cloudflare Worker API that turns a Terabox or Dubox share link into something I can actually use on a website. I want a main POST endpoint that takes a JSON body with the shared link and returns the file name, file size, size in bytes, thumbnail, the real download link, and a proxy URL on my own domain.
I also want a /proxy route that fetches and streams the file through the Worker so it works for direct playback or download without CORS issues. It should support range requests so videos can seek properly and play inside a normal video tag.
Please keep the Terabox cookie in a secret or environment variable instead of hardcoding it, and add sensible error responses for invalid links, failed token extraction, expired cookies, or blocked requests. Keep it lightweight, fast, and easy to deploy on Cloudflare Workers. If anything is unclear, look up the current Cloudflare Worker docs and Terabox behavior online.
Want more depth? Deep Reverse