Browser

Browser-specific version of btch-downloader.

Members

(static) aio

All-In-One (AIO) downloader (Browser version)

(static) capcut

CapCut template downloader (Browser version)

(static) cocofun

Cocofun content downloader (Browser version)

(static) douyin

Douyin downloader (Browser version)

(static) fbdown

Facebook video downloader (Browser version)

(static) gdrive

Google Drive file downloader (Browser version)

(static) igdl

Instagram content downloader (Browser version)

(static) kuaishou

Kuaishou video downloader (Browser version)

(static) mediafire

MediaFire file downloader (Browser version)

(static) pinterest

Pinterest content downloader or search (Browser version)

(static) snackvideo

SnackVideo content downloader (Browser version)

(static) soundcloud

SoundCloud track downloader (Browser version)

(static) spotify

Spotify track downloader (Browser version)

(static) threads

Threads (by Instagram) content downloader (Browser version)

(static) ttdl

TikTok video downloader (Browser version)

(static) twitter

Twitter (X) video downloader (Browser version)

(static) xiaohongshu

Xiaohongshu (Little Red Book) downloader (Browser version)

(static) youtube

YouTube video and audio downloader (Browser version)

(static) yts

YouTube search engine (Browser version)

Methods

(async, static) aio(url) → {Promise.<AioResponse>}

All-In-One (AIO) downloader for various social platforms.

Parameters:
NameTypeDescription
urlstring

