Project Kush PVE|PVP 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 74004,
"world_seed": 572026,
"world_size": 3600,
"steam_id": "90286584322962446",
"domain": null,
"id": 11677595,
"ip": "185.187.155.62",
"port": 28115,
"query": 28116,
"color": 0,
"city": "Dallas",
"description": "\nWelcome to ===Project Kush PVE|PVP===\r\n*** Wipe Schedule .... Monthly -- First Thursday of every monthThis is for Map Bp Money\r\n*** Raid Protection .... All Player have 5 Days OFFLINE Raid Protection so make sure you\r\nlogin within 5-day grace period\r\n\r\n*** Features & Events ....\r\nBot -- Bot boss -- RaidBases -- Shop -- Convoy\r\nDrugs -- Weed -- Smokable Drugs -- Abandoned Bases\r\n\r\n*** Server Intro .... here on the server we're trying to grow a nice small Community Based on marijuana\r\nand fun hippie like fun admins and owner are always active even when we're not on the server\r\ncome join and have fun and grow some marijuana\r\n\r\n****Needing Help .... please don't hesitate to join Discord to keep up-to-date and get help from staff immediately and\r\nyou can always shoot ideas across to help the server",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780556669,
"last_online": 1780589431,
"icon": null,
"name": "Project Kush PVE|PVP",
"connect": "185.187.155.62:28115",
"request": "185.187.155.62:28116",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1780216216,
"last_update": 1780589431,
"banned": false,
"wipe": 1778176485,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2108,
"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/11677595");
$data = json_decode($json, true);
var_dump($data);