API для Swedish N00bs
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 199,
"fps_avg": 184,
"entities_count": 58677,
"world_seed": 635667938,
"world_size": 3500,
"steam_id": "90286603005992983",
"domain": null,
"id": 11260593,
"ip": "158.174.11.164",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Bollnäs",
"description": "\nNON-Toxic friendly PVP, make it fun for all levels of experience. Help out and teach each other new things. Or you can just chill. PVE'ers are just as welcome.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780648998,
"last_online": 1780594238,
"icon": null,
"name": "Swedish N00bs",
"connect": "158.174.11.164:28015",
"request": "158.174.11.164:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "SE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774555197,
"last_update": 1780648998,
"banned": false,
"wipe": 1779454097,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 10307,
"language": "sv",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11260593");
$data = json_decode($json, true);
var_dump($data);