Sign in

Developers

Use player counts, maps, ranks and round results in your own bots and apps.

Get a key

  1. Link Discord to your game account

    Get your link code from the Account screen in the game, then run /linkaccount with it in our Discord.

  2. Sign in with Discord

    Sign in
  3. Create an app in My apps and make a key for it

    You only see the key once. Keep it on your server.

    My apps

First request

  • Send your key in the Authorization header. The examples below read it from GG_KEY.
  • Don't put it in web pages or mods. Anyone with the key can read everything your app can.
  • Public data like player counts, maps and challenges only needs the key.

curl

curl -H "Authorization: Bearer $GG_KEY" \
  https://gorillagamevr.com/api/v1/game/players

JavaScript

const answer = await fetch("https://gorillagamevr.com/api/v1/game/players", {
  headers: { Authorization: `Bearer ${process.env.GG_KEY}` },
});
const players = await answer.json();
console.log(players.total);

Python

import json, os, urllib.request

request = urllib.request.Request("https://gorillagamevr.com/api/v1/game/players")
request.add_header("Authorization", "Bearer " + os.environ["GG_KEY"])
with urllib.request.urlopen(request) as answer:
    print(json.load(answer)["total"])

Your stats

  1. Give your app the scopes you want to read

    In My apps, open the app and press Edit.

  2. Press Allow my own account

    Your player ID shows up under it.

  • Other players have to allow your app first. See Permission.

curl

curl -H "Authorization: Bearer $GG_KEY" \
  https://gorillagamevr.com/api/v1/players/p_YOUR_PLAYER_ID/rank

JavaScript

const me = "p_YOUR_PLAYER_ID";
const answer = await fetch(`https://gorillagamevr.com/api/v1/players/${me}/rank`, {
  headers: { Authorization: `Bearer ${process.env.GG_KEY}` },
});
const rank = await answer.json();
console.log(`${rank.rank}, ${rank.mmr} MMR`);

Python

import json, os, urllib.request

me = "p_YOUR_PLAYER_ID"
request = urllib.request.Request("https://gorillagamevr.com/api/v1/players/" + me + "/rank")
request.add_header("Authorization", "Bearer " + os.environ["GG_KEY"])
with urllib.request.urlopen(request) as answer:
    rank = json.load(answer)
print(rank["rank"], rank["mmr"], "MMR")

Permission

  1. Add scopes and a redirect URL to your app

    In My apps, press Edit. The URL has to be https, or http://localhost while you test.

  2. Send the player to the permission page

    https://gorillagamevr.com/authorize?app={app id}&scope={scopes}&redirect_uri={a registered address}&state={your value}

    Make a new state for every visit and check it when they come back.

  3. They're sent back to your redirect URL

    The URL has player, scope, state and ticket, or error=access_denied if they said no.

  4. Confirm the ticket from your server

    Call GET /api/v1/grants/confirm?ticket=… and use the player and state it returns. The player can edit the ones in the URL.

  5. Save the player ID

    You need it for every player endpoint.

  • Each app gets its own player IDs.
  • A player can remove their permission at any time, and it stops working right away.
  • If a player unlinks their game account or links a different one, they have to allow your app again.

Scopes

  • game:read Player counts, maps, challenges and the rank ladder No permission needed
  • identity:read A player's Discord ID and username
  • rank:read A player's MMR, rank, level and win rate
  • history:read A player's daily MMR and how long they've played each mode
  • presence:read Whether a player is online right now, and which mode and map they're in
  • rounds:read A player's round results, including tags, from when they allow your app

Example server

  1. Add http://localhost:8000/back to your app's redirect URLs.

  2. Save the file and run it with your key and app ID.

  3. Open http://localhost:8000, allow the app, and it shows your rank.

server.mjs

GG_KEY=gg_live_... GG_APP=app_... node server.mjs
import { createServer } from "node:http";
import { randomBytes } from "node:crypto";

const SITE = "https://gorillagamevr.com";
const KEY = process.env.GG_KEY;
const APP = process.env.GG_APP;
const BACK = "http://localhost:8000/back";
const waiting = new Set();

async function api(path) {
  const headers = { Authorization: `Bearer ${KEY}` };
  const answer = await fetch(SITE + path, { headers });
  if (!answer.ok) throw new Error(`${answer.status} ${await answer.text()}`);
  return answer.json();
}

