{
  "openapi": "3.0.1",
  "info": {
    "title": "Discord Community Server Finder & Invite Stats",
    "description": "Find public Discord communities in the Discords.com and Discord server directories, resolve discord.gg invites into live member and online counts, read public widgets and track growth over time. No Discord account, login or user token required.",
    "version": "1.0",
    "x-build-id": "LAno6UcFRqx39JxiC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~discord-community-server-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-discord-community-server-finder",
        "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/xyrelith-data~discord-community-server-finder/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-discord-community-server-finder",
        "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/xyrelith-data~discord-community-server-finder/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-discord-community-server-finder",
        "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",
        "properties": {
          "mode": {
            "title": "What to do",
            "enum": [
              "search",
              "byUrls",
              "invites",
              "monitor"
            ],
            "type": "string",
            "description": "Search the public directory, resolve server URLs/IDs, resolve invite links in bulk, or monitor growth between runs.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search keyword",
            "type": "string",
            "description": "Keyword or topic for search mode, e.g. anime, gaming, crypto, study, roleplay. Leave empty when you only use tags."
          },
          "tags": {
            "title": "Directory tags",
            "type": "array",
            "description": "One or more Discords.com tags to browse (Anime, Gaming, Crypto, Learning, Roleplay, Music, Tech, Social...). Multiple tags are merged and deduplicated.",
            "items": {
              "type": "string"
            }
          },
          "serverUrls": {
            "title": "Server URLs or IDs",
            "type": "array",
            "description": "Directory listing URLs, discord.com/servers links, invite links, server slugs or numeric guild IDs for byUrls mode.",
            "items": {
              "type": "string"
            }
          },
          "inviteCodes": {
            "title": "Invite links or codes",
            "type": "array",
            "description": "Discord invite URLs, bare codes or vanity names for invites and monitor modes, e.g. discord.gg/python or python.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many records. The daily test prefill uses 3.",
            "default": 50
          },
          "source": {
            "title": "Directory source",
            "enum": [
              "discords",
              "discord",
              "all"
            ],
            "type": "string",
            "description": "Discords.com has deep pagination and filters. Discord's public directory is authoritative but shallow (12 results per query). all merges both and deduplicates by server ID.",
            "default": "discords"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "members",
              "bumped",
              "votes",
              "boosts",
              "newest"
            ],
            "type": "string",
            "description": "relevance is the directory's default. members = top servers, bumped = trending/most active, votes/boosts = most voted/boosted, newest = added in the last week.",
            "default": "relevance"
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Page depth for directory search. Discords.com returns 36 servers per tag page and 24 per keyword page.",
            "default": 1
          },
          "includeServerDetails": {
            "title": "Fetch server detail pages",
            "type": "boolean",
            "description": "Adds the long description, language, social links, keywords, badges and invite link where the source exposes them. One extra request per server.",
            "default": true
          },
          "includeWidget": {
            "title": "Include public widget data",
            "type": "boolean",
            "description": "Read each server's public widget: live online count, voice/text channel names and the widget's instant invite. Only servers with the widget enabled return data; others are marked widgetEnabled=false.",
            "default": false
          },
          "includeWidgetMembers": {
            "title": "Include widget online member sample",
            "type": "boolean",
            "description": "Add a sample of up to 100 online members (username, status, game, voice channel) when the widget is enabled.",
            "default": false
          },
          "monitorStateKey": {
            "title": "Monitor state namespace",
            "type": "string",
            "description": "Separate saved-state namespace for monitor mode. Use different keys for different schedules or projects.",
            "default": "default"
          },
          "minMembers": {
            "title": "Minimum members",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "integer",
            "description": "Skip servers below this member count."
          },
          "maxMembers": {
            "title": "Maximum members",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "integer",
            "description": "Skip servers above this member count."
          },
          "minOnline": {
            "title": "Minimum online",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "integer",
            "description": "Skip servers with fewer members online right now."
          },
          "badges": {
            "title": "Discord badges",
            "type": "array",
            "description": "Only servers with all selected badges.",
            "items": {
              "type": "string",
              "enum": [
                "verified",
                "partnered",
                "community",
                "discoverable"
              ],
              "enumTitles": [
                "Verified",
                "Partnered",
                "Community",
                "Discoverable"
              ]
            }
          },
          "nsfwFilter": {
            "title": "18+ content",
            "enum": [
              "include",
              "hidden",
              "only"
            ],
            "type": "string",
            "description": "Include 18+ servers, hide them, or return only 18+ servers.",
            "default": "include"
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Only servers whose directory language matches one of these codes.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "ar",
                "zh-TW",
                "cz",
                "de",
                "es",
                "el",
                "fr",
                "it",
                "ja",
                "kr",
                "nl",
                "pt",
                "pl",
                "ru",
                "th",
                "tr",
                "vi"
              ],
              "enumTitles": [
                "English",
                "Arabic",
                "Chinese (Traditional)",
                "Czech",
                "German",
                "Spanish",
                "Greek",
                "French",
                "Italian",
                "Japanese",
                "Korean",
                "Dutch",
                "Portuguese",
                "Polish",
                "Russian",
                "Thai",
                "Turkish",
                "Vietnamese"
              ]
            }
          },
          "activityLevels": {
            "title": "Activity level",
            "type": "array",
            "description": "Only servers matching one of these activity levels.",
            "items": {
              "type": "string",
              "enum": [
                "medium",
                "active",
                "veryActive"
              ],
              "enumTitles": [
                "Medium",
                "Active",
                "Very active"
              ]
            }
          },
          "channelTypes": {
            "title": "Channel types",
            "type": "array",
            "description": "Only servers that have one of these channel types.",
            "items": {
              "type": "string",
              "enum": [
                "voice",
                "forums",
                "stages",
                "announcements"
              ],
              "enumTitles": [
                "Voice channels",
                "Forums",
                "Stages",
                "Announcements"
              ]
            }
          },
          "minBoostLevel": {
            "title": "Minimum boost level",
            "enum": [
              "0",
              "1",
              "2",
              "3"
            ],
            "type": "string",
            "description": "0 = any, 1/2/3 = servers with at least that Nitro boost level.",
            "default": "0"
          },
          "serverAge": {
            "title": "Server age",
            "enum": [
              "any",
              "new",
              "growing",
              "established",
              "veteran"
            ],
            "type": "string",
            "description": "Filter by how old the server is.",
            "default": "any"
          },
          "fresh": {
            "title": "New on Discords",
            "enum": [
              "any",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Only servers added to the directory recently.",
            "default": "any"
          },
          "hasClanTag": {
            "title": "Has a clan tag",
            "type": "boolean",
            "description": "Only servers with a Discord clan/guild tag.",
            "default": false
          },
          "hasUpcomingEvent": {
            "title": "Has an upcoming event",
            "type": "boolean",
            "description": "Only servers with a scheduled event.",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}