API для 橙子|尸地余生|官方娱乐战役#2
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "w",
"region": 4,
"product": "left4dead2",
"gametype": "coop,insecure",
"dedicated": true,
"steam_id": "90290631599036441",
"domain": null,
"id": 11987884,
"ip": "103.40.13.58",
"port": 32023,
"query": 32023,
"project_id": null,
"color": 0,
"city": "Wuxi",
"description": null,
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1786518223,
"last_online": 1786517400,
"icon": null,
"name": "橙子|尸地余生|官方娱乐战役#2",
"connect": "103.40.13.58:32023",
"request": "103.40.13.58:32023",
"map": "l4d_dbdext_new_dawn",
"gamemode": "Left 4 Dead 2",
"version": "2.1.5.5",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 30,
"add_date": 1783799520,
"last_update": 1786518223,
"ban_reason": null,
"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": 11810,
"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": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11987884");
$data = json_decode($json, true);
var_dump($data);