[EmP] Pea Soup 2 | RockTheVote + bhop 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": 90071992547409920,
"domain": null,
"id": 11579422,
"ip": "24.240.66.38",
"port": 27020,
"query": 27020,
"color": 0,
"city": "Roscoe",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1779492215,
"last_online": 1779493254,
"icon": null,
"name": "[EmP] Pea Soup 2 | RockTheVote + bhop",
"connect": "24.240.66.38:27020",
"request": "24.240.66.38:27020",
"map": "stalkx",
"gamemode": "hltv",
"version": "1.1.2.6",
"numplayers": 0,
"maxplayers": 5,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779356975,
"last_update": 1779493254,
"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": 398,
"language": "en",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11579422");
$data = json_decode($json, true);
var_dump($data);