API для Support Point 8
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "coop,secure",
"os": "w",
"product": "left4dead2",
"region": 3,
"steam_id": "90288739661447180",
"domain": null,
"id": 12254212,
"ip": "185.137.153.233",
"port": 27016,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Tashkent",
"description": null,
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1784059279,
"last_online": 1783846325,
"icon": null,
"name": "Support Point 8",
"connect": "185.137.153.233:27016",
"request": "185.137.153.233:27016",
"map": "c1m2_streets",
"gamemode": null,
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": null,
"country": "UZ",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1783845739,
"last_update": 1784059279,
"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": 17437,
"language": "uz",
"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/12254212");
$data = json_decode($json, true);
var_dump($data);