Sources › Social media › Discord Invite Info › Invite Info

Discord Invite Info Invite Info API

Get information about a Discord invite.

Discord Invite InfoGET /inviteAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/social-media:discord/invite/:code

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 5 minutes.

Parameters

NameTypeInRequiredDescription
codestringpathYesDiscord invite code (e.g. 'abcd1234' or full discord.gg URL) Example: discord-api

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/social-media:discord/invite/discord-api" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/social-media:discord/invite/discord-api", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/social-media:discord/invite/discord-api",
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "social-media:discord",
  "data": {
    "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
  },
  "timestamp": "2026-05-27T13:36:09Z"
}

Frequently asked questions

How do I call the Discord Invite Info Invite Info API?

Send a GET request to https://api.zapi.ink/v1/social-media:discord/invite/discord-api with your Zapi key in the x-api-key header. Parameters — required: code. The response is JSON in the { project, data, timestamp } envelope.

What does the Discord Invite Info Invite Info API return?

Get information about a Discord invite. The example response has the fields ok, code, type, guild, channel, inviter, expiresAt, memberCount.

Is the Discord Invite Info Invite Info API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.

Can an AI assistant call the Discord Invite Info Invite Info API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "discord" and endpoint "invite".

What other Discord Invite Info API endpoints are there?

It has 2 endpoints. Besides Invite Info: Get Server Widget.