Discord
What Discord data is for.
Use Discord when you need search and discovery without maintaining a separate adapter for each route. Start with the lowest-cost live operation, then add search or list endpoints only when the response shape fits your product.
Live
3
Paid only
2
Price floor
1 cr
Use cases
Discord invite
Call /v1/discord/invites/{code} when you need a normalized discord invite response with the same credit and cache rules as the rest of the catalog.
Get Discord server
Call /v1/discord/servers/{serverId} when you need a normalized get discord server response with the same credit and cache rules as the rest of the catalog.
Search Discord servers
Call /v1/discord/servers/search when you need a normalized search discord servers response with the same credit and cache rules as the rest of the catalog.
Auth & error contract.
Auth
Send x-api-key: cf_live_... or Authorization: Bearer cf_live_.... A missing or invalid key returns 401.
Billing
Successful lookups charge the listed credits. Cache hits, 5xx responses and mapped 503 routes cost 0 credits.
Limits
429 includes Retry-After and costs nothing. Paid-only routes return 403 plan_required before any provider call.
Mapped routes
14 routes are cataloged but not connected. They return 503 upstream_not_configured and never charge.
Operations
Live / 3
readyDiscord invite
/v1/discord/invites/{code}| Name | Type | Required | Description |
|---|---|---|---|
| code | string | yes | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/discord/invites/{code}?code=example" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "discord",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 5 times per day.
- • Responses are cached for 0.08333333333333333h.
- • A public record that does not exist returns not_found and is charged once.
Get Discord server
/v1/discord/servers/{serverId}| Name | Type | Required | Description |
|---|---|---|---|
| serverId | string | yes | Lookup parameter. |
| include | string | no | Lookup parameter. |
| announcements | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/discord/servers/{serverId}" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "discord",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Search Discord servers
/v1/discord/servers/search| Name | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search query or keyword. |
| category | string | no | Lookup parameter. |
| page | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/discord/servers/search?query=nike" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "discord",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Mapped / 14
503 · 0 creditsList Discord announcement channel
/v1/discord/announcement-channels/{channelId}
Get Discord announcement
/v1/discord/announcement-channels/{channelId}/posts/{messageId}
List Discord announcement index
/v1/discord/announcements/index
Get Discord application
/v1/discord/applications/{applicationId}
List similar Discord applications
/v1/discord/applications/{applicationId}/similar
List Discord application collections
/v1/discord/applications/collections
List Discord application index
/v1/discord/applications/index
Get Discord game
/v1/discord/games/{applicationId}
List Discord game index
/v1/discord/games/index
List Discord trending games
/v1/discord/games/trending
List Discord servers
/v1/discord/servers
Get Discord server widget
/v1/discord/servers/{serverId}/widget
List Discord server index
/v1/discord/servers/index
Get Discord template
/v1/discord/templates/{code}
Common Discord API questions
How many Discord operations are live?
3 of 17 cataloged operations are live. 14 mapped operations return 503 upstream_not_configured and cost 0 credits.
What does a Discord call cost?
Live operations range from 1 to 15 credits. 1 is available on the free daily cap and 2 are paid-only. Cache hits cost 0 credits.
Are Discord responses cached?
Successful responses are cached between 0.08333333333333333h and 6h. A cache hit costs 0 credits and does not consume the free daily cap.
How do I authenticate Discord requests?
Send x-api-key or Authorization: Bearer with a CleanFetch key. Missing or invalid keys return 401; paid-only routes return 403 plan_required; rate limits return 429 with Retry-After. A 5xx or timeout costs 0 credits.