downloaderjavascript228
Saveus.biz.id - AIO Video & Audio Downloader Scraper
Scraper pengunduh video & audio AIO (TikTok, YouTube, FB, dll) dari https://www.saveus.biz.id dengan progress SSE dan direct download link tanpa watermark.
Vamz Spectre12 Okt 2026185 baris kode
Jalankan via Terminal / CLI:
# 1. Download file script
curl -sL "https://code.vamxapi.my.id/snippet/raw/saveus-aio-downloader" -o saveus-aio-downloader.js
# 2. Jalankan script
node saveus-aio-downloader.js
Dependencies npm yang Dibutuhkan:
npm install Node.js v18+Panduan Penggunaan:
Panggil fungsi saveus(url, { type: 'video' }) untuk mengekstrak metadata dan link direct download.saveus-aio-downloader.js(185 lines)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
/**
* ========================================================
* Name: Saveus.biz.id - AIO Video & Audio Downloader Scraper
*
* Cara Download:
* curl -sL "https://code.vamxapi.my.id/snippet/raw/saveus-aio-downloader" -o saveus-aio-downloader.js
*
* Cara Eksekusi:
* node saveus-aio-downloader.js "https://www.tiktok.com/@scout2015/video/6718335390845095173"
*
* Author: Vamz Spectre
* Source: https://vamxapi.my.id
* ========================================================
*/
/**
* Unduh media dari saveus.biz.id
* @param {string} url - URL media (TikTok, YouTube, Facebook, dll)
* @param {object} [options] - Konfigurasi unduhan
* @param {"video" | "audio" | "slide"} [options.type="video"] - Tipe format media
* @param {string} [options.quality] - Filter format/kualitas spesifik (e.g. "hd_no_watermark", "no_watermark")
* @param {number} [options.bitrate=192] - Bitrate audio jika tipe audio
* @returns {Promise<object>} Detail informasi media dan link download siap pakai
*/
async function saveus(url, options = {}) {
if (!url) {
throw new Error("Parameter 'url' wajib disertakan.");
}
const defaultHeaders = {
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"Origin": "https://www.saveus.biz.id",
"Referer": "https://www.saveus.biz.id/",
"Accept": "application/json, text/plain, */*"
};
// 1. Analisis URL media
const analyzeRes = await fetch("https://www.saveus.biz.id/api/analyze", {
method: "POST",
headers: defaultHeaders,
body: JSON.stringify({ url })
});
if (!analyzeRes.ok) {
throw new Error(`Gagal menghubungi server saveus (HTTP ${analyzeRes.status})`);
}
const analyzeData = await analyzeRes.json();
if (!analyzeData.success || !analyzeData.data) {
throw new Error(analyzeData.error || "Gagal menganalisis konten dari URL ini.");
}
const media = analyzeData.data;
const targetType = options.type || "video";
// Pilih format media yang sesuai
let chosenFormat = null;
if (targetType === "audio") {
chosenFormat = media.audioFormats?.[0] || null;
} else if (targetType === "slide") {
chosenFormat = media.slideFormats?.[0] || null;
} else {
// Default video
if (options.quality) {
chosenFormat = (media.videoFormats || []).find(
(f) => f.quality === options.quality || f.label === options.quality || f.height === options.quality
);
}
if (!chosenFormat) {
chosenFormat = media.videoFormats?.[0] || null;
}
}
// 2. Kirim Job Download ke Backend Server
const jobPayload = {
url: media.url || url,
type: targetType,
videoId: media.videoId || null,
_key: media._key || null,
bitrate: options.bitrate || 192,
...(chosenFormat?.formatId ? { formatId: chosenFormat.formatId } : {}),
...(chosenFormat?.quality ? { quality: chosenFormat.quality } : {})
};
const startRes = await fetch("https://www.saveus.biz.id/api/download/start", {
method: "POST",
headers: defaultHeaders,
body: JSON.stringify(jobPayload)
});
const startData = await startRes.json();
if (!startRes.ok || !startData.success || !startData.jobId) {
throw new Error(startData.error || "Gagal membuat antrean download.");
}
const jobId = startData.jobId;
// 3. Monitor Server-Sent Events (SSE) sampai proses selesai
const sseRes = await fetch(`https://www.saveus.biz.id/api/download/progress/${encodeURIComponent(jobId)}`, {
headers: {
...defaultHeaders,
"Accept": "text/event-stream"
}
});
if (!sseRes.ok) {
throw new Error(`SSE progress stream gagal (HTTP ${sseRes.status})`);
}
const reader = sseRes.body.getReader();
const decoder = new TextDecoder();
let completed = false;
while (!completed) {
const { done, value } = await reader.read();
if (done) break;
const chunk = decoder.decode(value);
const lines = chunk.split("\n");
for (const line of lines) {
if (line.startsWith("data:")) {
try {
const payload = JSON.parse(line.slice(5).trim());
if (payload.type === "done") {
completed = true;
break;
} else if (payload.type === "error") {
throw new Error(payload.message || "Pemrosesan media error di server.");
}
} catch (e) {
if (e.message?.includes("Pemrosesan")) throw e;
}
}
}
}
const finalFileUrl = `https://www.saveus.biz.id/api/download/file/${encodeURIComponent(jobId)}`;
return {
status: true,
creator: "Vamz Spectre",
platform: media.platform,
title: media.title,
author: media.author,
duration: media.duration,
durationFormatted: media.durationFormatted,
thumbnail: media.thumbnail,
download: {
jobId,
url: finalFileUrl,
type: targetType,
format: chosenFormat?.displayName || chosenFormat?.label || chosenFormat?.quality || "default",
size: chosenFormat?.size || null
},
formats: {
video: media.videoFormats || [],
audio: media.audioFormats || [],
slide: media.slideFormats || []
}
};
}
/**
* CLI Runner:
* Langsung eksekusi jika dijalankan via terminal: node saveus-aio-downloader.js "url"
*/
const argMedia = process.argv[2];
if (argMedia) {
saveus(argMedia)
.then(result => {
console.log(JSON.stringify(result, null, 2));
})
.catch(err => {
console.error(JSON.stringify({ success: false, error: err.message }, null, 2));
process.exit(1);
});
} else if (process.argv[1] && process.argv.length <= 2) {
console.log("Usage: node saveus-aio-downloader.js \"<url_video>\"");
}
if (typeof module !== "undefined" && module.exports) {
module.exports = { saveus, default: saveus };
}