This documentation describes how REST APIs on https://url2epub.fishy.me/ work. For the Telegram bot, just talk to the bot from Telegram.
Unless specified otherwise by the endpoint, all endpoints:
- Take both
GET
orPOST
requests- For
POST
requests, 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.
Generate an epub file from the given URL.
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. |
passthrough-user-agent |
bool | Use the same User-Agent from the original request. |
The response will be the epub file,
with proper Content-Disposition
, Content-Type
headers set.
Note that this is not JSON.