Rust
API для RustArgentinaSergiopalm PVE/PVP
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10633555json
{
"response": {
"fps": 212,
"fps_avg": 198,
"entities_count": 31567,
"world_seed": 382657809,
"world_size": 3500,
"steam_id": "90285666126966798",
"domain": null,
"id": 10633555,
"ip": "45.178.193.226",
"port": 10002,
"query": 10003,
"color": 0,
"city": "Córdoba",
"description": "\nBienvenidos a RustArgentinaSergiopalm - Vanilla! \r\n ● Prohibido el uso de HACKS, Scripts, Exploits,...\r\n ● No construir limitando a otros jugadores el acceso a los Airdrop o monumentos, eventos, etc.\r\n ● 1 Base por Team o Individual.- Max x Team: 4\r\n/flag Solo por pedido en Discord\r\n/kit - /remove\r\n\r\nSi tienes algun problema o duda, consultarnos...\r\nDISCORD\r\nhttps://discord.gg/Q2zjpVTeND",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778599978,
"score": 0,
"last_online": 1778617816,
"icon": null,
"name": "RustArgentinaSergiopalm PVE/PVP",
"connect": "45.178.193.226:10002",
"request": "45.178.193.226:10003",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 8,
"maxplayers": 35,
"bots": 0,
"secured": true,
"private": false,
"country": "AR",
"status": true,
"votes": 0,
"points": 70,
"add_date": 1763713845,
"last_update": 1778617816,
"banned": false,
"wipe": 1778179830,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 826,
"language": "es",
"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/10633555");
$data = json_decode($json, true);
var_dump($data);