API-Schnellstart
Testen Sie die API sofort ohne Schlüssel (kostenloser Tarif: 5 Anfragen/Minute) oder senden Sie den Header X-API-Key für höhere Limits und monatliche Kontingente.
Endpunkt
POST https://fileapp.uk/api/v1/convert Content-Type: multipart/form-data X-API-Key: your_api_key_here # im kostenlosen Tarif optional
cURL-Beispiel
curl -X POST https://fileapp.uk/api/v1/convert \ -H "X-API-Key: YOUR_API_KEY" \ -F "[email protected]" \ --output invoice.pdf
Python-Beispiel
import requests
with open("report.xlsx", "rb") as f:
res = requests.post(
"https://fileapp.uk/api/v1/convert",
headers={"X-API-Key": "YOUR_API_KEY"},
files={"file": f},
timeout=30,
)
res.raise_for_status()
with open("report.pdf", "wb") as out:
out.write(res.content)
Node.js-Beispiel
import fs from "node:fs";
const form = new FormData();
const blob = new Blob([fs.readFileSync("deck.pptx")]);
form.append("file", blob, "deck.pptx");
const res = await fetch("https://fileapp.uk/api/v1/convert", {
method: "POST",
headers: { "X-API-Key": "YOUR_API_KEY" },
body: form,
});
if (!res.ok) throw new Error(await res.text());
fs.writeFileSync("deck.pdf", Buffer.from(await res.arrayBuffer()));
Kontingent & Status prüfen
GET https://fileapp.uk/api/v1/account # mit X-API-Key Header GET https://fileapp.uk/api/v1/health
Unterstützte Formate: csv, doc, docx, odt, ppt, pptx, rtf, txt, xls, xlsx. Fehler werden als strukturiertes JSON ({"error": "...", "code": "..."}) mit Standard-HTTP-Statuscodes (400, 401, 402, 429, 503, 504) zurückgegeben.