url2epub REST APIs

September 6, 2025 ยท View on GitHub

This documentation describes how REST APIs on https://url2epub.fishy.me/ work. For the Telegram bot, just talk to the bot from Telegram.

Overview

Unless specified otherwise by the endpoint, all endpoints:

  1. Take both GET or POST requests
    • For POST requests, you need to use form instead of JSON.
  2. Upon error, the response will be in plain text.
  3. Upon success, the response will be in JSON.

Endpoints

/epub

Generate an epub file from the given URL.

Args

ArgTypeDescription
urlstringThe URL of the article.
grayboolWhether to grayscale all images.
fitintDownscale images to fit in fit x fit if needed, only used when gray is set to true.
langstringOverride the language detected from the url for epub.
passthrough-user-agentboolUse the same User-Agent from the original request.
font-sizestringGlobal font size scaling, for example 50%.

Response

The response will be the epub file, with proper Content-Disposition, Content-Type headers set. Note that this is not JSON.