{
  "openapi": "3.0.1",
  "info": {
    "title": "Discord Forum To Website",
    "description": "Transform your Discord forum channels into beautiful, SEO-optimized static websites with customizable templates and one-click deployment to Vercel, Netlify, or GitHub Pages.",
    "version": "0.0",
    "x-build-id": "qhJtlkRiiB2g03Lov"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/code-node-tools~discord-forum-to-website/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-code-node-tools-discord-forum-to-website",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/code-node-tools~discord-forum-to-website/runs": {
      "post": {
        "operationId": "runs-sync-code-node-tools-discord-forum-to-website",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/code-node-tools~discord-forum-to-website/run-sync": {
      "post": {
        "operationId": "run-sync-code-node-tools-discord-forum-to-website",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "discordToken",
          "serverId",
          "forumChannelIds"
        ],
        "properties": {
          "discordToken": {
            "title": "Discord Bot Token",
            "type": "string",
            "description": "Your Discord bot token (required). Create a bot at https://discord.com/developers/applications"
          },
          "serverId": {
            "title": "Discord Server ID",
            "type": "string",
            "description": "The Discord server (guild) ID containing the forum channels"
          },
          "forumChannelIds": {
            "title": "Forum Channel IDs",
            "type": "array",
            "description": "Array of Discord forum channel IDs to scrape",
            "items": {
              "type": "string"
            }
          },
          "scrapeUntilDate": {
            "title": "Scrape Until Date",
            "type": "string",
            "description": "Only scrape threads created before this date (YYYY-MM-DD format)",
            "default": "2025-07-20"
          },
          "maxThreadsPerChannel": {
            "title": "Max Threads Per Channel",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of threads to scrape per channel (optional)",
            "default": 100
          },
          "includeArchived": {
            "title": "Include Archived Threads",
            "type": "boolean",
            "description": "Whether to include archived threads in the scraping",
            "default": false
          },
          "siteTitle": {
            "title": "Site Title",
            "type": "string",
            "description": "Title for the generated website (leave empty to use Discord server name)"
          },
          "siteDescription": {
            "title": "Site Description",
            "type": "string",
            "description": "Description for the generated website (leave empty for auto-generated)"
          },
          "siteTagline": {
            "title": "Site Tagline",
            "type": "string",
            "description": "Optional tagline/subtitle for the website"
          },
          "enableLeaderboard": {
            "title": "Enable Leaderboard",
            "type": "boolean",
            "description": "Enable a leaderboard page showing top contributors",
            "default": true
          },
          "searchEnabled": {
            "title": "Enable Search",
            "type": "boolean",
            "description": "Enable search functionality on the website",
            "default": true
          },
          "itemsPerPage": {
            "title": "Items Per Page",
            "minimum": 5,
            "maximum": 100,
            "type": "integer",
            "description": "Number of items to show per page",
            "default": 20
          },
          "baseUrl": {
            "title": "Base URL",
            "type": "string",
            "description": "Base URL for asset paths (e.g., '/' for root, '/repo-name/' for GitHub Pages)",
            "default": "/"
          },
          "template": {
            "title": "Website Template",
            "enum": [
              "tech",
              "gaming",
              "startup",
              "crypto",
              "education",
              "support"
            ],
            "type": "string",
            "description": "Choose a template style for your website",
            "default": "tech"
          },
          "logoUrl": {
            "title": "Logo URL",
            "type": "string",
            "description": "Optional logo URL for branding"
          },
          "faviconUrl": {
            "title": "Favicon URL",
            "type": "string",
            "description": "Optional favicon URL"
          },
          "secondaryColor": {
            "title": "Secondary Color",
            "type": "string",
            "description": "Custom secondary color (hex, rgb, or color name)"
          },
          "backgroundColor": {
            "title": "Background Color",
            "type": "string",
            "description": "Custom background color (hex, rgb, or color name)"
          },
          "textColor": {
            "title": "Text Color",
            "type": "string",
            "description": "Custom text color (hex, rgb, or color name)"
          },
          "fontFamily": {
            "title": "Font Family",
            "type": "string",
            "description": "Custom font family (e.g., 'Inter', 'Roboto', 'Open Sans')"
          },
          "accentColor": {
            "title": "Accent Color",
            "type": "string",
            "description": "Accent color for special highlights and notifications (hex, rgb, or color name)"
          },
          "surfaceColor": {
            "title": "Surface Color",
            "type": "string",
            "description": "Color for elevated surfaces and containers (hex, rgb, or color name)"
          },
          "cardColor": {
            "title": "Card Color",
            "type": "string",
            "description": "Background color for cards and content blocks (hex, rgb, or color name)"
          },
          "textPrimary": {
            "title": "Primary Text Color",
            "type": "string",
            "description": "Main text color for headings and content (hex, rgb, or color name)"
          },
          "textSecondary": {
            "title": "Secondary Text Color",
            "type": "string",
            "description": "Secondary text color for subtitles and metadata (hex, rgb, or color name)"
          },
          "textMuted": {
            "title": "Muted Text Color",
            "type": "string",
            "description": "Muted text color for placeholders and inactive elements (hex, rgb, or color name)"
          },
          "borderColor": {
            "title": "Border Color",
            "type": "string",
            "description": "Color for borders and dividers (hex, rgb, or color name)"
          },
          "successColor": {
            "title": "Success Color",
            "type": "string",
            "description": "Color for success messages and positive states (hex, rgb, or color name)"
          },
          "warningColor": {
            "title": "Warning Color",
            "type": "string",
            "description": "Color for warning messages and caution states (hex, rgb, or color name)"
          },
          "errorColor": {
            "title": "Error Color",
            "type": "string",
            "description": "Color for error messages and danger states (hex, rgb, or color name)"
          },
          "customCss": {
            "title": "Custom CSS",
            "type": "string",
            "description": "Additional CSS to inject into the website"
          },
          "customJs": {
            "title": "Custom JavaScript",
            "type": "string",
            "description": "Additional JavaScript to inject into the website"
          },
          "maxThreadTitleLength": {
            "title": "Max Thread Title Length",
            "minimum": 20,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum length for thread titles (will be truncated)",
            "default": 100
          },
          "maxPostContentLength": {
            "title": "Max Post Content Length",
            "minimum": 50,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum length for post content preview on cards",
            "default": 500
          },
          "showUserAvatars": {
            "title": "Show User Avatars",
            "type": "boolean",
            "description": "Display user profile pictures",
            "default": true
          },
          "showTimestamps": {
            "title": "Show Timestamps",
            "type": "boolean",
            "description": "Display post timestamps",
            "default": true
          },
          "showThreadTags": {
            "title": "Show Thread Tags",
            "type": "boolean",
            "description": "Display Discord thread tags if available",
            "default": true
          },
          "threadSorting": {
            "title": "Thread Sorting",
            "enum": [
              "date",
              "popularity",
              "replies"
            ],
            "type": "string",
            "description": "Default sorting method for threads",
            "default": "date"
          },
          "metaKeywords": {
            "title": "Meta Keywords",
            "type": "string",
            "description": "Comma-separated SEO keywords"
          },
          "metaAuthor": {
            "title": "Meta Author",
            "type": "string",
            "description": "Website author for SEO"
          },
          "googleAnalyticsId": {
            "title": "Google Analytics ID",
            "type": "string",
            "description": "Google Analytics tracking ID (e.g., GA-XXXXXXXXX-X)"
          },
          "googleSiteVerification": {
            "title": "Google Site Verification",
            "type": "string",
            "description": "Google Search Console verification code"
          },
          "twitterHandle": {
            "title": "Twitter Handle",
            "type": "string",
            "description": "Twitter handle for Twitter Cards (without @)"
          },
          "ogImage": {
            "title": "Open Graph Image",
            "type": "string",
            "description": "URL for Open Graph image for social media sharing"
          },
          "deploymentMethod": {
            "title": "Deployment Method",
            "enum": [
              "vercel",
              "netlify",
              "github",
              "zip"
            ],
            "type": "string",
            "description": "How to deploy the generated website",
            "default": "zip"
          },
          "vercelToken": {
            "title": "Vercel Token",
            "type": "string",
            "description": "Vercel deployment token (required if using Vercel deployment)"
          },
          "netlifyToken": {
            "title": "Netlify Token",
            "type": "string",
            "description": "Netlify deployment token (required if using Netlify deployment)"
          },
          "githubRepo": {
            "title": "GitHub Repository",
            "type": "string",
            "description": "GitHub repository in format 'username/repo-name' (required if using GitHub deployment)"
          },
          "githubToken": {
            "title": "GitHub Token",
            "type": "string",
            "description": "GitHub personal access token (required if using GitHub deployment)"
          },
          "customDomain": {
            "title": "Custom Domain",
            "type": "string",
            "description": "Optional custom domain for deployment"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}