frankies world 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 56,
"fps_avg": 75,
"entities_count": 51597,
"world_seed": 786759279,
"world_size": 3250,
"steam_id": "90286362278591517",
"domain": null,
"id": 11644938,
"ip": "63.135.74.35",
"port": 28015,
"query": 28014,
"color": 0,
"city": "Accrington",
"description": "Welcome to Alpha oxide modded\r\n\r\nThis a mounthly server\r\nRaid protection between 00:00-17:00 perfect for working people\r\nBPS WILL NOT BE WIPPED\r\nMods are\r\nFree starter kits\r\nTrain Event\r\nBackpacks\r\nBuilding skins\r\nReskin any item\r\nNPC raides you!!\r\nAlpha Treasure hunt\r\nMore to come.\r\nNon playing Active admins to help with you needs",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780177440,
"last_online": 1780555828,
"icon": null,
"name": "frankies world",
"connect": "63.135.74.35:28015",
"request": "63.135.74.35:28014",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780177440,
"last_update": 1780555828,
"banned": false,
"wipe": 1778322638,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5672,
"language": "en",
"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/11644938");
$data = json_decode($json, true);
var_dump($data);