L’API genebook.de offre un accès programmatique à certaines fonctions du service.
Cette méthode de l’API convertit la page web spécifiée en un livre numérique au format EPUB, MOBI ou FB2.
En cas de requête réussie, l’API renvoie un champ result contenant un lien permettant de télécharger le fichier généré.
POST https://genebook.de/api/v3/converter/
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
| url | string | yes | URL de la page web à convertir |
| format | string | yes | Format de sortie : epub, mobi, fb2 |
| apiKey | string | yes | Votre clé API |
Content-Type: application/json
curl -X POST "https://genebook.de/api/v3/converter/" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/article",
"format": "epub",
"apiKey": "YOUR_API_KEY"
}'
{
"status": "success",
"result": "https://genebook.de/downloads/q1w2e3r4t5y",
"name": "article123.epub"
}
{
"status": "error",
"message": "Invalid or missing API key"
}