The media URL to download (e.g., https://vt.tiktok.com/ZSkGPK9Kj/)

Deprecated
  • All-In-One support is no longer actively maintained.
Throws:

If the URL is invalid or the request fails.

Type
Error
Returns:

A JSON object containing media info.

Type: 
Promise.<AioResponse>
Example
btch.aio('https://vt.tiktok.com/ZSkGPK9Kj/').then(data => console.log(data));

(async, static) capcut(url) → {Promise.<CapCutResponse>}

CapCut template downloader

Parameters:
NameTypeDescription
urlstring

The CapCut template URL (e.g., https://www.capcut.com/template-detail/7299286607478181121)

Throws:

If the URL is invalid or the request fails.

Type
Error
Returns:

A JSON object containing template video links and metadata.

Type: 
Promise.<CapCutResponse>
Example
btch.capcut('https://www.capcut.com/template-detail/7299286607478181121').then(data => console.log(data));

(async, static) cocofun(url) → {Promise.<CocofunResponse>}

Cocofun content downloader

Parameters:
NameTypeDescription
urlstring

The Cocofun post URL (e.g., https://www.icocofun.com/share/post/379250110809)

Throws:

If the URL is invalid or the request fails.

Type
Error
Returns:

A JSON object containing media links and post metadata.

Type: 
Promise.<CocofunResponse>
Example
btch.cocofun('https://www.icocofun.com/share/post/379250110809').then(data => console.log(data));

(async, static) douyin(url) → {Promise.<DouyinResponse>}

Douyin (抖音) downloader for videos and images

Parameters:
NameTypeDescription
urlstring

The Douyin post URL (e.g., https://v.douyin.com/ikq8axJ/)

Throws:

If the URL is invalid or the request fails.

Type
Error
Returns:

A JSON object containing media links and post metadata.

Type: 
Promise.<DouyinResponse>
Example
btch.douyin('https://v.douyin.com/ikq8axJ/').then(data => console.log(data));

(async, static) fbdown(url) → {Promise.<FacebookResponse>}

Facebook video downloader

Parameters:
NameTypeDescription
urlstring

The Facebook video URL (e.g., https://www.facebook.com/watch/?v=1393572814172251)

Throws:

If the URL is invalid or the media is not accessible.

Type
Error
Returns:

A JSON object containing Normal and HD quality download links.

Type: 
Promise.<FacebookResponse>
Example
btch.fbdown('https://www.facebook.com/watch/?v=1393572814172251').then(data => console.log(data));

(async, static) gdrive(url) → {Promise.<GoogleDriveResponse>}

Google Drive file downloader

Parameters:
NameTypeDescription
urlstring

The Google Drive file URL (e.g., https://drive.google.com/file/d/1thDYWcS5p5FFhzTpTev7RUv0VFnNQyZ4/view)

Throws:

If the URL is invalid or the file is not public.

Type
Error
Returns:

A JSON object containing file metadata and download link.

Type: 
Promise.<GoogleDriveResponse>
Example
btch.gdrive('https://drive.google.com/file/d/1thDYWcS5p5FFhzTpTev7RUv0VFnNQyZ4/view').then(data => console.log(data));

(async, static) igdl(url) → {Promise.<InstagramResponse>}

Instagram content downloader (Reels, Posts, TV, Stories)

Parameters:
NameTypeDescription
urlstring

The Instagram media URL (e.g., https://www.instagram.com/reel/DKPtUL_S9Nh/?igsh=MTE1dTVkb2E4NTFmcw==)

Throws:

If the URL is invalid or the media is not accessible.

Type
Error
Returns:

A JSON object containing an array of media items (links and thumbnails).

Type: 
Promise.<InstagramResponse>
Example
btch.igdl('https://www.instagram.com/reel/DKPtUL_S9Nh/?igsh=MTE1dTVkb2E4NTFmcw==').then(data => console.log(data));

(async, static) kuaishou(url) → {Promise.<KuaishouResponse>}

Kuaishou (快手) video downloader

Parameters:
NameTypeDescription
urlstring

The Kuaishou video URL (e.g., https://v.kuaishou.com/JT195ZHT)

Throws:

If the URL is invalid or the request fails.

Type
Error
Returns:

A JSON object containing video metadata and download link.

Type: 
Promise.<KuaishouResponse>
Example
btch.kuaishou('https://v.kuaishou.com/JT195ZHT').then(data => console.log(data));

(async, static) mediafire(url) → {Promise.<MediaFireResponse>}

MediaFire file downloader

Parameters:
NameTypeDescription
urlstring

The MediaFire file URL (e.g., https://www.mediafire.com/file/941xczxhn27qbby/GBWA_V12.25FF-By.SamMods-.apk/file)

Deprecated
  • MediaFire support is no longer actively maintained.
Throws:

If the URL is invalid or the request fails.

Type
Error
Returns:

A JSON object containing file metadata and download link.

Type: 
Promise.<MediaFireResponse>
Example
btch.mediafire('https://www.mediafire.com/file/941xczxhn27qbby/GBWA_V12.25FF-By.SamMods-.apk/file').then(data => console.log(data));

(async, static) pinterest(query) → {Promise.<PinterestResponse>}

Pinterest content downloader or search

Parameters:
NameTypeDescription
querystring

The Pinterest pin URL or a search query (e.g., https://pin.it/4CVodSq)

Throws:

If the input is invalid or the request fails.

Type
Error
Returns:

A JSON object containing pin media or search results.

Type: 
Promise.<PinterestResponse>
Example
btch.pinterest('https://pin.it/4CVodSq').then(data => console.log(data));

(async, static) snackvideo(url) → {Promise.<SnackVideoResponse>}

SnackVideo content downloader

Parameters:
NameTypeDescription
urlstring

The SnackVideo post URL (e.g., https://s.snackvideo.com/p/j9jKr9dR)

Throws:

If the URL is invalid or the content is not accessible.

Type
Error
Returns:

A JSON object containing video links and metadata.

Type: 
Promise.<SnackVideoResponse>
Example
btch.snackvideo('https://s.snackvideo.com/p/j9jKr9dR').then(data => console.log(data));

(async, static) soundcloud(url) → {Promise.<SoundCloudResponse>}

SoundCloud track downloader

Parameters:
NameTypeDescription
urlstring

The SoundCloud track URL (e.g., https://soundcloud.com/issabella-marchelina/sisa-rasa-mahalini-official-audio)

Throws:

If the URL is invalid or the media is not accessible.

Type
Error
Returns:

A JSON object containing track info and download links.

Type: 
Promise.<SoundCloudResponse>
Example
btch.soundcloud('https://soundcloud.com/issabella-marchelina/sisa-rasa-mahalini-official-audio').then(data => console.log(data));

(async, static) spotify(url) → {Promise.<SpotifyResponse>}

Spotify track downloader

Parameters:
NameTypeDescription
urlstring

The Spotify track URL (e.g., https://open.spotify.com/track/3zakx7RAwdkUQlOoQ7SJRt)

Throws:

If the URL is invalid or the request fails.

Type
Error
Returns:

A JSON object containing track metadata and download links.

Type: 
Promise.<SpotifyResponse>
Example
btch.spotify('https://open.spotify.com/track/3zakx7RAwdkUQlOoQ7SJRt').then(data => console.log(data));

(async, static) threads(url) → {Promise.<ThreadsResponse>}

Threads (by Instagram) content downloader

Parameters:
NameTypeDescription
urlstring

The Threads post URL (e.g., https://www.threads.net/@cindyyuvia/post/C_Nqx3khgkI/)

Throws:

If the URL is invalid or the content is not accessible.

Type
Error
Returns:

A JSON object containing media links and post metadata.

Type: 
Promise.<ThreadsResponse>
Example
btch.threads('https://www.threads.net/@cindyyuvia/post/C_Nqx3khgkI/').then(data => console.log(data));

(async, static) ttdl(url) → {Promise.<TikTokResponse>}

TikTok video downloader

Parameters:
NameTypeDescription
urlstring

The TikTok video URL (e.g., https://www.tiktok.com/@omagadsus/video/7025456384175017243)

Throws:

If the URL is invalid or the request fails.

Type
Error
Returns:

A JSON object containing video info, thumbnails, and download links.

Type: 
Promise.<TikTokResponse>
Example
btch.ttdl('https://www.tiktok.com/@omagadsus/video/7025456384175017243').then(data => console.log(data));

(async, static) twitter(url) → {Promise.<TwitterResponse>}

Twitter (X) video downloader

Parameters:
NameTypeDescription
urlstring

The Twitter/X video URL (e.g., https://twitter.com/gofoodindonesia/status/1229369819511709697)

Throws:

If the URL is invalid or the media is not accessible.

Type
Error
Returns:

A JSON object containing the video title and download link.

Type: 
Promise.<TwitterResponse>
Example
btch.twitter('https://twitter.com/gofoodindonesia/status/1229369819511709697').then(data => console.log(data));

(async, static) xiaohongshu(url) → {Promise.<XiaohongshuResponse>}

Xiaohongshu (Little Red Book / 小红书) downloader

Parameters:
NameTypeDescription
urlstring

The Xiaohongshu post URL (e.g., http://xhslink.com/o/21DKXV988zp)

Throws:

If the URL is invalid or the content is not accessible.

Type
Error
Returns:

A JSON object containing image/video links and post metadata.

Type: 
Promise.<XiaohongshuResponse>
Example
btch.xiaohongshu('http://xhslink.com/o/21DKXV988zp').then(data => console.log(data));

(async, static) youtube(url) → {Promise.<YouTubeResponse>}

YouTube video and audio downloader

Parameters:
NameTypeDescription
urlstring

The YouTube video URL (e.g., https://youtu.be/C8mJ8943X80)

Throws:

If the URL is invalid or the request fails.

Type
Error
Returns:

A JSON object containing video/audio download links, title, and thumbnail.

Type: 
Promise.<YouTubeResponse>
Example
btch.youtube('https://youtu.be/C8mJ8943X80').then(data => console.log(data));

(async, static) yts(query) → {Promise.<YtsResponse>}

YouTube search engine

Parameters:
NameTypeDescription
querystring

The search query for YouTube videos (e.g., Somewhere Only We Know)

Throws:

If the request fails.

Type
Error
Returns:

A JSON object containing a list of search results.

Type: 
Promise.<YtsResponse>
Example
btch.yts('Somewhere Only We Know').then(data => console.log(data));