V Rising
API для SafeTallGrass
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11208181json
{
"response": {
"steam_id": 90284847147119620,
"domain": null,
"id": 11208181,
"ip": "144.126.153.82",
"port": 28300,
"query": 28315,
"color": 0,
"city": "St Louis",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1775952072,
"score": 0,
"last_online": 1777591923,
"icon": null,
"name": "SafeTallGrass",
"connect": "144.126.153.82:28300",
"request": "144.126.153.82:28315",
"map": "VRisingWorld",
"gamemode": "5aae0d38-90dc-4c1d-a762-059ac6879969",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772700490,
"last_update": 1777591923,
"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": 2027,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11208181");
$data = json_decode($json, true);
var_dump($data);