scraperjavascript155
MovieZone (moviezone.web.id) All-in-One Movie, Series & VidFast (Server 7) Stream Scraper
Scraper MovieZone (moviezone.web.id) dengan otomatisasi bypass proteksi sesi anti-bot Vercel (mz_t token) dan filter khusus Server 7 (VidFast). Fitur: Search Movie/Series, Trending, Popular, Top Rated, Latest, Detail Lengkap (Sinopsis, Cast, Trailer), dan Direct Streaming Link Server 7 (VidFast).
Vamz Spectre11 Okt 2026385 baris kode
Jalankan via Terminal / CLI:
# 1. Download file script
curl -sL "https://code.vamxapi.my.id/snippet/raw/moviezone-stream-scraper" -o moviezone-stream-scraper.js
# 2. Jalankan script
node moviezone-stream-scraper.js
Dependencies npm yang Dibutuhkan:
npm install axiosPanduan Penggunaan:
// 1. Download Script via cURL:
curl -sL "https://code.vamxapi.my.id/snippet/raw/moviezone-stream-scraper" -o moviezone-stream-scraper.js
// 2. Install Dependencies:
npm install axios
// 3. Cara Pakai via Terminal / CLI:
node moviezone-stream-scraper.js search "Spider-Man"
node moviezone-stream-scraper.js detail "movie-969681"
node moviezone-stream-scraper.js episodes "tv-2287" 1
node moviezone-stream-scraper.js trending
node moviezone-stream-scraper.js popular movie
š” Catatan: Jika dijalankan tanpa parameter (`node moviezone-stream-scraper.js`), script otomatis menampilkan panduan bantuan penggunaan lengkap.
// 4. Penggunaan Modular (Node.js / Express / Bot WA Baileys):
const {
searchMovies,
getMovieDetail,
getSeriesEpisodes,
getTrending
} = require("./moviezone-stream-scraper");
async function main() {
// Ambil Detail & Direct Server 7 (VidFast)
const detail = await getMovieDetail("movie-969681");
console.log("Judul:", detail.result.title);
console.log("Stream Server 7:", detail.result.stream);
}
main();moviezone-stream-scraper.js(385 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
/**
* MovieZone (moviezone.web.id) All-in-One Movie & Series Scraper Engine
* Server Filter: Only Server 7 (VidFast)
* Author: Vamz Spectre / VamxAPI
* Website: https://vamxapi.my.id
* Channel: https://whatsapp.com/channel/0029Vb8n36OGE56uvRAq4y3y
*/
const axios = require('axios');
const BASE_URL = 'https://moviezone.web.id';
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36';
let sessionCookie = null;
let sessionExpiry = 0;
/**
* Mendapatkan atau memperbarui cookie sesi proteksi (mz_t)
*/
async function getSessionCookie() {
const now = Date.now();
if (sessionCookie && now < sessionExpiry) {
return sessionCookie;
}
try {
const res = await axios.get(`${BASE_URL}/search`, {
headers: {
'User-Agent': USER_AGENT,
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7',
},
timeout: 10000,
maxRedirects: 5,
});
const setCookies = res.headers['set-cookie'];
if (setCookies && Array.isArray(setCookies)) {
const mzCookie = setCookies.find(c => c.startsWith('mz_t='));
if (mzCookie) {
sessionCookie = mzCookie.split(';')[0];
sessionExpiry = now + (11 * 60 * 60 * 1000);
return sessionCookie;
}
}
if (res.headers['set-cookie'] && typeof res.headers['set-cookie'] === 'string') {
const match = res.headers['set-cookie'].match(/mz_t=[^;]+/);
if (match) {
sessionCookie = match[0];
sessionExpiry = now + (11 * 60 * 60 * 1000);
return sessionCookie;
}
}
return sessionCookie || '';
} catch (err) {
throw new Error(`Gagal menginisialisasi sesi MovieZone: ${err.message}`);
}
}
/**
* Request internal API dengan bypass sesi
*/
async function fetchApi(endpoint, refererPath = '/search') {
const cookie = await getSessionCookie();
const url = `${BASE_URL}${endpoint}`;
const response = await axios.get(url, {
headers: {
'User-Agent': USER_AGENT,
'Referer': `${BASE_URL}${refererPath}`,
'Cookie': cookie,
'Accept': 'application/json, text/plain, */*',
'Accept-Language': 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-origin',
},
timeout: 15000,
});
return response.data;
}
/**
* Helper: Filter khusus Server 7 (VidFast)
*/
function extractServer7(servers) {
if (!Array.isArray(servers) || servers.length === 0) return null;
// Cek server dengan nama VidFast atau index ke-7 (index 6)
const vidFast = servers.find(s => s.server?.toLowerCase().includes('vidfast'));
if (vidFast) return vidFast;
return servers[6] || servers[servers.length - 1];
}
/**
* Cari Film & TV Series berdasarkan Judul / Keyword
* @param {string} query
*/
async function searchMovies(query) {
if (!query || typeof query !== 'string' || !query.trim()) {
throw new Error('Kata kunci pencarian tidak boleh kosong');
}
const endpoint = `/api/movies/search?q=${encodeURIComponent(query.trim())}`;
const data = await fetchApi(endpoint, '/search');
return {
status: true,
total: data.results?.length || 0,
results: (data.results || []).map(item => ({
id: item.id,
slug: item.slug,
title: item.title,
type: item.type, // 'Movie' | 'Series'
rating: item.rating || '0',
year: item.year || '-',
releaseDate: item.releaseDate || null,
poster: item.poster || null,
backdrop: item.backdrop || null,
overview: item.overview || null,
genres: item.genreIds || [],
})),
};
}
/**
* Ambil Film & Series Trending
*/
async function getTrending() {
const data = await fetchApi('/api/movies/trending', '/');
return {
status: true,
total: data.results?.length || 0,
results: data.results || [],
};
}
/**
* Ambil Film & Series Populer
* @param {'all' | 'movie' | 'tv'} type
*/
async function getPopular(type = 'all') {
const data = await fetchApi(`/api/movies/popular?type=${type}`, '/popular');
return {
status: true,
total: data.results?.length || 0,
results: data.results || [],
};
}
/**
* Ambil Film & Series Rating Tertinggi
* @param {'all' | 'movie' | 'tv'} type
*/
async function getTopRated(type = 'movie') {
const data = await fetchApi(`/api/movies/top-rated?type=${type}`, '/top-rated');
return {
status: true,
total: data.results?.length || 0,
results: data.results || [],
};
}
/**
* Ambil Rilis Terbaru
* @param {'all' | 'movie' | 'tv'} type
*/
async function getLatest(type = 'all') {
const data = await fetchApi(`/api/movies/latest?type=${type}`, '/latest');
return {
status: true,
total: data.results?.length || 0,
results: data.results || [],
};
}
/**
* Ambil Detail Lengkap Film atau TV Series (Khusus Server 7: VidFast)
* @param {string} slug Contoh: "movie-969681" atau "tv-2287"
*/
async function getMovieDetail(slug) {
if (!slug || typeof slug !== 'string' || !slug.trim()) {
throw new Error('Slug film/series tidak boleh kosong (contoh: "movie-969681" atau "tv-2287")');
}
const cleanSlug = slug.trim();
const endpoint = `/api/movies/detail/${encodeURIComponent(cleanSlug)}`;
const data = await fetchApi(endpoint, `/movie/${cleanSlug}`);
if (!data || !data.id) {
throw new Error('Konten tidak ditemukan atau slug salah');
}
const server7 = extractServer7(data.stream?.servers || []);
return {
status: true,
result: {
id: data.id,
slug: data.slug,
type: data.type,
title: data.title,
tagline: data.tagline || null,
year: data.year,
rating: data.rating,
voteCount: data.voteCount,
duration: data.duration,
status: data.status,
ageRating: data.ageRating,
releaseDate: data.releaseDate,
genres: data.genres || [],
director: data.director || null,
synopsis: data.synopsis || null,
poster: data.poster,
backdrop: data.backdrop,
trailer: data.trailer,
imdbId: data.imdbId,
cast: (data.castDetailed || []).slice(0, 15).map(c => ({
name: c.name,
character: c.character,
photo: c.photo,
})),
watchProviders: data.watchProviders || [],
recommendations: (data.recommendations || []).map(r => ({
slug: r.slug,
title: r.title,
type: r.type,
year: r.year,
rating: r.rating,
poster: r.poster,
})),
stream: server7 ? {
serverNumber: 7,
serverName: server7.server, // "VidFast"
url: server7.url,
} : null,
seasons: data.seasons || [],
},
};
}
/**
* Ambil Daftar Episode TV Series (Khusus Server 7: VidFast)
* @param {string} slug Contoh: "tv-2287"
* @param {number|string} season Nomor season (default 1)
*/
async function getSeriesEpisodes(slug, season = 1) {
if (!slug || typeof slug !== 'string' || !slug.trim()) {
throw new Error('Slug TV Series tidak boleh kosong (contoh: "tv-2287")');
}
const cleanSlug = slug.trim();
const endpoint = `/api/movies/episodes/${encodeURIComponent(cleanSlug)}?season=${season}`;
const data = await fetchApi(endpoint, `/movie/${cleanSlug}`);
return {
status: true,
season: Number(season),
totalEpisodes: data.episodes?.length || 0,
episodes: (data.episodes || []).map(ep => {
const server7 = extractServer7(ep.servers || []);
return {
episode: ep.episode,
season: ep.season,
title: ep.title,
overview: ep.overview,
still: ep.still,
airDate: ep.airDate,
runtime: ep.runtime,
stream: server7 ? {
serverNumber: 7,
serverName: server7.server, // "VidFast"
url: server7.url,
} : null,
};
}),
};
}
if (typeof module !== "undefined" && module.exports) {
module.exports = {
searchMovies,
getTrending,
getPopular,
getTopRated,
getLatest,
getMovieDetail,
getSeriesEpisodes,
};
}
// Mode CLI Langsung (Interactive & Parameter Checker)
if (require.main === module) {
const args = process.argv.slice(2);
const command = args[0] ? args[0].toLowerCase().trim() : '';
const param = args.slice(1).join(' ').trim();
if (!command) {
console.log(`
=============================================================
MOVIEZONE STREAM SCRAPER ENGINE (ONLY SERVER 7: VIDFAST)
=============================================================
ā Error: Perintah atau parameter tidak boleh kosong!
š CARA PENGGUNAAN LENGKAP:
node moviezone-stream-scraper.js <command> [parameter]
š DAFTAR COMMAND TERSEDIA:
search <judul> Cari film & series sub Indo
detail <slug> Ambil info, sinopsis & stream link Server 7 (VidFast)
episodes <slug> [season] Ambil daftar episode & stream link Server 7 (VidFast)
trending Daftar film & series trending
popular [all|movie|tv] Daftar film terpopuler
latest [all|movie|tv] Daftar film/series rilis terbaru
toprated [movie|tv] Daftar rating tertinggi
š CONTOH PENGGUNAAN:
node moviezone-stream-scraper.js search "Spider-Man"
node moviezone-stream-scraper.js detail "movie-969681"
node moviezone-stream-scraper.js episodes "tv-2287" 1
node moviezone-stream-scraper.js trending
node moviezone-stream-scraper.js popular movie
š” INTEGRASI MODULAR (Node.js / Express / Baileys):
const { searchMovies, getMovieDetail, getSeriesEpisodes } = require("./moviezone-stream-scraper");
const hasil = await getMovieDetail("movie-969681");
console.log(hasil.result.stream);
=============================================================
`);
process.exit(1);
}
(async () => {
try {
console.log(`ā³ Sedang memproses MovieZone [${command}]...`);
if (command === 'search') {
if (!param) {
console.error('ā Harap masukkan judul film untuk dicari. Contoh: node moviezone-stream-scraper.js search "Batman"');
process.exit(1);
}
const res = await searchMovies(param);
console.log(JSON.stringify(res, null, 2));
} else if (command === 'detail') {
if (!param) {
console.error('ā Harap masukkan slug film/series. Contoh: node moviezone-stream-scraper.js detail "movie-969681"');
process.exit(1);
}
const res = await getMovieDetail(param);
console.log(JSON.stringify(res, null, 2));
} else if (command === 'episodes' || command === 'ep') {
const parts = param.split(/\s+/);
const slug = parts[0];
const season = parts[1] || 1;
if (!slug) {
console.error('ā Harap masukkan slug series. Contoh: node moviezone-stream-scraper.js episodes "tv-2287" 1');
process.exit(1);
}
const res = await getSeriesEpisodes(slug, season);
console.log(JSON.stringify(res, null, 2));
} else if (command === 'trending') {
const res = await getTrending();
console.log(JSON.stringify(res, null, 2));
} else if (command === 'popular') {
const res = await getPopular(param || 'all');
console.log(JSON.stringify(res, null, 2));
} else if (command === 'latest') {
const res = await getLatest(param || 'all');
console.log(JSON.stringify(res, null, 2));
} else if (command === 'toprated') {
const res = await getTopRated(param || 'movie');
console.log(JSON.stringify(res, null, 2));
} else {
console.error(`ā Perintah "${command}" tidak dikenali. Ketik node moviezone-stream-scraper.js tanpa parameter untuk melihat bantuan.`);
process.exit(1);
}
} catch (err) {
console.error('ā Terjadi Kesalahan:', err.message);
process.exit(1);
}
})();
}