API для yessy
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793673544,
"app": {
"id": 139,
"name": "Subsistence",
"steam_id": 418030,
"url": "subsistence"
},
"color": 0,
"connect": "45.172.30.157:7777",
"country": "AR",
"domain": null,
"game": 418030,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19578527,
"ip": "45.172.30.157",
"language": "es",
"last_update": 1794214613,
"map": "coldmap1",
"maxplayers": 8,
"name": "yessy",
"numplayers": 0,
"official": null,
"points": 0,
"port": 7777,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "45.172.30.157:27015",
"secured": true,
"status": false,
"steam_id": "90296419184187405",
"version": "1.0.0.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Las Toscas",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794214613,
"last_online": 1793676020,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1423,
"wipe_period": null,
"os": "w",
"region": 255,
"product": "subsistence",
"gametype": "ColdGame",
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19578527");
$data = json_decode($json, true);
var_dump($data);