GAMEMONITORING API

LLM
Download

The GAMEMONITORING REST API returns JSON data about servers, players, posts, online history and votes. This page covers integration basics and your first request. Endpoint pages provide parameters and request testing.

Base URL
https://api.gamemonitoring.net

API versions

Use the optional v query parameter to select an API version. The current version is 1.0.0. The version determines the available paths, request fields and response format.

Without v, requests use the lowest supported version. When that version is retired, the next lowest supported version becomes the default. Specify v to keep a fixed contract. An invalid, repeated or unsupported version returns HTTP 400; unsupported versions include error.data.supported_versions.

Choose an endpoint

Open an endpoint to find required parameters, response schemas, examples for different languages and a request tester. Adding a server performs a real action; public read endpoints return data.

  • Adds a server by connection address or returns the existing server.

  • Returns public server data.

  • Returns the server's player list.

  • Returns public posts with a visible mention of the specified server.

  • Returns a player count chart with the minimum, average and maximum for each interval.

  • Returns votes for the specified server.

  • Returns the number of votes per day.

  • Returns users with the most votes.

  • Returns the minimum, average and maximum combined player count across project servers for each interval.

  • Returns votes for the project. Only public projects are accessible without authentication.

  • Returns daily vote counts for the project. Only public projects are accessible without authentication.

  • Returns users with the most votes for the project. Only public projects are accessible without authentication.

  • Returns vote details by ID.

  • Marks a vote as processed. Available to the server or project owner.

  • Returns user profile data.

  • To verify ownership of a GAMEMONITORING account, the user gets a code under Integration. The code is valid for 5 minutes from issuance. If verification succeeds, the API returns the ID of the account that the code was issued for and marks the code as used.

Passing parameters

URL parameters
IDs go in the request path: server_id and project_id are numeric GAMEMONITORING IDs; vote_id identifies a vote. Replace each parameter in braces with its actual value.
Query parameters
Pass filters, periods and pagination after ? in the URL. Encode values with URLSearchParams or your library’s equivalent, especially nicknames and search text.
Body parameters
To add a server, send JSON with Content-Type: application/json. connect is a public host:port; steam_app_id is the game’s Steam App ID. Use query when the query and connection ports differ.
Add server

Data format

HTTP 200 wraps the result in response. Depending on the endpoint, it is an object, an array or an object with items. Follow the endpoint schema; an empty list is not an error by itself.

Some fields may be null or omitted. These differ from 0, false and an empty string; handle missing data separately.

created_at, expires_at and last_update use Unix timestamps in seconds. Multiply by 1000 for a JavaScript Date; divide Date.now() by 1000 and round down when building a filter.

Keep 64-bit Steam identifiers as strings. Converting them to a JavaScript Number can lose precision. A GAMEMONITORING server ID and a game’s Steam App ID are different identifiers.

Errors and retries

Check the HTTP status and the error object: code contains the status, message explains it, and data provides additional details when available. Message text depends on the region and may change; do not use it as a condition in your code.

400
Invalid parameters or JSON body. Check types, required fields and allowed ranges.
403
Access denied: the address is blocked or the project is not public.
404
The requested resource does not exist.
405
Check the HTTP method and path; this operation is not supported.
429
Pause and respect Retry-After when the header is accessible. Repeating the same request immediately will not resolve the limit.
500 / 503 / 504
Retry temporary read failures a limited number of times with increasing delays. After an add-server timeout, check the result first; the request may already have completed.

Fix parameter or access errors before retrying. Also handle network errors and proxy responses that may not contain JSON.

Data reflects the last server query and may be cached. Check last_update, use a reasonable refresh interval and cache results in your integration. Polling the API frequently does not make the game server update faster.

Voting and Webhooks

To react to a new vote, configure a project Webhook. Verify signature, skip test events with is_test=true and use event_id as vote_id to fetch the vote from the API. Check entity_type and entity_id, then process the event once using event_type + event_id. Acknowledge test events with a 2xx response without granting a reward.