Synergy
Friendly Crowbar | HL2 Anniversary 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/669433json
{
"response": {
"steam_id": "85568392924705099",
"domain": null,
"id": 669433,
"ip": "188.165.220.114",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Roubaix",
"description": "",
"game": 17520,
"owner": null,
"boosts": 1,
"last_offline": 1774985537,
"score": null,
"last_online": 1777447213,
"icon": null,
"name": "Friendly Crowbar | HL2 Anniversary",
"connect": "188.165.220.114:27016",
"request": "188.165.220.114:27016",
"map": "d1_canals_01a",
"gamemode": "Synergy 25.3",
"version": "1.0.0.0",
"numplayers": 4,
"maxplayers": 31,
"bots": 0,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 92,
"add_date": 1670182707,
"last_update": 1777447213,
"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": 2,
"language": "fr",
"parked": false,
"app": {
"id": 34,
"steam_id": 17520,
"name": "Synergy",
"url": "synergy"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/669433");
$data = json_decode($json, true);
var_dump($data);