---
title: "Top.gg API: Search | Perceptlayer"
description: "Search from Top.gg as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/topgg/search
---

[APIs](https://perceptlayer.com/apis) / [Top.gg](https://perceptlayer.com/apis/topgg) / Search

# Top.gg: Search

Search from Top.gg as JSON. 1 credit per successful call.

GET `/v1/topgg/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `type` | string | Required | BOT, SERVER |
| `query` | string | Optional | Up to 200 characters |
| `tag` | string | Optional | Up to 100 characters |
| `sort` | string | Optional | MONTHLY\_VOTES |
| `skip` | integer | Optional | Any |
| `limit` | integer | Optional | Any |
| `locale` | string | Optional | en, de |

## Example request

Top.gg

GET /v1/topgg/search?type=BOT 

```
{
  "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
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/topgg?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

Each item in `data.items` has these 12 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `id` | string |
| `externalId` | string |
| `type` | string |
| `name` | string |
| `description` | string |
| `tags` | object\[\] |
| `votes` | integer |
| `memberCount` | integer |
| `imageUrl` | url |
| `createdAt` | string |
| `rating` | number |
| `reviewCount` | integer |
