Rust
API для [US] The Whore House 10x | Kits | PVP+ | Small |
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10979358json
{
"response": {
"fps": 200,
"fps_avg": 188,
"entities_count": 19408,
"world_seed": 1337,
"world_size": 2000,
"steam_id": "90284711180389377",
"domain": null,
"id": 10979358,
"ip": "174.16.41.131",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Denver",
"description": "![[US] The Whore House 10x | Kits | PVP+ | Small |](https://i.imgur.com/oOpiMvX.png)\nWelcome to the official Rust server of The Whore House Discord server.\r\n\r\nBuilt and designed primarily for the users of our discord server, but open to all. Load in and enjoy!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775091730,
"score": 0,
"last_online": 1776832821,
"icon": null,
"name": "[US] The Whore House 10x | Kits | PVP+ | Small |",
"connect": "174.16.41.131:28015",
"request": "174.16.41.131:28017",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2622",
"numplayers": 0,
"maxplayers": 125,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1769901101,
"last_update": 1776832821,
"banned": false,
"wipe": 1772987182,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4396,
"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/10979358");
$data = json_decode($json, true);
var_dump($data);