GET /home
https://www.maskaflixapi.cloud/api/v2/maskaflix/home
Request Sample
// Using fetch
const response = await fetch("https://www.maskaflixapi.cloud/api/v2/maskaflix/home");
const data = await response.json();
// Using axios
import axios from 'axios';
const response = await axios.get("https://www.maskaflixapi.cloud/api/v2/maskaflix/home");
const data = response.data;
Response Schema
{
"success": boolean,
"data": {
"spotlightAnimes": [
{
"rank": number,
"id": string,
"name": string,
"description": string,
"poster": string,
"jname": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string,
"otherInfo": string[]
}
],
"trendingAnimes": [
{
"rank": number,
"id": string,
"name": string,
"jname": string,
"poster": string
}
],
"latestEpisodeAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"duration": string,
"type": string,
"rating": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"topUpcomingAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"duration": string,
"type": string,
"rating": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"top10Animes": {
"today": [
{
"id": string,
"rank": number,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"week": [
{
"id": string,
"rank": number,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"month": [
{
"id": string,
"rank": number,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
}
}
]
},
"topAiringAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string
}
],
"mostPopularAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string
}
],
"mostFavoriteAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string
}
],
"latestCompletedAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string
}
],
"genres": string[]
}
}
GET /search
https://www.maskaflixapi.cloud/api/v2/maskaflix/search?
q={query}
&page={page}
&genres={genres}
&type={type}
&sort={sort}
&season={season}
&language={sub_or_dub}
&status={status}
&rated={rating}
&start_date={yyyy-mm-dd}
&end_date={yyyy-mm-dd}
&score={score}
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
q | string | Search query | Yes | - |
page | number | Page number | No | 1 |
type | string | Anime type (e.g., "movie") | No | - |
status | string | Anime status (e.g., "finished-airing") | No | - |
rated | string | Age rating (e.g., "pg-13") | No | - |
score | string | Quality score (e.g., "good") | No | - |
season | string | Season (e.g., "spring") | No | - |
language | string | Language (e.g., "sub", "dub") | No | - |
start_date | string | Start date (yyyy-mm-dd) | No | - |
end_date | string | End date (yyyy-mm-dd) | No | - |
sort | string | Sort order (e.g., "recently-added") | No | - |
genres | string | Comma-separated genres | No | - |
Request Sample
// Basic search
const query = "titan";
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/search?q=${query}&page=1`);
const data = await response.json();
// Advanced search
const advancedParams = new URLSearchParams({
q: "girls",
genres: "action,adventure",
type: "movie",
sort: "score",
season: "spring",
language: "dub",
status: "finished-airing",
rated: "pg-13",
start_date: "2014-0-0",
score: "good"
});
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/search?${advancedParams}`);
const data = await response.json();
Response Schema
{
"success": boolean,
"data": {
"animes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"duration": string,
"type": string,
"rating": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"mostPopularAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string
}
],
"searchQuery": string,
"searchFilters": object,
"totalPages": number,
"hasNextPage": boolean,
"currentPage": number
}
}
GET /azlist/{sortOption}
https://www.maskaflixapi.cloud/api/v2/maskaflix/azlist/{sortOption}
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
sortOption | string | Sort option ("all", "other", "0-9", or alphabets) | Yes | - |
page | number | Page number | No | 1 |
Request Sample
// Get anime titles starting with numbers
const response = await fetch("https://www.maskaflixapi.cloud/api/v2/maskaflix/azlist/0-9?page=1");
const data = await response.json();
// Get anime titles starting with 'A'
const response = await fetch("https://www.maskaflixapi.cloud/api/v2/maskaflix/azlist/a?page=1");
const data = await response.json();
Response Schema
{
"success": boolean,
"data": {
"sortOption": string,
"animes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"duration": string,
"type": string,
"rating": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"totalPages": number,
"hasNextPage": boolean,
"currentPage": number
}
}
GET /qtip/{animeId}
https://www.maskaflixapi.cloud/api/v2/maskaflix/qtip/{animeId}
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
animeId | string | Anime ID in kebab-case | Yes | - |
Request Sample
const animeId = "one-piece-100";
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/qtip/${animeId}`);
const data = await response.json();
Response Schema
{
"success": boolean,
"data": {
"anime": {
"id": string,
"name": string,
"malscore": string,
"quality": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string,
"description": string,
"jname": string,
"synonyms": string,
"aired": string,
"status": string,
"genres": string[]
}
}
}
GET /anime/{animeId}
https://www.maskaflixapi.cloud/api/v2/maskaflix/anime/{animeId}
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
animeId | string | Anime ID in kebab-case | Yes | - |
Request Sample
const animeId = "attack-on-titan-112";
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/anime/${animeId}`);
const data = await response.json();
Response Schema
{
"success": boolean,
"data": {
"anime": {
"info": {
"id": string,
"anilistId": number,
"malId": number,
"name": string,
"poster": string,
"description": string,
"stats": {
"rating": string,
"quality": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string,
"duration": string
},
"promotionalVideos": [
{
"title": string,
"source": string,
"thumbnail": string
}
],
"charactersVoiceActors": [
{
"character": {
"id": string,
"poster": string,
"name": string,
"cast": string
},
"voiceActor": {
"id": string,
"poster": string,
"name": string,
"cast": string
}
}
]
},
"moreInfo": {
"japanese": string,
"synonyms": string,
"aired": string,
"premiered": string,
"duration": string,
"status": string,
"malscore": string,
"genres": string[],
"studios": string,
"producers": string[]
}
},
"seasons": array,
"mostPopularAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string
}
],
"relatedAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string
}
],
"recommendedAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"duration": string,
"type": string,
"rating": string,
"episodes": {
"sub": number,
"dub": number
}
}
]
}
}
GET /search/suggestion
https://www.maskaflixapi.cloud/api/v2/maskaflix/search/suggestion
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
q | string | Search query | Yes | - |
Request Sample
const query = "monster";
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/search/suggestion?q=${query}`);
const data = await response.json();
Response Schema
{
"success": boolean,
"data": {
"suggestions": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"moreInfo": string[]
}
]
}
}
GET /producer/{name}
https://www.maskaflixapi.cloud/api/v2/maskaflix/producer/{name}
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
name | string | Producer name in kebab-case | Yes | - |
page | number | Page number | No | 1 |
Request Sample
const producer = "toei-animation";
const page = 2;
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/producer/${producer}?page=${page}`);
const data = await response.json();
Response Schema
{
"success": boolean,
"data": {
"producerName": string,
"animes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"duration": string,
"type": string,
"rating": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"top10Animes": {
"today": [
{
"id": string,
"rank": number,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"week": [
{
"id": string,
"rank": number,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"month": [
{
"id": string,
"rank": number,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
}
}
]
},
"topAiringAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string
}
],
"totalPages": number,
"hasNextPage": boolean,
"currentPage": number
}
}
GET /genre/{name}
https://www.maskaflixapi.cloud/api/v2/maskaflix/genre/{name}
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
name | string | Genre name in kebab-case | Yes | - |
page | number | Page number | No | 1 |
Request Sample
const genre = "shounen";
const page = 2;
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/genre/${genre}?page=${page}`);
const data = await response.json();
Response Schema
{
"success": boolean,
"data": {
"genreName": string,
"animes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"duration": string,
"type": string,
"rating": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"genres": string[],
"topAiringAnimes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
},
"type": string
}
],
"totalPages": number,
"hasNextPage": boolean,
"currentPage": number
}
}
GET /category/{name}
https://www.maskaflixapi.cloud/api/v2/maskaflix/category/{name}
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
category | string | Category name (most-favorite, most-popular, subbed-anime, dubbed-anime, recently-updated, recently-added, top-upcoming, top-airing, movie, special, ova, ona, tv, completed) | Yes | - |
page | number | Page number | No | 1 |
Request Sample
const category = "tv";
const page = 2;
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/category/${category}?page=${page}`);
const data = await response.json();
Response Schema
{
"success": boolean,
"data": {
"animes": [
{
"id": string,
"name": string,
"jname": string,
"poster": string,
"duration": string,
"type": string,
"rating": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"genres": string[],
"top10Animes": {
"today": [
{
"id": string,
"rank": number,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"week": [
{
"id": string,
"rank": number,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
}
}
],
"month": [
{
"id": string,
"rank": number,
"name": string,
"jname": string,
"poster": string,
"episodes": {
"sub": number,
"dub": number
}
}
]
},
"category": string,
"totalPages": number,
"hasNextPage": boolean,
"currentPage": number
}
}
GET /schedule
https://www.maskaflixapi.cloud/api/v2/maskaflix/schedule?date=${date}
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
date | string | Date in yyyy-mm-dd format | Yes | - |
Request Sample
const date = "2024-06-09";
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/schedule?date=${date}`);
const data = await response.json();
Response Schema
{
"success": boolean,
"data": {
"scheduledAnimes": [
{
"id": string,
"time": string,
"name": string,
"jname": string,
"airingTimestamp": number,
"secondsUntilAiring": number,
"episode": number
}
]
}
}
GET /anime/{animeId}/episodes
https://www.maskaflixapi.cloud/api/v2/maskaflix/anime/{animeId}/episodes
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
animeId | string | Anime ID in kebab-case | Yes | - |
Request Sample
const animeId = "steinsgate-3";
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/anime/${animeId}/episodes`);
const data = await response.json();
Response Schema
{
"success": boolean,
"data": {
"totalEpisodes": number,
"episodes": [
{
"title": string,
"episodeId": string,
"number": number,
"isFiller": boolean
}
]
}
}
GET /episode/servers
https://www.maskaflixapi.cloud/api/v2/maskaflix/episode/servers?animeEpisodeId=${episodeId}
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
animeEpisodeId | string | Episode ID | Yes | - |
Request Sample
const episodeId = "steinsgate-0-92?ep=2055";
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/episode/servers?animeEpisodeId=${episodeId}`);
const data = await response.json();
Response Schema
{
"success": boolean,
"data": {
"sub": [
{
"serverName": string,
"serverId": number
}
],
"dub": [
{
"serverName": string,
"serverId": number
}
],
"raw": [
{
"serverName": string,
"serverId": number
}
],
"episodeId": string,
"episodeNo": number
}
}
GET /episode/sources
https://www.maskaflixapi.cloud/api/v2/maskaflix/episode/sources?animeEpisodeId={id}?server={server}&category={dub || sub || raw}
Request Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
animeEpisodeId | string | Episode ID | Yes | - |
server | string | Server name | No | "hd-1" |
category | string | Episode type (sub/dub/raw) | No | "sub" |
Request Sample
const episodeId = "steinsgate-3?ep=230";
const server = "hd-1";
const category = "dub";
const response = await fetch(`https://www.maskaflixapi.cloud/api/v2/maskaflix/episode/sources?animeEpisodeId=${episodeId}&server=${server}&category=${category}`);
const data = await response.json();
// Using the streaming data
if (data.success && data.data.sources.length > 0) {
const videoUrl = data.data.sources[0].url;
const headers = data.data.headers;
// Create video player with HLS support
const player = new HLSPlayer({
source: videoUrl,
headers: headers,
subtitles: data.data.subtitles
});
}
Response Schema
{
"success": boolean,
"data": {
"tracks": [
{
"file": string,
"label": string,
"kind": string,
"default": boolean
}
],
"intro": {
"start": number,
"end": number
},
"outro": {
"start": number,
"end": number
},
"sources": [
{
"url": string,
"type": string
}
],
"anilistID": number,
"malID": number
}
}