createServer(async (req, res) => {
  try {
    const address = new URL(req.url, BACK);

    if (address.pathname === "/") {
      const state = randomBytes(16).toString("base64url");
      waiting.add(state);
      const ask = new URLSearchParams({
        app: APP,
        scope: "rank:read",
        redirect_uri: BACK,
        state,
      });
      res.writeHead(302, { Location: `${SITE}/authorize?${ask}` });
      return res.end();
    }

    if (address.pathname === "/back") {
      const ticket = address.searchParams.get("ticket");
      if (!ticket) return res.end("No permission given");
      const confirm = `/api/v1/grants/confirm?ticket=${encodeURIComponent(ticket)}`;
      const grant = await api(confirm);
      if (!waiting.delete(grant.state)) return res.writeHead(400).end();
      const rank = await api(`/api/v1/players/${grant.player}/rank`);
      return res.end(`${rank.rank}, ${rank.mmr} MMR`);
    }

    res.writeHead(404).end();
  } catch (problem) {
    res.writeHead(500).end(problem.message);
  }
}).listen(8000);

server.py

GG_KEY=gg_live_... GG_APP=app_... python3 server.py
import json, os, secrets, urllib.parse, urllib.request
from http.server import BaseHTTPRequestHandler, HTTPServer

SITE = "https://gorillagamevr.com"
KEY = os.environ["GG_KEY"]
APP = os.environ["GG_APP"]
BACK = "http://localhost:8000/back"
waiting = set()


def api(path):
    request = urllib.request.Request(SITE + path)
    request.add_header("Authorization", "Bearer " + KEY)
    with urllib.request.urlopen(request) as answer:
        return json.load(answer)


class Pages(BaseHTTPRequestHandler):
    def do_GET(self):
        address = urllib.parse.urlparse(self.path)
        query = dict(urllib.parse.parse_qsl(address.query))

        if address.path == "/":
            state = secrets.token_urlsafe(16)
            waiting.add(state)
            ask = urllib.parse.urlencode({
                "app": APP,
                "scope": "rank:read",
                "redirect_uri": BACK,
                "state": state,
            })
            self.send_response(302)
            self.send_header("Location", SITE + "/authorize?" + ask)
            self.end_headers()
        elif address.path == "/back":
            if "ticket" not in query:
                return self.say("No permission given")
            ticket = urllib.parse.quote(query["ticket"])
            grant = api("/api/v1/grants/confirm?ticket=" + ticket)
            if grant["state"] not in waiting:
                return self.send_error(400)
            waiting.discard(grant["state"])
            rank = api("/api/v1/players/" + grant["player"] + "/rank")
            self.say(f"{rank['rank']}, {rank['mmr']} MMR")
        else:
            self.send_error(404)

    def say(self, text):
        self.send_response(200)
        self.send_header("Content-Type", "text/plain; charset=utf-8")
        self.end_headers()
        self.wfile.write(text.encode())


HTTPServer(("localhost", 8000), Pages).serve_forever()

Rounds

  • GET /api/v1/rounds lists finished rounds for every player who gave your app rounds:read, oldest first.
  • Pass the cursor from the last response as after to get only newer rounds.
  • When hasMore is false you're caught up. Check again in a minute.

JavaScript

let cursor = "";
while (true) {
  const answer = await fetch(`https://gorillagamevr.com/api/v1/rounds?after=${cursor}`, {
    headers: { Authorization: `Bearer ${process.env.GG_KEY}` },
  });
  const page = await answer.json();
  for (const game of page.rounds) {
    for (const player of game.players) {
      console.log(game.mode, player.player, player.won ? "won" : "lost");
    }
  }
  cursor = page.cursor;
  if (!page.hasMore) await new Promise((wake) => setTimeout(wake, 60_000));
}

Python

import json, os, time, urllib.request

cursor = ""
while True:
    request = urllib.request.Request("https://gorillagamevr.com/api/v1/rounds?after=" + cursor)
    request.add_header("Authorization", "Bearer " + os.environ["GG_KEY"])
    with urllib.request.urlopen(request) as answer:
        page = json.load(answer)
    for game in page["rounds"]:
        for player in game["players"]:
            print(game["mode"], player["player"], "won" if player.get("won") else "lost")
    cursor = page["cursor"]
    if not page["hasMore"]:
        time.sleep(60)

Reference

GET /api/v1/game/status

Needs a key

