Zum Hauptinhalt springen

Documentation Index

Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt

Use this file to discover all available pages before exploring further.

GET /sites//markdown/export

Dieser Endpunkt erzeugt einen Markdown-Export aller URLs und Inhalte einer Website. Nur für kostenpflichtige Tarife verfügbar.
Diese Funktion erfordert ein kostenpflichtiges Abonnement. Nutzer des Free-Tarifs erhalten einen Fehler.

Pfadparameter

siteId
string
erforderlich
Kennung der zu exportierenden Website.

Abfrageparameter

format
string
Standard:"individual"
Exportformat:
  • individual: JSON mit separatem Markdown pro URL
  • combined: Eine zusammengeführte Markdown-Datei
fresh
boolean
Standard:"false"
Bei true werden aktuelle Inhalte geladen statt zwischengespeichertes Markdown zu verwenden.

Antwort

Bei format=individual wird JSON zurückgegeben:
success
boolean
Ob der Export erfolgreich war.
format
string
Exportformat (individual).
files
array
Array von Markdown-Dateiobjekten.
Bei format=combined wird Klartext-Markdown mit Header Content-Disposition zum Download zurückgegeben.
curl -X GET "https://api.llmgenerator.com/api/v1/sites/550e8400-e29b-41d4-a716-446655440000/markdown/export" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "format": "individual",
  "files": [
    {
      "url": "https://example.com/",
      "title": "Example Domain - Home",
      "markdown": "# Example Domain\n\nWelcome to Example Domain...\n"
    },
    {
      "url": "https://example.com/about",
      "title": "About Us",
      "markdown": "# About Us\n\nLearn more about Example Domain...\n"
    }
  ]
}