Rust
API для [SEA] The Den Beginners PVP 2X
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11261287json
{
"response": {
"fps": 100,
"fps_avg": 99,
"entities_count": 84886,
"world_seed": 1310747615,
"world_size": 3700,
"steam_id": "90284750837897232",
"domain": null,
"id": 11261287,
"ip": "116.89.111.196",
"port": 28215,
"query": 28217,
"color": 0,
"city": "Singapore",
"description": "![[SEA] The Den Beginners PVP 2X](https://i.imgur.com/SptlAKG.jpg)\n[Server Info]\r\n2X Resources - All Monuments.\r\nWeekly Map Wipe.\r\n\r\nJoin Discord - dc.thedenservers.com\r\n\r\n[Rules]\r\n1. Respect fellow players.\r\n2. Be chill and a sport. Play on PVE-Only servers if you can't take the hit.\r\n3. No toxicity, trolling, bullying, sexism or racism.\r\n4. No disrespecting of others' religion.\r\n5. No cheating, glitching, scripting or hacking of any kind.\r\n\r\nHave fun!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776393818,
"score": 0,
"last_online": 1776848423,
"icon": null,
"name": "[SEA] The Den Beginners PVP 2X",
"connect": "116.89.111.196:28215",
"request": "116.89.111.196:28217",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 80,
"bots": 0,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774555232,
"last_update": 1776848423,
"banned": false,
"wipe": 1776393979,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5046,
"language": "en",
"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/11261287");
$data = json_decode($json, true);
var_dump($data);