Rust
API для T.B.O -- développements
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11018067json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 126646,
"world_seed": 1337,
"world_size": 6000,
"steam_id": "90285464211544094",
"domain": null,
"id": 11018067,
"ip": "85.26.8.99",
"port": 20105,
"query": 20106,
"color": 0,
"city": "Lessines",
"description": "\nWipe Schedule:\n Map - Monthly @ Force\n BPs - Monthly @ Force\n\nRules:\n - No hacking / scripting\n - No intentional bug abuse\n - No EAC / FP banned alts\n - No ban evading\n - No racism\n\nGood performance\nActive non playing admins\nSeeds are carefully picked\n\nConnect: eul1.the-bandit.ovh\nDiscord: the-bandit.ovh/discord\nFull rules: the-bandit.ovh/rules\n\nVIP: the-bandit.ovh/vip",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778185387,
"score": 0,
"last_online": 1778180418,
"icon": null,
"name": "T.B.O -- développements",
"connect": "85.26.8.99:20105",
"request": "85.26.8.99:20106",
"map": "the-bandit.ovh/discord",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "BE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1769944416,
"last_update": 1778185387,
"banned": false,
"wipe": 1778150811,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7379,
"language": "nl",
"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/11018067");
$data = json_decode($json, true);
var_dump($data);