[RUS] JarGame | Classic Server 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286598825117702",
"domain": null,
"id": 11625054,
"ip": "46.174.50.10",
"port": 27255,
"query": 27255,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": null,
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1779916183,
"last_online": 1781190045,
"icon": null,
"name": "[RUS] JarGame | Classic Server",
"connect": "46.174.50.10:27255",
"request": "46.174.50.10:27255",
"map": "pl_upward",
"gamemode": "РУССКИЙ СЕРВЕР",
"version": "10682184",
"numplayers": 2,
"maxplayers": 24,
"bots": 2,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 38,
"add_date": 1779916183,
"last_update": 1781190045,
"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": 223,
"language": "ru",
"parked": false,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11625054");
$data = json_decode($json, true);
var_dump($data);