# Marked.gg API reference

API base: https://api.marked.gg/v3

Authenticate with the header `Authorization: Bearer YOUR_API_KEY`.

## Contents

- [Flagged servers of a user](#flagged-servers-of-a-user)
- [Cheat record](#cheat-record)
- [Linked identifiers](#linked-identifiers)
- [Game Data](#game-data)
- [Support tickets](#support-tickets)
- [Stored messages](#stored-messages)
- [Expose network mentions](#expose-network-mentions)
- [Many ids at once](#many-ids-at-once)
- [Game keys](#game-keys)
- [About your key](#about-your-key)
- [What the database holds](#what-the-database-holds)
- [Is it up](#is-it-up)
- [Errors](#errors)
- [Limits and billing](#limits-and-billing)
- [Response shapes](#response-shapes)
- [Games filter](#games-filter)

## Flagged servers of a user

`GET /v3/discords/{id}`

The core lookup. Give it a Discord user id and it answers with every flagged server that user is a member of, including the roles they hold in each one.

| Parameter | Required | Description |
| --- | --- | --- |
| `id` | Required | Discord user id — 5 to 20 digits, no leading zero |
| `games` | Optional | Only return entries belonging to one of these games. Leave it out for everything. |

Billable units: 1

Requires an API key.

- servers[].games is every game the server is mapped to, sorted, and empty only when it is mapped to none. A games filter picks the servers; it does not shorten this list.
- servers[] is the whole list. lastSeenAt is when we last saw them in that server, or holding that role; a role is never later than its server. null when no time is known.
- While they are still in a server it only moves when one of our bots covers it. Leaving while offline can take about 15 days to show.
- A games filter reduces servers[]; if nothing survives, the answer is 404.
- The avatar and each server icon come with it. v1 and v2 split those across two calls.

Example request

```bash
curl -X GET 'https://api.marked.gg/v3/discords/123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response

```json
{
  "id": "123456789012345678",
  "username": "exampleuser",
  "avatarUrl": "https://cdn.discordapp.com/avatars/123456789012345678/abc.png",
  "servers": [
    {
      "serverId": "1153737141403254794",
      "serverName": "Example Cheat Hub",
      "iconUrl": "https://cdn.discordapp.com/icons/1153737141403254794/def.png?size=1024",
      "lastSeenAt": "2026-09-13T08:42:10.000Z",
      "roles": [
        {
          "roleId": "1153737141403254800",
          "roleName": "Customer",
          "lastSeenAt": "2026-09-13T08:42:10.000Z"
        }
      ],
      "games": [
        "fivem"
      ]
    }
  ]
}
```

Status 404: we hold no flagged servers for that id, or the games filter left nothing

```json
{
  "error": {
    "code": "not_found",
    "message": "Nothing on record for that id."
  }
}
```

Status 403: your key has no discord permission

```json
{
  "error": {
    "code": "no_permission",
    "message": "This key may not read discord."
  }
}
```

## Cheat record

`GET /v3/cheater/{id}`

found[] is the short list of sources. details[] is the long form: one chronological entry per detection, each saying where it came from.

| Parameter | Required | Description |
| --- | --- | --- |
| `id` | Required | Discord user id — 5 to 20 digits, no leading zero |
| `games` | Optional | Only return entries belonging to one of these games. Leave it out for everything. |

Billable units: 1

Requires an API key.

- detectedAt is when the detection was recorded. It is not when they were last seen.

Example request

```bash
curl -X GET 'https://api.marked.gg/v3/cheater/123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response

```json
{
  "id": "123456789012345678",
  "found": [
    "Example Cheat Hub"
  ],
  "details": [
    {
      "reason": "aimbot",
      "type": "submit",
      "server": "Example Cheat Hub",
      "games": [
        "fivem"
      ],
      "found": "manuel - aimbot",
      "detectedAt": "2026-08-14T15:22:29.777Z"
    }
  ]
}
```

Status 404: we hold no cheat record for that id, or the games filter left nothing

```json
{
  "error": {
    "code": "not_found",
    "message": "Nothing on record for that id."
  }
}
```

Status 403: your key has no cheater permission

```json
{
  "error": {
    "code": "no_permission",
    "message": "This key may not read cheater."
  }
}
```

## Linked identifiers

`GET /v3/identifier/{identifier}`

Give it one identifier as type:value and it answers with every other identifier linked to it — other Discord accounts, Steam ids, Rockstar licences.

| Parameter | Required | Description |
| --- | --- | --- |
| `identifier` | Required | type:value — discord:, steam:, license:, license2:, fivem:, xbox:, live: (steamid: and xbl: are accepted too) |

Billable units: 1

Requires an API key.

- Only the types we actually hold appear. An unknown type prefix is a 400.

Example request

```bash
curl -X GET 'https://api.marked.gg/v3/identifier/discord%3A123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response

```json
{
  "identifiers": {
    "discord": [
      "123456789012345678"
    ],
    "steam": [
      "1100001abcdef01"
    ],
    "license": [
      "a3dc0f1e2b3c4d5e6f708192a3b4c5d6e7f80912"
    ]
  }
}
```

Status 400: the prefix is not an identifier type we know

```json
{
  "error": {
    "code": "bad_request",
    "message": "Unknown identifier type."
  }
}
```

Status 404: we hold no identifier for that id, or the games filter left nothing

```json
{
  "error": {
    "code": "not_found",
    "message": "Nothing on record for that id."
  }
}
```

Status 403: your key has no identifier permission

```json
{
  "error": {
    "code": "no_permission",
    "message": "This key may not read identifier."
  }
}
```

## Game Data

`GET /v3/gamedata`

Returns a raw array of game groups. Each data object contains version-one records, source states and connection evidence. This separate lookup does not change Check User or cheat findings.

| Parameter | Required | Description |
| --- | --- | --- |
| `identifier` | Required | Discord ID, SteamID64 or FiveM steam:hex. Explicit discord:, steamid: and steam64: prefixes are accepted. A bare valid SteamID64 is treated as Steam; use discord: to resolve numeric ambiguity. |
| `game` | Optional | Optional comma-separated game keys (games is also accepted). Empty means all known or retained games; unknown keys return an empty array without external calls. |

Billable units: 1

Requires an API key.

- GET /v3/gamedata/{identifier} is a compatible alias. Use either game or games, not both.
- Records retain separate source, scope and period. Never add overlapping providers into a global total. Missing metrics are null; deaths of zero leave K/D null.
- measurement says how playSeconds was obtained: reported-session is measured from the join and leave times a FiveM server reported through the FiveM server resource, sampled-presence counts the time between bounded presence samples, and null is a value a statistics provider supplied.
- Source status distinguishes not_found, not_configured, partial, error and stale. Stored data survives source outages and retains last-success timestamps.
- Only explicit verified OAuth evidence establishes a verified Discord–Steam connection. Server identifiers and legacy associations remain observed evidence. No scan login scope is added.

Example request

```bash
curl -X GET 'https://api.marked.gg/v3/gamedata?identifier=discord%3A123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response

```json
[
  {
    "game": "wardogs",
    "data": {
      "version": 1,
      "identifier": {
        "type": "steamid",
        "value": "76561197960265729"
      },
      "records": [
        {
          "sourceId": "community",
          "sourceName": "Example community",
          "sourceUrl": "https://example.com/stats",
          "gameId": "wardogs",
          "gameName": "WARDOGS",
          "playerId": "76561197960265729",
          "scope": {
            "kind": "community",
            "id": "example",
            "label": "Example community"
          },
          "period": {
            "from": null,
            "to": null
          },
          "metrics": {
            "playSeconds": 45240,
            "kills": 42,
            "deaths": 0,
            "kd": null
          },
          "observedAt": "2026-11-01T12:00:00.000Z",
          "updatedAt": "2026-11-01T12:00:00.000Z",
          "stale": false,
          "lastSeenAt": null,
          "measurement": null
        }
      ],
      "sources": [
        {
          "id": "community",
          "name": "Example community",
          "gameId": "wardogs",
          "url": "https://example.com/stats",
          "status": "ok",
          "checkedAt": "2026-11-01T12:00:00.000Z",
          "lastSuccessAt": "2026-11-01T12:00:00.000Z",
          "import": null,
          "error": null
        }
      ],
      "connections": {
        "status": "unknown",
        "checkedAt": null,
        "links": []
      }
    }
  }
]
```

Status 403: your key has no identifier permission

```json
{
  "error": {
    "code": "no_permission",
    "message": "This key may not read identifier."
  }
}
```

Status 400: identifier or game query is invalid

```json
{
  "error": {
    "code": "bad_request",
    "message": "Invalid Game Data query."
  }
}
```

Status 429: the quota for this window is spent, or a usage-based key has nothing left until you top up in your panel; for a per-minute rate limit, wait for Retry-After

```json
{
  "error": {
    "code": "quota_exceeded",
    "message": "Usage quota reached."
  }
}
```

## Support tickets

`GET /v3/tickets/{id}`

One entry per ticket, with the server it was opened in and the channels it ran through.

| Parameter | Required | Description |
| --- | --- | --- |
| `id` | Required | Discord user id — 5 to 20 digits, no leading zero |
| `games` | Optional | Only return entries belonging to one of these games. Leave it out for everything. |

Billable units: 1

Requires an API key.

- tickets[].games is every game the ticket’s server is mapped to, sorted, and empty only when it is mapped to none. A games filter picks the tickets; it does not shorten this list.

Example request

```bash
curl -X GET 'https://api.marked.gg/v3/tickets/123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response

```json
{
  "id": "123456789012345678",
  "tickets": [
    {
      "id": "1486400747816882260",
      "guildId": "1453858127429763114",
      "guildName": "Example Support",
      "games": [
        "fivem"
      ],
      "channelId": "1486400747816882260",
      "channelNames": [
        "ticket-0007"
      ],
      "createdAt": "2026-07-02T10:00:00.000Z"
    }
  ]
}
```

Status 404: we hold no tickets for that id, or the games filter left nothing

```json
{
  "error": {
    "code": "not_found",
    "message": "Nothing on record for that id."
  }
}
```

Status 403: your key has no ticket permission

```json
{
  "error": {
    "code": "no_permission",
    "message": "This key may not read ticket."
  }
}
```

## Stored messages

`GET /v3/messages/{id}`

Every message we hold, newest first, plus a link to the viewer so you can hand a human the readable version.

| Parameter | Required | Description |
| --- | --- | --- |
| `id` | Required | Discord user id — 5 to 20 digits, no leading zero |
| `games` | Optional | Only return entries belonging to one of these games. Leave it out for everything. |
| `limit` | Optional | Only this many, newest first. Leave it out for all of them. Max 1000: a bigger number is clamped to 1000, and anything that is not a positive number falls back to 1000. |
| `cursor` | Optional | pagination.nextCursor from the previous page. A cursor that cannot be decoded is ignored, and you get the first page. |

Billable units: 1

Requires an API key.

- messages[].games is every game the message’s server is mapped to, sorted, and empty only when it is mapped to none. A games filter picks the messages; it does not shorten this list.
- Newest first. Attachments are their own array — v1 and v2 glued them onto the end of content, and they no longer are.
- Without a limit you get everything, up to 100000 in one answer. ?limit=all says the same thing out loud.
- Past that ceiling the answer carries a nextCursor like any other page, so follow it and nothing is lost. A non-null nextCursor is the only signal that more exists — never the absence of a limit.
- The viewer link is made fresh on every call and stops working after about a day. Fetch it again rather than storing it.
- A follow-up page whose cursor sits at the end is a 200 with an empty list and a null url, not a 404.
- A limit above 1000 is clamped to 1000. A limit that is not a positive number falls back to 1000. A cursor that cannot be decoded is ignored.

Example request

```bash
curl -X GET 'https://api.marked.gg/v3/messages/123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response

```json
{
  "id": "123456789012345678",
  "url": "https://viewer.example.com/messages/AbC123",
  "messages": [
    {
      "id": "1507770895970865357",
      "serverId": "957138191582892032",
      "serverName": "Example Hub",
      "games": [
        "fivem"
      ],
      "channelId": "957138191582892032",
      "channelName": "chat",
      "content": "gg",
      "attachments": [
        "https://cdn.example/att.png"
      ],
      "timestamp": "2026-05-23T15:43:14.628Z"
    }
  ],
  "pagination": {
    "limit": "all",
    "nextCursor": null
  }
}
```

Status 404: we hold no messages for that id, or the games filter left nothing

```json
{
  "error": {
    "code": "not_found",
    "message": "Nothing on record for that id."
  }
}
```

Status 403: your key has no messages permission

```json
{
  "error": {
    "code": "no_permission",
    "message": "This key may not read messages."
  }
}
```

## Expose network mentions

`GET /v3/expose/{id}`

One entry per message that mentions them, with the server, the channel and everyone else named in it.

| Parameter | Required | Description |
| --- | --- | --- |
| `id` | Required | Discord user id — 5 to 20 digits, no leading zero |
| `games` | Optional | Only return entries belonging to one of these games. Leave it out for everything. |

Billable units: 1

Requires an API key.

- A record that stores a single user instead of a list is reported as a one-element users list, so it is never dropped. The same record is counted in /v3/stats.

Example request

```bash
curl -X GET 'https://api.marked.gg/v3/expose/123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response

```json
{
  "id": "123456789012345678",
  "entries": [
    {
      "id": "1399887770469535884",
      "guildId": "1153737141403254794",
      "guildName": "Example Hub",
      "channelId": "957138191582892032",
      "channelName": "logs",
      "content": "seen cheating",
      "attachments": [],
      "users": [
        "123456789012345678"
      ],
      "games": [
        "fivem"
      ],
      "timestamp": "2026-01-06T21:46:40.000Z"
    }
  ]
}
```

Status 404: we hold no mentions for that id, or the games filter left nothing

```json
{
  "error": {
    "code": "not_found",
    "message": "Nothing on record for that id."
  }
}
```

Status 403: your key has no expose permission

```json
{
  "error": {
    "code": "no_permission",
    "message": "This key may not read expose."
  }
}
```

## Many ids at once

`POST /v3/masscheck`

The batch form of the lookups above. Ask for the checks you want, get one result object per id. Each check is gated by its own permission — the ones your key may not read are listed under skipped, and you are not billed for them.

| Parameter | Required | Description |
| --- | --- | --- |
| `ids` | Required | Discord user ids, at most 1000 |
| `checks` | Required | discord, identifier, cheater, ticket, messages, expose, gamedata — set the ones you want to true |
| `games` | Optional | The same filter as the single lookups. |
| `messageLimit` | Optional | Cap the per-id message list. Leave it out and you get all of them — so you do for a value below 1, or one that is not a number or "all". |

Billable units: ids × delivered checks

Requires an API key.

- gamedata is opt-in: checks.gamedata=true returns the same raw [{game,data}] array for each Discord ID and uses the identifier permission. Existing default checks do not include it. Game Data is never added to a normal Check User or scan. Game Data units bypass the response cache so privacy is checked again.
- cost is what this call actually billed. It is the same number the X-Request-Cost header carries.
- An id we hold nothing for still gets an entry, not a 404 — the call itself succeeded. Checks that answer with a list come back empty; checks that answer with an object come back null.
- An id that is not a valid Discord id is not an error here: it is answered like an id with no data, without a lookup. It still counts towards count and cost.
- The entries carry the same games arrays as the single lookups: servers in discord, tickets, messages and the details of cheater.
- Set messageLimit and truncated tells you whether more exist; fetch the rest from /v3/messages/:id. A messageLimit below 1, or one that is not a number or "all", means all.
- One batch loads at most 500000 message documents in total, across every id, and no single id more than 100000. Ids are worked on side by side, so an id that arrives while the budget is lent out waits for it. Only when the budget is really used up is that id’s truncated true: a cut-off id is never mistaken for one with nothing.
- With the response cache on, only the id × check units that are not already known are computed and billed, so a repeated batch can cost less, or nothing. See Caching.

Example request

```bash
curl -X POST 'https://api.marked.gg/v3/masscheck' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"ids":["123456789012345678"],"checks":{"discord":true},"games":["fivem"]}'
```

Example response

```json
{
  "cost": 6,
  "count": 2,
  "requested": [
    "discord",
    "messages",
    "cheater"
  ],
  "delivered": [
    "discord",
    "messages",
    "cheater"
  ],
  "skipped": [],
  "results": {
    "123456789012345678": {
      "discord": [
        {
          "serverId": "1153737141403254794",
          "serverName": "Example Cheat Hub",
          "iconUrl": "https://cdn.discordapp.com/icons/1153737141403254794/def.png",
          "lastSeenAt": "2026-09-13T08:42:10.000Z",
          "roles": [],
          "games": [
            "fivem"
          ]
        }
      ],
      "messages": {
        "url": "https://viewer.example.com/messages/AbC123",
        "messages": [],
        "truncated": false
      },
      "cheater": {
        "found": [],
        "details": []
      }
    },
    "234567890123456789": {
      "discord": [],
      "messages": null,
      "cheater": null
    }
  }
}
```

Status 400: ids is empty or over 1000, checks is not an object or names no check, games is not a list of strings, or X-Use-Cache is neither true nor false

```json
{
  "error": {
    "code": "bad_request",
    "message": "ids must be a non-empty array."
  }
}
```

Status 429: the quota for this window is spent, or a usage-based key has nothing left until you top up

```json
{
  "error": {
    "code": "quota_exceeded",
    "message": "Usage quota reached."
  }
}
```

## Game keys

`GET /v3/games`

Every key you may put in ?games=. The generic_ ones come first, then the rest ranked by how many tracked servers use them.

| Parameter | Required | Description |
| --- | --- | --- |
| `limit` | Optional | Only the top n, or all. Leave it out for all of them; a value that is not a positive number returns all of them too. |

Billable units: 1

Requires an API key.

Example request

```bash
curl -X GET 'https://api.marked.gg/v3/games' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response

```json
{
  "count": 34,
  "total": 34,
  "games": [
    "generic_bypass",
    "generic_cleaner",
    "fivem",
    "rust"
  ]
}
```

## About your key

`GET /v3/info`

Everything about the key you are calling with. The key comes from the header and is never echoed back. This call is free.

Billable units: 0

Requires an API key.

- quota is null when your key has no usage quota.
- It costs nothing, so the usage quota never applies to it. The only 429 it can answer with is rate_limited, the per-minute limit.
- It is never cached: it shows your live quota.
- On a usage-based key the quota is your prepaid requests and never resets: limit is everything you have bought, remaining is what is left, and resetAt lies far in the future. Topping up in your panel raises limit.

Example request

```bash
curl -X GET 'https://api.marked.gg/v3/info' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response

```json
{
  "keyId": "example-server-bf91d9",
  "master": false,
  "perms": {
    "discord": true,
    "identifier": true,
    "cheater": false,
    "ticket": false,
    "messages": true,
    "expose": false
  },
  "paused": false,
  "expiresAt": null,
  "rateLimit": "unlimited",
  "quota": {
    "limit": 100000,
    "used": 2037,
    "remaining": 97963,
    "windowMs": 604800000,
    "resetAt": "2026-09-01T00:00:00.000Z"
  },
  "cache": {
    "useCache": false
  }
}
```

## What the database holds

`GET /v3/stats`

Aggregate counts, for all games or only for the games you name in ?games=. Nothing here is about any one account.

| Parameter | Required | Description |
| --- | --- | --- |
| `games` | Optional | Count only the figures of these games, comma separated (GET /v3/games lists the names). Several games are a union. Leave it out for all games. |

Billable units: 1

Requires an API key.

- One group per subsystem. Inside a group, count is always how many records and users always how many distinct Discord accounts appear in them.
- Somebody tracked in three subsystems is counted once per group, never deduplicated across groups. The groups overlap on purpose, so do not add them up.
- discords carries only users, because its records are accounts. servers carries only a count, because no accounts are involved. anticheat carries bans.
- Every group and every field in it is always there and always a number. There is no null anywhere in this answer.
- A metric is 0 when it is zero, or when nothing has been counted yet, right after a restart. Once a figure has been counted you keep getting the last one until a newer one replaces it.
- Values come from a 60 second cache, so two calls within a minute return the same numbers.
- With ?games=fivem,rust the figures that depend on servers are counted over the servers of those games only. Several games are a union: a user, message, ticket or cheater record counts when it belongs to any of them, and only once.
- Per group with games: discords.users are users on at least one server of the games, servers.count the tracked servers among them, messages and tickets those on these servers with their users, cheaters.count the records with a detail on such a server or naming one of the games. identifiers are never filtered. expose and anticheat belong to FiveM: their normal figures when fivem is among the games, otherwise 0.
- A name that is no game selects nothing, so those figures are 0 (still a 200). More than 200 games, or a games value that is not a list of names, is a 400. Spaces, repeats and the order of the games do not matter.
- Each combination is counted from memory and kept for 30 seconds. Right after a restart of the API, while its memory copies are being built, a filter that selects something answers 503 with Retry-After: 30. That answer is not billed; ask again.
- The figures are those of the data your key can access, with or without a filter.

Example request

```bash
curl -X GET 'https://api.marked.gg/v3/stats' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response

```json
{
  "discords": {
    "users": 7715965
  },
  "servers": {
    "count": 3213
  },
  "messages": {
    "count": 34127546,
    "users": 1168678
  },
  "identifiers": {
    "count": 2598224,
    "users": 635861
  },
  "cheaters": {
    "count": 298227
  },
  "tickets": {
    "count": 1255669,
    "users": 441705
  },
  "expose": {
    "count": 4128,
    "users": 2971
  },
  "anticheat": {
    "bans": 335405
  }
}
```

## Is it up

`GET /v3/health`

The only endpoint that takes no key. It costs nothing, is not counted, and is not cached.

Billable units: 0

Example request

```bash
curl -X GET 'https://api.marked.gg/v3/health'
```

Example response

```json
{
  "status": "ok"
}
```

## Errors

Errors use an error envelope with a code, message and requestId.

400 means invalid input. 401 and 403 mean authentication or permission was refused. 429 means a rate or usage limit was reached.

A completed 404 lookup means no matching data and may be billed. A failed or degraded lookup is never evidence that an account is clean.

## Limits and billing

Rate protection and billable usage are separate. The X-Request-Cost header reports the actual billed units.

Completed ordinary 404 lookups are billed. Cache hits cost zero and still require current authorization and rate protection.

A batch is charged for its delivered billable units. Skipped checks and failed work do not consume purchased units.

Purchased request inventory requires explicit allocation to an access. A credit top-up alone does not allocate requests.

## Response shapes

Keep Discord identifiers as strings, including in JSON. Converting them to numbers can change their value.

null means no value. An empty list is an array with no entries. Timestamps use ISO 8601.

Only delivered checks are present in a batch result. A missing check is different from a completed check with no matching data.

## Games filter

Lookup game filters use a comma-separated games query parameter. Game Data accepts game (or games) with its identifier query.

The batch operation accepts games as an array of names in its JSON body.

Game filters select matching records and do not shorten the games arrays contained in a returned record.
