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

Image Proxy

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

Route Schema (URL)

https://api.consumet.org/manga/mangahere/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://zjcdn.mangahere.org/store/manga/12345/001.jpg");
const url = `https://api.consumet.org/manga/mangahere/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);

Response Schema

MIME Type: image/*

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