Rust
API für Facepunch Staging CraggyIsland
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/3024402json
{
"response": {
"fps": 59,
"fps_avg": 58,
"entities_count": 7338,
"world_seed": 56,
"world_size": 1024,
"steam_id": "90284797497325581",
"domain": null,
"id": 3024402,
"ip": "198.244.177.77",
"port": 28015,
"query": 28016,
"color": 0,
"city": "London",
"description": "\nThis is an official development test server owned and operated by Facepunch. Testing may interrupt gameplay and progress could be lost at any time.\r\n\r\nThe Staging Branch in Rust is a separate version of Rust where new updates and features are tested before being published to the main game. To join, launch 'Rust - Staging Branch' from your Steam library.\r\n\r\nSee more at https://rust.facepunch.com/staging",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1774899128,
"score": null,
"last_online": 1776873622,
"icon": null,
"name": "Facepunch Staging CraggyIsland",
"connect": "198.244.177.77:28015",
"request": "198.244.177.77:28016",
"map": "CraggyIsland",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 0,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1708077609,
"last_update": 1776873622,
"banned": false,
"wipe": 1774516409,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3116,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/3024402");
$data = json_decode($json, true);
var_dump($data);