API dla RUSTGRAD X3 MAX4
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 211,
"fps_avg": 209,
"entities_count": 54738,
"world_seed": 1927315332,
"world_size": 3250,
"steam_id": "90286408170413072",
"domain": null,
"id": 11644859,
"ip": "185.189.255.113",
"port": 35600,
"query": 35610,
"color": 0,
"city": "Moscow",
"description": "\nчиты - бан,\r\nкемперство - бан, \r\nоскорбление - бан, \r\nоскорбление администрации - расстрел,потом бан. \r\nвсем удачи.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780177438,
"last_online": 1780570830,
"icon": null,
"name": "RUSTGRAD X3 MAX4",
"connect": "185.189.255.113:35600",
"request": "185.189.255.113:35610",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 1,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780177438,
"last_update": 1780570830,
"banned": false,
"wipe": 1780071062,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5705,
"language": "ru",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11644859");
$data = json_decode($json, true);
var_dump($data);