# Discord Invite Info — Zapi reference > Resolve Discord invite codes to server information. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/social-media/discord - Endpoint catalog: https://zpi.web.id/category/social-media - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## Discord Invite Info **Category:** social-media · **Slug:** `discord` **Detail page:** https://zpi.web.id/api/social-media/discord Resolve Discord invite codes to server information. **Tags:** discord, messaging ### Invite Info Get information about a Discord invite. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/social-media:discord/invite/:code` - **Cache TTL:** 300s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `code` | string | path | yes | Discord invite code (e.g. 'abcd1234' or full discord.gg URL) | **cURL:** ```bash curl "https://api.zpi.web.id/v1/social-media:discord/invite/:code" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/social-media:discord/invite/:code", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/social-media:discord/invite/:code", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "ok": true, "code": "discord-api", "type": 0, "guild": { "id": "81384788765712384", "icon": "https://cdn.discordapp.com/icons/81384788765712384/a363a84e969bcbe1353eb2fdfb2e50e6.png", "name": "Discord API", "banner": "https://cdn.discordapp.com/banners/81384788765712384/eb9ca6e176964bd43ee5b098dbbf3a78.png", "splash": "", "features": [ "INVITE_SPLASH", "AUTO_MODERATION", "TIERLESS_BOOSTING_SYSTEM_MESSAGE", "VANITY_URL", "PREVIEW_ENABLED", "TIERLESS_BOOSTING", "WELCOME_SCREEN_ENABLED", "COMMUNITY_EXP_LARGE_UNGATED", "SOUNDBOARD", "THREADS_ENABLED", "NEW_THREAD_PERMISSIONS", "MEMBER_VERIFICATION_GATE_ENABLED", "NEWS", "COMMUNITY", "CHANNEL_ICON_EMOJIS_GENERATED", "VIP_REGIONS", "AGE_VERIFICATION_LARGE_GUILD" ], "nsfwLevel": 0, "description": "", "premiumTier": 1, "vanityUrlCode": "discord-api", "verificationLevel": 3 }, "channel": { "id": "381898062269775883", "name": "rules", "type": 0 }, "inviter": null, "expiresAt": null, "memberCount": 47730, "presenceCount": 14673 } ``` --- _Generated: 2026-08-02T14:32:26.485Z_