{
  "name": "Empire-Md Bot API",
  "status": "online",
  "database": "mongodb",
  "routes": {
    "root": {
      "method": "GET",
      "path": "/",
      "description": "API info and route index"
    },
    "health": {
      "method": "GET",
      "path": "/health",
      "description": "MongoDB connection check"
    },
    "list": {
      "method": "GET",
      "path": "/bot/list",
      "description": "All bot ids with version, user count, last heartbeat"
    },
    "getUser": {
      "method": "GET",
      "path": "/bot/getUser",
      "query": {
        "id": "required — bot id (empire-md or HRKU_empire-md)"
      },
      "description": "Users for one bot with lastSeen times and bot version"
    },
    "addUser": {
      "method": "GET",
      "path": "/bot/addUser",
      "query": {
        "id": "required",
        "number": "required",
        "version": "optional"
      },
      "description": "Register or refresh a user phone for a bot"
    },
    "heartbeat": {
      "method": "GET",
      "path": "/bot/heartbeat",
      "query": {
        "id": "required",
        "version": "optional"
      },
      "description": "Update bot online time and version"
    },
    "active": {
      "method": "GET",
      "path": "/bot/active",
      "query": {
        "id": "required"
      },
      "description": "Users active in the last 24 hours"
    },
    "version": {
      "method": "GET",
      "path": "/bot/version",
      "query": {
        "id": "optional — one bot; omit for global version counts"
      },
      "description": "Bot version for one id, or all versions across bots"
    },
    "leaderboard": {
      "method": "GET",
      "path": "/bot/leaderboard",
      "query": {
        "limit": "optional, default 10, max 50"
      },
      "description": "Top bots by user count"
    },
    "geo": {
      "method": "GET",
      "path": "/bot/geo",
      "query": {
        "id": "required"
      },
      "description": "Region breakdown from phone prefixes"
    },
    "ytmp3": {
      "method": "GET",
      "path": "/api/download/ytmp3",
      "query": {
        "url": "required — YouTube watch/shorts/youtu.be URL"
      },
      "description": "YouTube audio (128kbps) direct download link"
    },
    "ytmp4": {
      "method": "GET",
      "path": "/api/download/ytmp4",
      "query": {
        "url": "required — YouTube watch/shorts/youtu.be URL"
      },
      "description": "YouTube video download links by quality (240–1080)"
    },
    "gitclone": {
      "method": "GET",
      "path": "/api/download/gitclone",
      "query": {
        "url": "required — GitHub repository URL"
      },
      "description": "GitHub repo zipball download URL and filename"
    },
    "gdrive": {
      "method": "GET",
      "path": "/api/download/gdrive",
      "query": {
        "url": "Google Drive share link",
        "id": "or file id only (alternative to url)"
      },
      "description": "Google Drive public file direct download link and metadata"
    },
    "dailymotion": {
      "method": "GET",
      "path": "/api/download/dailymotion",
      "query": {
        "url": "required — Dailymotion video URL"
      },
      "description": "Dailymotion video streams (MP4 or HLS) with title and thumbnail"
    },
    "facebook": {
      "method": "GET",
      "path": "/api/download/facebook",
      "query": {
        "url": "required — Facebook reel/watch/share URL"
      },
      "description": "Facebook video HD/SD links with title and thumbnail"
    },
    "instagram": {
      "method": "GET",
      "path": "/api/download/instagram",
      "query": {
        "url": "required — Instagram post/reel URL"
      },
      "description": "Instagram media download links"
    },
    "tiktok": {
      "method": "GET",
      "path": "/api/download/tiktok",
      "query": {
        "url": "required — TikTok video URL"
      },
      "description": "TikTok video download links with title and thumbnail"
    },
    "mediafire": {
      "method": "GET",
      "path": "/api/download/mediafire",
      "query": {
        "url": "required — MediaFire file page URL"
      },
      "description": "MediaFire direct download link and file metadata"
    },
    "twitter": {
      "method": "GET",
      "path": "/api/download/twitter",
      "query": {
        "url": "required — Twitter/X post URL"
      },
      "description": "Twitter/X video download links (HD, SD, audio)"
    },
    "aiChatgpt": {
      "method": "GET",
      "path": "/api/ai/chatgpt",
      "query": {
        "q": "required — chat prompt"
      },
      "description": "ChatGPT-style reply (keyless Pollinations)"
    },
    "aiGemini": {
      "method": "GET",
      "path": "/api/ai/gemini",
      "query": {
        "q": "required — chat prompt"
      },
      "description": "Gemini reply (Google web scrape, Pollinations fallback)"
    },
    "aiGroq": {
      "method": "GET",
      "path": "/api/ai/groq",
      "query": {
        "q": "required — chat prompt"
      },
      "description": "Fast LLM reply via Pollinations openai-fast"
    },
    "aiDeepseek": {
      "method": "GET",
      "path": "/api/ai/deepseek",
      "query": {
        "q": "required — chat prompt"
      },
      "description": "DeepSeek-style reply (free proxy + fallback)"
    },
    "aiWormgpt": {
      "method": "GET",
      "path": "/api/ai/wormgpt",
      "query": {
        "q": "required — chat prompt"
      },
      "description": "WormGPT / TorGPT scrape with fallback"
    }
  }
}