Skip to main content

GET /sites//markdown/export

This endpoint generates and returns a markdown export of all the site’s URLs and their content. Available only for paid plans.
This feature requires a paid subscription. Free tier users will receive an error.

Path Parameters

siteId
string
required
The ID of the site to export.

Query Parameters

format
string
default:"individual"
Export format:
  • individual: Returns JSON with separate markdown for each URL
  • combined: Returns a single combined markdown file
fresh
boolean
default:"false"
If true, fetches fresh content instead of using cached markdown.

Response

For format=individual, returns JSON:
success
boolean
Whether the export was successful.
format
string
The format of the export (individual).
files
array
Array of markdown file objects.
For format=combined, returns plain markdown text with Content-Disposition header for download.
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"
    }
  ]
}