Rust
API для Rusty Spoon [DEV]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/6125181json
{
"response": {
"fps": 45,
"fps_avg": 44,
"entities_count": 128180,
"world_seed": 1337,
"world_size": 4500,
"steam_id": "90285192993544209",
"domain": null,
"id": 6125181,
"ip": "65.109.111.251",
"port": 27015,
"query": 27017,
"color": 0,
"city": "Helsinki",
"description": "Rusty Spoon DevMap size is 4250 using seed 1337.\r\nLast wipe was at 04/12/2024, Next wipe is at 05/12/2024\r\nServer has 51188 seconds uptime, running at 44.92 fps with 1/0 players online.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777603990,
"score": 0,
"last_online": 1777666827,
"icon": null,
"name": "Rusty Spoon [DEV]",
"connect": "65.109.111.251:27015",
"request": "65.109.111.251:27017",
"map": "discord.gg/rustyspoon",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "FI",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1727883294,
"last_update": 1777666827,
"banned": false,
"wipe": 1777603929,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3195,
"language": "fi",
"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/6125181");
$data = json_decode($json, true);
var_dump($data);