Skip to content

Marked.gg API reference

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

Try a request

Requests use your key and may consume its available quota. Your key is sent directly to https://api.marked.gg. It is kept only in this page.

Optional comma-separated game keys; empty means all games.

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.

id
RequiredDiscord user id — 5 to 20 digits, no leading zero
games
OptionalOnly return entries belonging to one of these games. Leave it out for everything.
Billable units
1
curl -X GET 'https://api.marked.gg/v3/discords/123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'

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.

id
RequiredDiscord user id — 5 to 20 digits, no leading zero
games
OptionalOnly return entries belonging to one of these games. Leave it out for everything.
Billable units
1
curl -X GET 'https://api.marked.gg/v3/cheater/123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'

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.

identifier
Requiredtype:value — discord:, steam:, license:, license2:, fivem:, xbox:, live: (steamid: and xbl: are accepted too)
Billable units
1
curl -X GET 'https://api.marked.gg/v3/identifier/discord%3A123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'

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.

identifier
RequiredDiscord 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
OptionalOptional 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
curl -X GET 'https://api.marked.gg/v3/gamedata?identifier=discord%3A123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Support tickets

GET/v3/tickets/{id}

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

id
RequiredDiscord user id — 5 to 20 digits, no leading zero
games
OptionalOnly return entries belonging to one of these games. Leave it out for everything.
Billable units
1
curl -X GET 'https://api.marked.gg/v3/tickets/123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'

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.

id
RequiredDiscord user id — 5 to 20 digits, no leading zero
games
OptionalOnly return entries belonging to one of these games. Leave it out for everything.
limit
OptionalOnly 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
Optionalpagination.nextCursor from the previous page. A cursor that cannot be decoded is ignored, and you get the first page.
Billable units
1
curl -X GET 'https://api.marked.gg/v3/messages/123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'

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.

id
RequiredDiscord user id — 5 to 20 digits, no leading zero
games
OptionalOnly return entries belonging to one of these games. Leave it out for everything.
Billable units
1
curl -X GET 'https://api.marked.gg/v3/expose/123456789012345678' \
  -H 'Authorization: Bearer YOUR_API_KEY'

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.

ids
RequiredDiscord user ids, at most 1000
checks
Requireddiscord, identifier, cheater, ticket, messages, expose, gamedata — set the ones you want to true
games
OptionalThe same filter as the single lookups.
messageLimit
OptionalCap 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
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"]}'

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.

limit
OptionalOnly 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
curl -X GET 'https://api.marked.gg/v3/games' \
  -H 'Authorization: Bearer YOUR_API_KEY'

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
curl -X GET 'https://api.marked.gg/v3/info' \
  -H 'Authorization: Bearer YOUR_API_KEY'

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.

games
OptionalCount 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
curl -X GET 'https://api.marked.gg/v3/stats' \
  -H 'Authorization: Bearer YOUR_API_KEY'

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
curl -X GET 'https://api.marked.gg/v3/health'

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.