The game's current version, the MMR season and the rank ladder (the MMR each rank starts at).

  • Players are unranked until they finish their placement rounds.
  • modes lists the mode keys used in player counts, presence and playtime.
  • roundModes lists the ones used in rounds.
{
  "version": "GGChristmas",
  "season": 2,
  "placementsNeeded": 5,
  "rankLadder": [
    { "name": "Bronze", "minMmr": 500 },
    { "name": "Silver", "minMmr": 1100 },
    { "name": "Gold", "minMmr": 1300 },
    { "name": "Diamond", "minMmr": 1700 },
    { "name": "Celestial", "minMmr": 2200 },
    { "name": "Vela", "minMmr": 2850 },
    { "name": "Zephyr", "minMmr": 4000 },
    { "name": "Ruby", "minMmr": 6000 }
  ],
  "modes": [
    { "key": "lobby", "name": "Lobby" },
    { "key": "custommaps", "name": "Custom maps area" },
    { "key": "taginfection", "name": "Infection, Clouds" },
    { "key": "taginfectioncave", "name": "Infection, Caves" },
    { "key": "taginfectionforest", "name": "Infection, Forest" },
    { "key": "monkeball", "name": "Zone Ball" },
    { "key": "hunt", "name": "Skylands" },
    { "key": "custommapplayers", "name": "In a custom map" }
  ],
  "roundModes": [
    { "key": "infection", "name": "Infection" },
    { "key": "monkeball", "name": "Zone Ball" },
    { "key": "hunt", "name": "Skylands" },
    { "key": "pvpfireball", "name": "Fireball" },
    { "key": "hbg", "name": "Bomb Tag" },
    { "key": "ctf", "name": "Capture the flag" },
    { "key": "1v1", "name": "1v1 tag" },
    { "key": "tag", "name": "Tag" },
    { "key": "other", "name": "Other" }
  ]
}

GET /api/v1/game/players

Needs a key

How many players are online right now, in total and by mode.

history query
Set to 1 to also get the last 24 hours, oldest first.
  • Players in a custom map are counted under custommapplayers.
  • Updated every 15 seconds.
{
  "total": 78,
  "byMode": {
    "lobby": 39,
    "taginfection": 10,
    "taginfectionforest": 13,
    "monkeball": 6,
    "hunt": 3,
    "custommaps": 3,
    "custommapplayers": 4
  },
  "asOf": "2026-11-15T21:40:00Z",
  "history": [
    { "at": "2026-11-15T21:30:00Z", "total": 74 },
    { "at": "2026-11-15T21:35:00Z", "total": 81 }
  ]
}

GET /api/v1/maps

Needs a key

Custom maps that have a picture.

sort query
verified (the default: verified maps first, newest first), newest, oldest, name or players (busiest first).
verified query
true for only verified maps, false for only unverified ones. Leave it out to get both.
page query
The page number, starting at 1.
pageSize query
Maps per page, from 1 to 50. The default is 20.
  • Verified maps come first unless you pick a different sort.
  • You can page through the first 1,000 maps of any sort.
{
  "page": 1,
  "pageSize": 20,
  "hasMore": true,
  "totalMaps": 2335,
  "maps": [
    {
      "id": "EXAMPL",
      "name": "SKY TOWERS",
      "gameMode": "Infection",
      "gameModeId": 2,
      "verified": true,
      "imageUrl": "https://api.gorillagamevr.com/DriftGate/submission_image/1/2",
      "thumbnailUrl": "https://api.gorillagamevr.com/DriftGate/submission_image/1/2",
      "playersNow": 4
    }
  ]
}

GET /api/v1/maps/{id}

Needs a key

One custom map with its name, mode, picture, when it was made and last updated, and how many players are in it right now.

id path
The map's 6-character ID.
{
  "id": "EXAMPL",
  "name": "SKY TOWERS",
  "gameMode": "Infection",
  "gameModeId": 2,
  "verified": true,
  "imageUrl": "https://api.gorillagamevr.com/DriftGate/submission_image/1/2",
  "thumbnailUrl": "https://api.gorillagamevr.com/DriftGate/submission_image/1/2",
  "createdAt": "2026-10-06T21:40:00Z",
  "updatedAt": "2026-11-12T21:40:00Z",
  "playersNow": 4
}

GET /api/v1/challenges

Needs a key

Parkour challenges made by players.

sort query
verified (the default), newest, oldest or name.
verified query
true for only verified challenges, false for only unverified ones. Leave it out to get both.
page query
The page number, starting at 1.
pageSize query
Challenges per page, from 1 to 50. The default is 20.
  • Verified ones come first unless you pick a different sort.
{
  "page": 1,
  "pageSize": 20,
  "hasMore": false,
  "challenges": [
    {
      "id": "Q4ZK8M",
      "name": "LAVA CLIMB",
      "timeLimitSeconds": 90,
      "difficulty": "Hard",
      "verified": true,
      "imageUrl": "https://api.gorillagamevr.com/DriftGate/submission_image/3/4",
      "thumbnailUrl": "https://api.gorillagamevr.com/DriftGate/submission_image/3/4"
    }
  ]
}

