API-Dokumentation
Integrieren Sie die Datei-zu-Markdown-Konvertierung in Ihren Workflow
Authentifizierung
Fugen Sie Ihren API-Schlussel in den X-Api-Key-Header jeder Anfrage ein.
X-Api-Key: tmd_your_api_key_hereAPI-Schlussel erhalten
Senden Sie eine POST-Anfrage mit Ihrer E-Mail, um einen API-Schlussel zu erhalten.
curl -X POST https://api.tomdnow.com/api/v1/keys \
-H "Email: you@example.com"Antwortformat:
{
"api_key": "tmd_abc123...",
"tier": "free",
"daily_limit": 50
}Datei konvertieren
Laden Sie eine Datei mit Ihrem API-Schlussel hoch, um eine Markdown-Ausgabe zu erhalten.
curl -X POST https://api.tomdnow.com/api/v1/convert \
-H "X-Api-Key: tmd_your_api_key" \
-F "file=@document.pdf"Antwortformat
Die API gibt ein JSON-Objekt mit dem konvertierten Markdown und Metadaten zuruck.
{
"markdown": "# Document Title\n\nConverted content...",
"metadata": {
"title": "document",
"type": "pdf",
"size": 102400
},
"api_usage": {
"tier": "free",
"daily_remaining": 47
}
}Ratenlimits
API-Anfragen sind auf eine tägliche Anzahl begrenzt.
Free: 50 Anfragen/Tag
Unterstutzte Formate
PDF, DOCX, PPTX, XLSX, XLS, HTML, EPUB, CSV, JSON, XML, MSG, IPYNB, ZIP, HWP, HWPX, RTF, TXT, JPG, PNG, GIF, WebP