dew-api
v1.0.4
Published
A powerful multi-platform media downloader supporting YouTube, TikTok, Pinterest, and more. Built for easy expansion and clean API usage.
Maintainers
Readme
📝 Table of Contents
🧐 About
dew-api is a versatile Node.js package designed to provide a simple interface for a variety of web-based tasks. Whether you need to search for YouTube videos, download media, or scrape the latest news from Sri Lankan websites, this library has you covered.
✨ Features
✔️ YouTube Search: Quickly find YouTube videos. ✔️ Media Downloads: Download YouTube videos as MP3 or MP4 in various qualities. ✔️ Google Drive: Generate direct download links for Google Drive files. ✔️ News Scraping: Fetch the latest articles from multiple Sri Lankan news sources. ✔️ Lightweight & Fast: Built to be efficient and scalable with zero bloat.
📦 Installation
npm install dew-apior with yarn:
yarn add dew-api🚀 Usage
- Import the downloader
const dewapi = require("dew-api");📤 Download Endpoits
| Source | Function |
|-----------------|---------------------------|
| MP3|await dewapi.download.youtube("https://www.youtube.", "mp3")|
| MP4|await dewapi.download.youtube("https://www.youtube.", "720")|
| Apk|await dewapi.download.apk("whatsapp")|
| Gdrive|await dewapi.download.gdrive("https://drive.google...")|
| Pinterest|await dewapi.download.pinterestdl("https://id.pinterest..")|
| RingTone|await dewapi.download.ringtone("sad")|
| TikTok|await dewapi.download.tiktok("https://vt.tiktok.com/ZSje1..")|
| Wallpaper|await dewapi.download.wallpaper("nature")|
| Xnxx|await dewapi.download.xnxx("https://www.xnxx.tv/video-1c4kmd16..")|
🎞️ Movie Endpoints
| Source | Function |
|-----------------|---------------------------|
| Baiscope|await dewapi.movie.baiscope('Madhuram')|
| BaiscopeDL|await dewapi.movie.baiscopedl("https://www.baiscope.lk/madhura..")|
| Cinesubz|await dewapi.movie.cinesubz("2025")|
| CinesubzDl|await dewapi.movie.cinesubzdl("https://cinesubz.lk/movies/maint.")|
| Pirate|await dewapi.movie.pirate('spider man')|
| PirateDl|await dewapi.movie.piratedl("https://pirate.lk/movies/kiss-of-t")|
| SinhalaSub|await dewapi.movie.sinhalasub("2025")|
| SinhalaSubDl|await dewapi.movie.sinesubdl("https://sinhalasub.lk/movies/si.")|
| Zoom|await dewapi.movie.zoom("troll")|
| ZoomDl|await dewapi.movie.zoomdl("https://zoom.lk/the-boss-baby-2017-sinha")|
🔍 Search Endpoints
| Source | Function |
|-----------------|---------------------------|
| Yts|await dewapi.search.yts("Never")|
| Img|dewapi.search.img("Hansa Dewmina");|
| LyriHub|await dewapi.search.lyrihub("mal kumariya")|
| Pinterest|await dewapi.search.pinterest("dew")|
| Sticker|await dewapi.search.sticker("dog")|
| Xhamster| await dewapi.search.xhamster("spider man")|
| Xnxxx|await dewapi.search.xnxx("spider man")|
📰 News Endpoints
| Source | Function |
|-----------------|---------------------------|
| BBC|await dewapi.news.bbc()|
| Dasathalanka|await dewapi.news.dasathalanka()|
| Derana|await dewapi.news.derana()|
| ITN|await dewapi.news.itn()|
| LankaDeepa|await dewapi.news.lankadeepa()|
| LNW|await dewapi.news.lnw()|
| Silumina|await dewapi.news.silumina()|
| Siyatha|await dewapi.news.siyatha()|
⚙️ Tools Endpoints
| Source | Function |
|-----------------|---------------------------|
| Github|await dewapi.tools.github("Hansa-Dewmina")|
| Npm|await dewapi.tools.npm("dew-api")|
| Styletext|await dewapi.tools.styletext("Hansa-Dewmina")|
🤖 AI Endpoints
| Source | Function |
|-----------------|---------------------------|
| Text2Img|await dewapi.ai.text2img("make this image realistic")|
📄 License
MIT License — Free to use in personal and commercial projects.
❤️ Author
