Skip to content
game-kb

Endpoint

List entities

GET /api/{game}/entities.json

Every entity in one game, reduced to what a list needs: identity, tags and counts. This is the file to search against — it holds no values, so it stays small enough to fetch up front.

Path parameters

gamestringA game slug from the index.

Response

An object holding the game’s entity index.

gamestringThe slug this list belongs to.
titlestringDisplay name of the game.
attributionstringSource and terms for this game’s data.
entitiesEntitySummary[]One entry per entity.
entities[].idstringStable identifier. Unique within the game only.
entities[].filestringWhat to put in the entity URL. Differs from id where the id carries punctuation.
entities[].typestringability, weapon, champion, spell, item, map, system.
entities[].namestringWhat players call it.
entities[].groupstringThe heading it belongs under — its agent, champion or category.
entities[].tagsstring[]Identity worth showing in a row: slot, class, codename, removal patch.
entities[].description?string | nullWhat it does, in the game’s own words.
entities[].valuesintegerHow many values currently resolve.
entities[].factsintegerHow many facts in total, including superseded ones.

Fetch this once per game and filter it client-side. A search that refetches on every keystroke is slower and no fresher.

Request

curl -s -H "x-api-key: $KB_API_KEY" https://kb.play-ascend.com/api/valorant/entities.json

Response example

{
  "schemaVersion": 3,
  "game": "valorant",
  "title": "VALORANT",
  "attribution": "Ability figures are facts extracted from Riot Games' official VALORA…",
  "entities": [
    {
      "id": "abyss",
      "file": "abyss",
      "type": "map",
      "name": "Abyss",
      "group": "Maps",
      "tags": [
        "A/B Sites",
        "Infinity"
      ],
      "description": null,
      "values": 5,
      "facts": 5
    },
    {
      "id": "ares",
      "file": "ares",
      "type": "weapon",
      "name": "Ares",
      "group": "Heavy Weapons",
      "tags": [
        "Heavy Weapons",
        "LMG"
      ],
      "description": null,
      "values": 18,
      "facts": 21
    },
    "… 189 more"
  ]
}