HumanitZ
SV-1[TH]SS2|PVE ONLY|3/04/26| OH-FRIENDLY.COM | WHITELIST-ON-WEBSITE |THAILAND| 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11182124json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11182124,
"ip": "125.25.183.78",
"port": 7778,
"query": 7778,
"color": 0,
"city": "Bangkok",
"description": null,
"game": 1766060,
"owner": null,
"boosts": 1,
"last_offline": 1776278531,
"score": 0,
"last_online": 1776441622,
"icon": null,
"name": "SV-1[TH]SS2|PVE ONLY|3/04/26| OH-FRIENDLY.COM | WHITELIST-ON-WEBSITE |THAILAND|",
"connect": "125.25.183.78:7778",
"request": "125.25.183.78:7778",
"map": "Main Map",
"gamemode": null,
"version": null,
"numplayers": 8,
"maxplayers": 29,
"bots": 0,
"secured": null,
"private": null,
"country": "TH",
"status": true,
"votes": 1,
"points": 62,
"add_date": 1772425361,
"last_update": 1776441622,
"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": 15,
"language": "th",
"parked": false,
"app": {
"id": 1531516,
"steam_id": 1766060,
"name": "HumanitZ",
"url": "humanitz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11182124");
$data = json_decode($json, true);
var_dump($data);