API для GamerDuDimanche
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794058589,
"app": {
"id": 55075,
"name": "V Rising",
"steam_id": 1604030,
"url": "v-rising"
},
"color": 0,
"connect": "216.218.55.232:9876",
"country": "CA",
"domain": null,
"game": 1604030,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19776433,
"ip": "216.218.55.232",
"language": "en",
"last_update": 1794214463,
"map": "VRisingWorld",
"maxplayers": 40,
"name": "GamerDuDimanche",
"numplayers": 0,
"official": null,
"points": 0,
"port": 9876,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 9877,
"request": "216.218.55.232:9877",
"secured": true,
"status": false,
"steam_id": "90296935776459781",
"version": "0.0.0.1",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Sainte-Marie",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794214463,
"last_online": 1794061193,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 4818,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "V Rising",
"gametype": "pve,cs12,hc,ded,dif_no",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19776433");
$data = json_decode($json, true);
var_dump($data);