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:
- Take both
GETorPOSTrequests- For
POSTrequests, you need to use form instead of JSON.
- For
- Upon error, the response will be in plain text.
- Upon success, the response will be in JSON.
Endpoints
/epub
Generate an epub file from the given URL.
Args
| Arg | Type | Description |
|---|---|---|
url | string | The URL of the article. |
gray | bool | Whether to grayscale all images. |
fit | int | Downscale images to fit in fit x fit if needed, only used when gray is set to true. |
lang | string | Override the language detected from the url for epub. |
passthrough-user-agent | bool | Use the same User-Agent from the original request. |
font-size | string | Global 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.