GET /api/v1/challenges/{id}

Needs a key

One challenge with its name, time limit, difficulty and picture.

id path
The challenge's 6-character ID.
{
  "id": "Q4ZK8M",
  "name": "LAVA CLIMB",
  "timeLimitSeconds": 90,
  "difficulty": "Hard",
  "verified": true,
  "imageUrl": "https://api.gorillagamevr.com/DriftGate/submission_image/3/4",
  "thumbnailUrl": "https://api.gorillagamevr.com/DriftGate/submission_image/3/4"
}

GET /api/v1/grants

Needs a key

The players who have allowed your app, with the scopes each one allowed.

after query
The cursor from the last response, to get the next page.
limit query
How many to return, from 1 to 200. The default is 50.
  • Players who remove their permission leave the list right away.
  • Players who unlink their game account can take up to an hour to leave it.
{
  "players": [
    {
      "player": "p_4mW9cQ2xLr7TzB1nKd8VsYh3",
      "scopes": ["rank:read", "rounds:read"],
      "allowedAt": "2026-11-13T21:40:00Z",
      "updatedAt": "2026-11-13T21:40:00Z"
    }
  ],
  "cursor": "c_3q2-7wAAAAAAAAAAAAAAAA",
  "hasMore": false
}

GET /api/v1/grants/confirm

Needs a key

Confirms a player coming back from the permission page.

ticket query
The ticket from your redirect URL.
  • The player can edit the player, state and ticket in your redirect URL, so call this from your server with the ticket and use the player ID and state it returns.
  • Tickets expire after 5 minutes.
{
  "player": "p_4mW9cQ2xLr7TzB1nKd8VsYh3",
  "state": "your-state-value",
  "scopes": ["rank:read", "rounds:read"],
  "allowedAt": "2026-11-15T21:40:00Z"
}

GET /api/v1/players/{player}

Needs a key and any permission from the player

The scopes a player has allowed your app, and their Discord ID and username if one of them is identity:read.

player path
The ID your app got for the player when they allowed it (p_ followed by 24 characters).
{
  "player": "p_4mW9cQ2xLr7TzB1nKd8VsYh3",
  "scopes": ["identity:read", "rank:read"],
  "allowedAt": "2026-11-13T21:40:00Z",
  "updatedAt": "2026-11-13T21:40:00Z",
  "identity": {
    "discordId": "123456789012345678",
    "username": "bananaclimber"
  }
}

GET /api/v1/players/{player}/rank

Needs a key and rank:read from the player

The player's MMR, rank, level and win rate (winRateWins out of winRateRounds).

player path
The ID your app got for the player when they allowed it (p_ followed by 24 characters).
  • xp goes up to xpToNextLevel, which is 999999 at the top level.
  • When source is mirror, only mmr, rank, season and asOf are included, and rank comes from the MMR alone without counting placements.
  • MMR is calculated from results that game clients report.
{
  "player": "p_4mW9cQ2xLr7TzB1nKd8VsYh3",
  "mmr": 1350,
  "rank": "Gold",
  "ranked": true,
  "placementsPlayed": 5,
  "placementsNeeded": 5,
  "level": 12,
  "xp": 3400,
  "xpToNextLevel": 90000,
  "competitiveGames": 88,
  "winStreak": 2,
  "winRateRounds": 80,
  "winRateWins": 41,
  "season": 2,
  "asOf": "2026-11-15T21:40:00Z",
  "source": "live"
}

GET /api/v1/players/{player}/mmr-history

Needs a key and history:read from the player

The player's MMR at the end of each UTC day they played, oldest first.

player path
The ID your app got for the player when they allowed it (p_ followed by 24 characters).
days query
How many UTC days back to go, including today, from 1 to 500. The default is 90.
  • Today shows up after they go offline.
  • complete is false when there are older days that aren't listed.
{
  "player": "p_4mW9cQ2xLr7TzB1nKd8VsYh3",
  "points": [
    { "day": "2026-11-13", "mmr": 1198 },
    { "day": "2026-11-14", "mmr": 1210 }
  ],
  "complete": true,
  "asOf": "2026-11-15T21:40:00Z"
}

GET /api/v1/players/{player}/playtime

Needs a key and history:read from the player

How long the player has played, in total and by mode (the mode keys from game/status).

player path
The ID your app got for the player when they allowed it (p_ followed by 24 characters).
{
  "player": "p_4mW9cQ2xLr7TzB1nKd8VsYh3",
  "totalSeconds": 123456,
  "byMode": {
    "taginfection": 80000,
    "monkeball": 43456
  },
  "asOf": "2026-11-15T21:40:00Z"
}

