API для 琥珀の对抗服 4v4 PVS
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11571699,
"ip": "222.217.6.31",
"port": 27064,
"query": 27064,
"color": 0,
"city": "Liuchow",
"description": null,
"game": 500,
"owner": null,
"boosts": 1,
"last_offline": 1779832361,
"last_online": 1779525655,
"icon": null,
"name": "琥珀の对抗服 4v4 PVS",
"connect": "222.217.6.31:27064",
"request": "222.217.6.31:27064",
"map": "l4d_vs_hospital01_apartment",
"gamemode": "L4D - Versus",
"version": "1.0.4.5",
"numplayers": 0,
"maxplayers": 18,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779356710,
"last_update": 1779832361,
"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": 1885,
"language": "zh",
"parked": false,
"app": {
"id": 18,
"steam_id": 500,
"name": "Left 4 Dead",
"url": "left-4-dead"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11571699");
$data = json_decode($json, true);
var_dump($data);