Parameter | Type | Description | Required? | Default |
---|---|---|---|---|
keyword | string | The keyword; i.e. the title of the item you are looking for. | Yes | None |
page | integer | The page number of results to return. | No | 1 |
import axios from "axios";
// Using the example keyword "demon", and looking at the 1st page of results.
const url = "https://scrap-go-go.vercel.app/anime/search?keyword=demon&page=1";
const data = async () => {
try {
const { data } = await axios.get(url);
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
{
"success": boolean,
"statusCode": string,
"error": string|null,
"data":`[
{
"id": string,
"title": string | ITitle,
"image": string,
}
] |null`
}
Parameter | Type | Description | Required? | Default |
---|---|---|---|---|
id | string | The id; i.e. the id of the anime you are looking for. | Yes | None |
import axios from "axios";
// Using the example id "jujutsu-kaisen-tv-2nd-season".
const url = "https://scrap-go-go.vercel.app/anime/info/jujutsu-kaisen-tv-2nd-season";
const data = async () => {
try {
const { data } = await axios.get(url);
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
{
"success": boolean,
"statusCode": string,
"error": string|null,
"data":`{
"id": string,
"title": string | ITitle,
"url": string,
"image": string,
"releaseDate": string,
"episodes": [
{
"id": string,
"number": number,
"url": string
}
],
"totalEpisodes": number,
"description": string,
"genre": string[],
} |null`
}
Parameter | Type | Description | Required? | Default |
---|---|---|---|---|
Episode_id | string | The Episode_id; i.e. the id of the episode you are looking for. | Yes | None |
import axios from "axios";
// Using the example Episode_id "one-piece-episode-1".
const url = "https://scrap-go-go.vercel.app/anime/watch/one-piece-episode-1";
const data = async () => {
try {
const { data } = await axios.get(url);
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
{
"success": boolean,
"statusCode": string,
"error": string|null,
"data":`[
{
"url": string,
"isM3U8": boolean,
"quality": string,
}
]|null`
}