API для 普瑞赛斯5v5混野服
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286845708358683",
"domain": null,
"id": 11495457,
"ip": "202.189.9.212",
"port": 28015,
"query": 28015,
"project_id": null,
"color": 0,
"city": "Beijing",
"description": null,
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1781093068,
"last_online": 1781128961,
"icon": null,
"name": "普瑞赛斯5v5混野服",
"connect": "202.189.9.212:28015",
"request": "202.189.9.212:28015",
"map": "c2m1_highway",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 15,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779206969,
"last_update": 1781128961,
"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": 11417,
"language": "zh",
"parked": false,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11495457");
$data = json_decode($json, true);
var_dump($data);