API Documentation

Base URL: https://mangapi.masfana.my.id/api

Endpoints

1. Get Home Page Manga List

Endpoint: /home

Method: GET

Description: Fetches a list of manga series available on the home page of the Asura Comic website.

fetch('/api/home')

Response:

[
    {
        "title": "Manga Title 1",
        "image": "https://example.com/image1.jpg",
        "link": "/manga-title-1"
    },
    {
        "title": "Manga Title 2",
        "image": "https://example.com/image2.jpg",
        "link": "/manga-title-2"
    }
]

2. Get Chapters of a Specific Manga

Endpoint: /chapters

Method: POST

Description: Retrieves a list of chapters for a specified manga series.

Request Body:

{
    "linkManga": "/series/murim-login-15b603ec"
}
fetch('/api/chapters', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json',
    },
    body: JSON.stringify({ linkManga: '/series/murim-login-15b603ec' })
})

Response:

[
    {
        "chapter": "Chapter 1",
        "link": "/murim-login-15b603ec/chapter/1"
    },
    {
        "chapter": "Chapter 2",
        "link": "/murim-login-15b603ec/chapter/2"
    }
]

3. Get Images of a Specific Chapter

Endpoint: /images

Method: POST

Description: Fetches the images for a specified chapter of a manga series.

Request Body:

{
    "linkChapter": "/murim-login-15b603ec/chapter/197"
}
fetch('/api/images', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json',
    },
    body: JSON.stringify({ linkChapter: '/murim-login-15b603ec/chapter/197' })
})

Response:

[
    {
        "image": "https://example.com/image1.jpg"
    },
    {
        "image": "https://example.com/image2.jpg"
    }
]

4. Search for Manga by Name

Endpoint: /search

Method: POST

Description: Searches for manga series by their name and retrieves matching series.

Request Body:

{
    "name": "solo"
}
fetch('/api/search', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json',
    },
    body: JSON.stringify({ name: 'solo' })
})

Response:

[
    {
        "title": "Solo Leveling",
        "image": "https://example.com/solo.jpg",
        "link": "/solo-leveling"
    },
    {
        "title": "Solo Leveling: Season 2",
        "image": "https://example.com/solo2.jpg",
        "link": "/solo-leveling-season-2"
    }
]