generaljavascript283
RapipMovies Anime - Catalog & Streaming Detail Scraper
Reverse-engineered API client for RapipMovies anime section (rapip-movies.up.railway.app/#/anime). Extracts anime lists, pagination, poster/backdrop CDN, season episode listings, and player stream URLs.
Vamz Spectre6 Nov 2026117 baris kode
Jalankan via Terminal / CLI:
# 1. Download file script
curl -sL "https://code.vamxapi.my.id/snippet/raw/rapip-anime" -o rapip-anime.js
# 2. Jalankan script
node rapip-anime.js
rapip-anime.js(117 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
/**
* RapipMovies Anime Scraper & Detail API Client
* Author: Vamz Spectre (VamxAPI)
* Target: https://rapip-movies.up.railway.app/#/anime
* Description:
* Reverse-engineered client for RapipMovies anime catalog.
* Fetches complete anime lists, pagination, details, seasons, episodes,
* and direct streaming player embed URLs.
*
* Usage CLI:
* curl -sL "https://code.vamxapi.my.id/snippet/raw/rapip-anime" -o rapip-anime.js
* node rapip-anime.js list 1
* node rapip-anime.js detail tv-67075
*/
const BASE_URL = 'https://api-lk21-kappa.vercel.app';
async function getAnimeList(page = 1) {
const url = `${BASE_URL}/anime/list?page=${page}`;
const res = await fetch(url, {
headers: {
'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',
'Referer': 'https://rapip-movies.up.railway.app/'
}
});
if (!res.ok) {
throw new Error(`Failed to fetch anime list: ${res.status} ${res.statusText}`);
}
const data = await res.json();
return {
status: true,
author: 'Vamz Spectre',
page: data.page || page,
total: data.total || 0,
results: (data.results || []).map(item => ({
id: item.id,
tmdbId: item.tmdbId,
title: item.title,
year: item.year,
rating: item.rating,
genres: item.genres || [],
overview: item.overview || null,
poster: item.poster,
backdrop: item.backdrop,
runtime: item.runtime || 0,
playerUrl: item.src
}))
};
}
async function getAnimeDetail(id) {
const url = `${BASE_URL}/anime/detail/${encodeURIComponent(id)}`;
const res = await fetch(url, {
headers: {
'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',
'Referer': 'https://rapip-movies.up.railway.app/'
}
});
if (!res.ok) {
throw new Error(`Failed to fetch anime detail: ${res.status} ${res.statusText}`);
}
const data = await res.json();
return {
status: true,
author: 'Vamz Spectre',
result: {
id: data.id,
tmdbId: data.tmdbId,
title: data.title,
year: data.year,
rating: data.rating,
overview: data.overview || null,
genres: data.genres || [],
poster: data.poster,
backdrop: data.backdrop,
runtime: data.runtime,
seasons: (data.seasons || []).map(s => ({
seasonNumber: s.number,
seasonName: s.name,
episodeCount: s.episodeCount,
poster: s.poster
})),
playerUrl: data.src
}
};
}
// CLI Runner
if (require.main === module) {
const action = process.argv[2] || 'list';
const param = process.argv[3] || '1';
(async () => {
try {
let result;
if (action === 'detail') {
result = await getAnimeDetail(param);
} else {
result = await getAnimeList(Number(param) || 1);
}
console.log(JSON.stringify(result, null, 2));
} catch (err) {
console.error(JSON.stringify({ status: false, error: err.message }, null, 2));
process.exit(1);
}
})();
}
module.exports = {
getAnimeList,
getAnimeDetail
};