APIs / Social media / Top.gg
1 credit per call6 endpoints12 datapointsChecked working 6 Dec 2026
Top.gg API
Top.gg API for Discord bot and server listings: tag search, votes, members, ratings, review texts and vote widgets as JSON. 1 credit per successful call.
{
"success": true,
"data": {
"items": [
{
"id": "4283371123597541376",
"externalId": "432610292342587392",
"type": "DiscordBot",
"name": "Mudae",
"description": "Database of 140,000 anime/game characters: make and customize the best collection in your server. 400 commands, multiplayer games and more!",
"tags": [
{
"slug": "anime",
"name": "Anime",
"count": 79958
},
{
"slug": "fun",
"name": "Fun",
"count": 146611
},
{
"slug": "game",
"name": "Game",
"count": 17882
}
],
"votes": 2709210,
"memberCount": 3371839,
"imageUrl": "https://cdn.discordapp.com/avatars/432610292342587392/29cb28fbf65a3958105026ab03abd306.webp?size=256",
"createdAt": "2018-04-21T21:17:57Z",
"rating": 89.96768112038782,
"reviewCount": 14852
},
{
"id": "4283790394010009600",
"externalId": "646937666251915264",
"type": "DiscordBot",
"name": "Karuta",
"description": "EDITION 8️⃣ DROPPING NOW! #1 ANIME CARD BOT! 🎴 Over 180,000 anime cards to collect, trade, customize, date, fight, and much more!",
"tags": [
{
"slug": "anime",
"name": "Anime",
"count": 79958
},
{
"slug": "art",
"name": "Art",
"count": 10690
},
{
"slug": "economy",
"name": "Economy",
"count": 22939
}
],
"votes": 922403,
"memberCount": 916415,
"imageUrl": "https://cdn.top.gg/icons/4283790394010009600/2b096056691349d7f902499c2c18ea7f97102207d8fae6cbed23cc640fd4c43e.webp",
"createdAt": "2020-02-06T10:09:04Z",
"rating": 87.95600366636114,
"reviewCount": 1091
},
{
"id": "4283331369380249600",
"externalId": "408785106942164992",
"type": "DiscordBot",
"name": "OwO",
"description": "Keep track of your OwOs and compete globally! Hunt for animals and fight other users!",
"tags": [
{
"slug": "economy",
"name": "Economy",
"count": 22939
},
{
"slug": "fun",
"name": "Fun",
"count": 146611
},
{
"slug": "game",
"name": "Game",
"count": 17882
}
],
"votes": 521803,
"memberCount": 2019,
"imageUrl": "https://cdn.discordapp.com/avatars/408785106942164992/1a449430e3a9a830efebb8c57917f943.webp?size=256",
"createdAt": "2018-02-04T09:00:37Z",
"rating": 90.85674644467568,
"reviewCount": 5766
}
],
"tags": [
{
"slug": "gaming",
"name": "Gaming",
"count": 172698
},
{
"slug": "fun",
"name": "Fun",
"count": 146611
},
{
"slug": "social",
"name": "Social",
"count": 145092
}
],
"count": 20
},
"meta": {
"pagination": "offset",
"filters": {
"type": "BOT",
"skip": 0,
"limit": 20,
"locale": "en"
},
"endpoint_family": "search",
"upstream_requests": 1,
"duration_ms": 484,
"request_id": "req_4334d3789ade454fb14eff90ab183672",
"credits_charged": 1,
"credits_remaining": 4855
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | idstring | externalIdstring | typestring | namestring | descriptionstring | tagsobject[] | votesinteger | memberCountinteger | imageUrlurl | createdAtstring | ratingnumber | reviewCountinteger |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 4283371123597541376 | 432610292342587392 | DiscordBot | Mudae | Database of 140,000 anime/game characters: make and customize the best collection in your server. 400 commands, multiplayer games and more! | [3 items] | 2709210 | 3371839 | https://cdn.discordapp.com/avatars/432610292342587392/29cb28fbf65a3958105026ab03abd306.webp?size=256 | 2018-04-21T21:17:57Z | 89.96768112038782 | 14852 |
| 2 | 4283790394010009600 | 646937666251915264 | DiscordBot | Karuta | EDITION 8️⃣ DROPPING NOW! #1 ANIME CARD BOT! 🎴 Over 180,000 anime cards to collect, trade, customize, date, fight, and much more! | [3 items] | 922403 | 916415 | https://cdn.top.gg/icons/4283790394010009600/2b096056691349d7f902499c2c18ea7f97102207d8fae6cbed23cc640fd4c43e.webp | 2020-02-06T10:09:04Z | 87.95600366636114 | 1091 |
| 3 | 4283331369380249600 | 408785106942164992 | DiscordBot | OwO | Keep track of your OwOs and compete globally! Hunt for animals and fight other users! | [3 items] | 521803 | 2019 | https://cdn.discordapp.com/avatars/408785106942164992/1a449430e3a9a830efebb8c57917f943.webp?size=256 | 2018-02-04T09:00:37Z | 90.85674644467568 | 5766 |
[
{
"id": "4283371123597541376",
"externalId": "432610292342587392",
"type": "DiscordBot",
"name": "Mudae",
"description": "Database of 140,000 anime/game characters: make and customize the best collection in your server. 400 commands, multiplayer games and more!",
"tags": [
{
"slug": "anime",
"name": "Anime",
"count": 79958
},
{
"slug": "fun",
"name": "Fun",
"count": 146611
},
{
"slug": "game",
"name": "Game",
"count": 17882
}
],
"votes": 2709210,
"memberCount": 3371839,
"imageUrl": "https://cdn.discordapp.com/avatars/432610292342587392/29cb28fbf65a3958105026ab03abd306.webp?size=256",
"createdAt": "2018-04-21T21:17:57Z",
"rating": 89.96768112038782,
"reviewCount": 14852
},
{
"id": "4283790394010009600",
"externalId": "646937666251915264",
"type": "DiscordBot",
"name": "Karuta",
"description": "EDITION 8️⃣ DROPPING NOW! #1 ANIME CARD BOT! 🎴 Over 180,000 anime cards to collect, trade, customize, date, fight, and much more!",
"tags": [
{
"slug": "anime",
"name": "Anime",
"count": 79958
},
{
"slug": "art",
"name": "Art",
"count": 10690
},
{
"slug": "economy",
"name": "Economy",
"count": 22939
}
],
"votes": 922403,
"memberCount": 916415,
"imageUrl": "https://cdn.top.gg/icons/4283790394010009600/2b096056691349d7f902499c2c18ea7f97102207d8fae6cbed23cc640fd4c43e.webp",
"createdAt": "2020-02-06T10:09:04Z",
"rating": 87.95600366636114,
"reviewCount": 1091
},
{
"id": "4283331369380249600",
"externalId": "408785106942164992",
"type": "DiscordBot",
"name": "OwO",
"description": "Keep track of your OwOs and compete globally! Hunt for animals and fight other users!",
"tags": [
{
"slug": "economy",
"name": "Economy",
"count": 22939
},
{
"slug": "fun",
"name": "Fun",
"count": 146611
},
{
"slug": "game",
"name": "Game",
"count": 17882
}
],
"votes": 521803,
"memberCount": 2019,
"imageUrl": "https://cdn.discordapp.com/avatars/408785106942164992/1a449430e3a9a830efebb8c57917f943.webp?size=256",
"createdAt": "2018-02-04T09:00:37Z",
"rating": 90.85674644467568,
"reviewCount": 5766
}
]id,externalId,type,name,description,tags,votes,memberCount,imageUrl,createdAt,rating,reviewCount
4283371123597541376,432610292342587392,DiscordBot,Mudae,"Database of 140,000 anime/game characters: make and customize the best collection in your server. 400 commands, multiplayer games and more!","[{""slug"":""anime"",""name"":""Anime"",""count"":79958},{""slug"":""fun"",""name"":""Fun"",""count"":146611},{""slug"":""game"",""name"":""Game"",""count"":17882}]",2709210,3371839,https://cdn.discordapp.com/avatars/432610292342587392/29cb28fbf65a3958105026ab03abd306.webp?size=256,2018-04-21T21:17:57Z,89.96768112038782,14852
4283790394010009600,646937666251915264,DiscordBot,Karuta,"EDITION 8️⃣ DROPPING NOW! #1 ANIME CARD BOT! 🎴 Over 180,000 anime cards to collect, trade, customize, date, fight, and much more!","[{""slug"":""anime"",""name"":""Anime"",""count"":79958},{""slug"":""art"",""name"":""Art"",""count"":10690},{""slug"":""economy"",""name"":""Economy"",""count"":22939}]",922403,916415,https://cdn.top.gg/icons/4283790394010009600/2b096056691349d7f902499c2c18ea7f97102207d8fae6cbed23cc640fd4c43e.webp,2020-02-06T10:09:04Z,87.95600366636114,1091
4283331369380249600,408785106942164992,DiscordBot,OwO,Keep track of your OwOs and compete globally! Hunt for animals and fight other users!,"[{""slug"":""economy"",""name"":""Economy"",""count"":22939},{""slug"":""fun"",""name"":""Fun"",""count"":146611},{""slug"":""game"",""name"":""Game"",""count"":17882}]",521803,2019,https://cdn.discordapp.com/avatars/408785106942164992/1a449430e3a9a830efebb8c57917f943.webp?size=256,2018-02-04T09:00:37Z,90.85674644467568,5766Recorded from our API · 3 items shown · 12 datapoints per itemGET /v1/topgg/search?type=BOT
12 datapoints
Identity
- idstring
- externalIdstring
- typestring
- namestring
Contact
- imageUrlurl
Reputation
- ratingnumber
- reviewCountinteger
Other
- descriptionstring
- tagsobject[]
- votesinteger
- memberCountinteger
- createdAtstring
Playground
Run this API
curl "https://api.perceptlayer.com/v1/topgg/search?type=BOT" \
-H "X-API-Key: $API_KEY"Top.gg · 6 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/topgg/bot | id | idexternalIdtypenamedescriptiontags+6 more | 1 credit |
GET/v1/topgg/reviews | id+2 optional | idtextscorecreatedAtauthor | 1 credit |
GET/v1/topgg/search | type+6 optional | idexternalIdtypenamedescriptiontags+6 more | 1 credit |
GET/v1/topgg/server | id | idexternalIdtypenamedescriptiontags+6 more | 1 credit |
GET/v1/topgg/tags | query+2 optional | slugnamecount | 1 credit |
GET/v1/topgg/widget | id | idmimeimage_base64image_url | 1 credit |
Overview
About the Top.gg API
What you can get
The Top.gg API returns Top.gg Discord bot and server listings as JSON through 6 endpoints.
- Search:
searchtakes atype(BOTorSERVER), withquery,tag,sort(MONTHLY_VOTES),skip,limitandlocale(enorde).tagstakes aquery, withtypeandlocale, and returns matching tags with listing counts. - Listings:
botandservertake anid, the Discord id of the bot or server. - Reviews:
reviewstakes anid, Top.gg's own internal id, withskipandlimit. - Widget:
widgettakes a bot's Discordidand returns its vote widget as a PNG.
The recorded bot call for Mudae returns id (Top.gg's internal id), externalId (the Discord id), type, name, description, tags, votes, memberCount, imageUrl, createdAt, rating and reviewCount. Mudae had 2,708,163 votes, 3,371,839 members and a rating of 89.97 from 14,852 reviews.
How a call works
Search, then look up: GET /v1/topgg/search?type=BOT with your key in the X-API-Key header returns 20 listings with both ids. Pass the externalId (Discord id) to bot, server or widget, for example GET /v1/topgg/bot?id=432610292342587392, and the internal id to reviews: GET /v1/topgg/reviews?id=4283371123597541376. Page search and reviews with skip and limit. Every successful call costs 1 credit; failed calls cost nothing.
More social media APIs
Use cases
Rank Discord bots in a tag such as music or anime by votes and members
Use the Top.gg API to rank Discord bots in a tag such as music or anime by votes and membersTrack a bot's or server's votes, member count and rating over time
Use the Top.gg API to track a bot's or server's votes, member count and rating over timeCollect review texts and scores for a bot
Use the Top.gg API to collect review texts and scores for a botFind the most voted bots this month with `sort=MONTHLY_VOTES`
Use the Top.gg API to find the most voted bots this month with `sort=MONTHLY_VOTES`FAQ
Questions
How much does the Top.gg API cost?
Each successful call costs one credit, whichever endpoint you call, and each page of results or reviews is one call. Failed calls cost nothing.
Which id goes where?
`bot`, `server` and `widget` take the Discord id, returned as `externalId` (for Mudae, 432610292342587392). `reviews` takes Top.gg's internal `id` from search or listing results (for Mudae, 4283371123597541376).
What do reviews return?
Each review has `id`, `text`, `score` (0 to 100), `createdAt` and `author`, 20 per page by default. The listing `rating` is on the same 0 to 100 scale.
Do I need a Top.gg account?
No. You call this Top.gg API with your Perceptlayer key in the `X-API-Key` header, with no Top.gg or Discord login.
Is this the official Top.gg API?
No. Perceptlayer is an independent service and is not affiliated with Top.gg. It returns Top.gg data as JSON with a Perceptlayer key, so there is no Top.gg developer account, app review or partner approval to get first. It only reads data: if Top.gg has an official API and you need to act on your own Top.gg account, such as posting, managing orders or reading private data, use that one.
Should I build a Top.gg scraper instead?
You can, but a Top.gg scraper is code you maintain: page changes break it, requests get blocked, and Top.gg's terms govern how you collect data. The Top.gg API gives you 6 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.
Try the Top.gg API with 100 free credits
No credit card. Failed calls are never billed.