Rust
API für Rustafied.com - SEA Main
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10871274json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 135475,
"world_seed": 121984554,
"world_size": 4000,
"steam_id": "90284756542155797",
"domain": null,
"id": 10871274,
"ip": "45.124.213.17",
"port": 28015,
"query": 28018,
"color": 0,
"city": "Singapore",
"description": "\nWeekly map wipe @ 15:00 Singapore Time (unless forced wipe) \r\n\r\n - Player portal: https://my.rustafied.com (server info, map voting, banlist, and more) \r\n - Store: https://rustafied.com/store \r\n - Support: https://rustafied.com/support \r\n - Discord: https://discord.gg/rustafied \r\n\r\n Forced wipe: First Friday @ 2AM SGT (wipes all blueprints)",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776856398,
"score": 0,
"last_online": 1776856947,
"icon": null,
"name": "Rustafied.com - SEA Main",
"connect": "45.124.213.17:28015",
"request": "45.124.213.17:28018",
"map": "Rustafied Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 19,
"maxplayers": 350,
"bots": 0,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 2,
"add_date": 1768318548,
"last_update": 1776856947,
"banned": false,
"wipe": 1776322850,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7682,
"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/10871274");
$data = json_decode($json, true);
var_dump($data);