🚧 The Consumet documentation is undergoing reconstruction. Please be patient for all providers to be fully-documented. 🚧
API
Manga
Mangapill
Image Proxy

Image Proxy

Technical details regarding the usage of the image proxy function for the mangapill provider can be found below. This endpoint is used to proxy manga images to bypass CORS restrictions and hotlink protection. Example code is provided for both JavaScript and Python, along with a response schema.

Route Schema (URL)

https://api.consumet.org/manga/mangapill/proxy?url={url}

Query Parameters

ParameterTypeDescriptionRequired?Default
urlstringThe URL of the image to proxy (URL encoded).Yes

Request Samples

import axios from "axios";
 
// Using an example image URL (URL encoded).
const imageUrl = encodeURIComponent("https://mangapill.com/images/manga/12345/001.jpg");
const url = `https://api.consumet.org/manga/mangapill/proxy?url=${imageUrl}`;
 
const data = async () => {
    try {
        const response = await axios.get(url, { responseType: 'arraybuffer' });
        return response.data;
    } catch (err) {
        throw new Error(err.message);
    }
};
 
console.log(data);

HTML Usage

You can also use the proxy URL directly in an HTML <img> tag:

<img src="https://api.consumet.org/manga/mangapill/proxy?url=https%3A%2F%2Fmangapill.com%2Fimages%2Fmanga%2F12345%2F001.jpg" alt="Manga Page" />

Response Schema

MIME Type: image/*

Returns the proxied image binary data with the appropriate content type.