[LV] SAMP.BoxG.LV 0.3.7 server 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/4784969
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 4784969,
    "ip": "209.250.249.132",
    "port": 7777,
    "query": 7777,
    "color": 0,
    "city": "Amsterdam",
    "description": "",
    "game": 9000035,
    "owner": null,
    "boosts": 1,
    "last_offline": 1770216061,
    "score": 0,
    "last_online": 1776644456,
    "icon": null,
    "name": "[LV] SAMP.BoxG.LV 0.3.7 server",
    "connect": "209.250.249.132:7777",
    "request": "209.250.249.132:7777",
    "map": "San Andreas",
    "gamemode": "BoxG Mode v4.6",
    "version": "omp 1.5.8.3079",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "NL",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1718269485,
    "last_update": 1776644456,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 318,
    "language": "nl",
    "parked": false,
    "app": {
      "id": 168,
      "steam_id": 9000035,
      "name": "Samp",
      "url": "samp"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/4784969");
$data = json_decode($json, true);
var_dump($data);