GET /api/v1/players/{player}/presence

Needs a key and presence:read from the player

Whether the player is online right now.

player path
The ID your app got for the player when they allowed it (p_ followed by 24 characters).
  • If they are, it also has their mode, the custom map they're in, and when they joined that mode.
  • It can be up to two minutes behind.
{
  "player": "p_4mW9cQ2xLr7TzB1nKd8VsYh3",
  "online": true,
  "mode": "taginfection",
  "since": "2026-11-15T21:31:00Z"
}

GET /api/v1/players/{player}/rounds

Needs a key and rounds:read from the player

Finished rounds this player was in since they gave your app rounds:read, oldest first.

player path
The ID your app got for the player when they allowed it (p_ followed by 24 characters).
after query
The cursor from the last response. Leave it out to start from the oldest round your app can see.
limit query
How many to return, from 1 to 200. The default is 50.
  • Rounds are kept for 30 days.
  • Each round only lists players who allowed your app, and playerCount says how many played in total.
  • Rounds in private rooms aren't included.
  • A round shows up about 30 seconds after it ends.
{
  "reportedBy": "game clients",
  "rounds": [
    {
      "id": "r_Hk2Pq8ZsW1mXc5Rt9LbN3vYd",
      "room": "m_Bn6Jf0TqL4wZs8Kc2XhR7pVy",
      "endedAt": "2026-11-15T21:39:12Z",
      "mode": "infection",
      "durationSeconds": 183,
      "rated": true,
      "playerCount": 7,
      "reports": 5,
      "players": [
        {
          "player": "p_4mW9cQ2xLr7TzB1nKd8VsYh3",
          "place": 1,
          "tags": 4,
          "score": 4,
          "won": true,
          "survivalShare": 0.82
        }
      ]
    }
  ],
  "cursor": "c_1b0-9kAAAAAAAAAAAAAAAA",
  "hasMore": false
}

GET /api/v1/rounds

Needs a key and rounds:read from the player

Every stored round that has at least one player who gave your app rounds:read, oldest first.

after query
The cursor from the last response. Leave it out to start from the oldest round your app can see.
limit query
How many to return, from 1 to 200. The default is 50.
  • Poll it with the cursor to get your players' rounds as they finish.
  • Results, tags and scores come from game clients, and reports says how many clients agreed.
  • place is 1 for first.
  • place, tags, survivalShare and durationSeconds are left out for modes that don't report them.
  • score is whatever the mode counts (tags, knockouts or goals).
{
  "reportedBy": "game clients",
  "rounds": [
    {
      "id": "r_Hk2Pq8ZsW1mXc5Rt9LbN3vYd",
      "room": "m_Bn6Jf0TqL4wZs8Kc2XhR7pVy",
      "endedAt": "2026-11-15T21:39:12Z",
      "mode": "infection",
      "durationSeconds": 183,
      "rated": true,
      "playerCount": 7,
      "reports": 5,
      "players": [
        {
          "player": "p_4mW9cQ2xLr7TzB1nKd8VsYh3",
          "place": 1,
          "tags": 4,
          "score": 4,
          "won": true,
          "survivalShare": 0.82
        }
      ]
    }
  ],
  "cursor": "c_1b0-9kAAAAAAAAAAAAAAAA",
  "hasMore": true
}

Limits

Requests per minute
120
Requests per day
100,000
Burst
20
Lookups per minute
10
Counted per
account
  • All the keys on all your apps share one limit.
  • A lookup is a request for a map, challenge or list page the website hasn't cached, so it has to ask the game's servers.
  • After you use up your lookups for the minute, those requests get a 429.
  • Cached data keeps working.
Headers
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-Reset
X-RateLimit-Limit-Day
X-RateLimit-Remaining-Day
Retry-After

Errors

  • 400bad_requestA parameter is missing or invalid.
  • 401invalid_keyThe key is missing, invalid or revoked.
  • 403scope_not_grantedThe player hasn't given your app the scope this endpoint needs.
  • 403owner_not_linkedThe key's owner doesn't have a linked game account anymore. They need to sign in on the website.
  • 404not_foundIt doesn't exist, or the player hasn't allowed your app.
  • 405method_not_allowedThe API is read-only. Every endpoint is GET.
  • 429rate_limitedToo many requests or lookups. Retry-After says how many seconds to wait.
  • 503upstream_unavailableThe game servers didn't respond. Retry-After says when to try again.
{
  "error": {
    "code": "not_found",
    "message": "A message you can show to people."
  }
}