Gli Spartani 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 106,
"fps_avg": 104,
"entities_count": 70187,
"world_seed": 648252,
"world_size": 3500,
"steam_id": "90286554032202773",
"domain": null,
"id": 11606365,
"ip": "136.243.70.123",
"port": 28025,
"query": 28027,
"color": 0,
"city": "Falkenstein",
"description": ".jpg)\nBenvenuto su un server Rust 100% Vanilla![ITALIA] - Mappa Procedurale\r\n\r\nNessun plugin, nessun moltiplicatore. Solo pura sopravvivenza.\r\nIl server viene riavviato regolarmente per garantire prestazioni fluide e zero lag.\r\n\r\nREGOLE PRINCIPALI:\r\n- Rispetta gli altri giocatori (No tossicità)\r\n- Vietato l'uso di cheat, script o exploit\r\n\r\n Entra nel nostro Discord per rimanere aggiornato sui Wipe:\r\n https://discord.gg/7nwtTp6q",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780325008,
"last_online": 1780570234,
"icon": null,
"name": "Gli Spartani",
"connect": "136.243.70.123:28025",
"request": "136.243.70.123:28027",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779915468,
"last_update": 1780570234,
"banned": false,
"wipe": 1779822953,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5355,
"language": "de",
"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.cn/servers/11606365");
$data = json_decode($json, true);
var_dump($data);