Left 4 Dead 2
API для [100tick]原版包抗 #1
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10523186json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10523186,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Beijing",
"description": null,
"game": 550,
"owner": 148967,
"boosts": 1,
"last_offline": 1771653659,
"score": 0,
"last_online": 1770732619,
"icon": null,
"name": "[100tick]原版包抗 #1",
"connect": null,
"request": null,
"map": "c5m3_cemetery",
"gamemode": "Left 4 Dead 2",
"version": null,
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1762426393,
"last_update": 1771653659,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12532,
"language": "zh",
"parked": true,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": {
"username": "fy_h",
"avatar": "b74e5b2e-81c6-4b4a-b9eb-20eb195f0627.jpg",
"last_online": 1770688110
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10523186");
$data = json_decode($json, true);
var_dump($data);