Rust
[EU] Northern-Gaming.com | Solo Only | MONTHLY | Just Wiped 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/5387968json
{
"response": {
"fps": 66,
"fps_avg": 88,
"entities_count": 89717,
"world_seed": 29,
"world_size": 3800,
"steam_id": "90284797104138241",
"domain": null,
"id": 5387968,
"ip": "109.228.171.11",
"port": 28028,
"query": 28027,
"color": 0,
"city": "Stockholm",
"description": "![[EU] Northern-Gaming.com | Solo Only | MONTHLY | Just Wiped](https://i.ibb.co/VBtTmh7/logo.png)\nWelcome to Northern-Gaming SOLO vanilla server!\r\n\r\n-No cheating or exploiting.\r\n-Do not have alliance with other players\r\n-Do not play i team\r\n\r\n-No racist words/signs used.\r\n-You will not be able to play if you have VAC in the last 365 days.\r\n-Active Admin's\r\n\r\nJoin discord https://discord.gg/yMyYn8Tf2C for more information.\r\nMonthly bp wipe @ Force.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776831197,
"score": 0,
"last_online": 1776880827,
"icon": null,
"name": "[EU] Northern-Gaming.com | Solo Only | MONTHLY | Just Wiped",
"connect": "109.228.171.11:28028",
"request": "109.228.171.11:28027",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 1,
"maxplayers": 175,
"bots": 0,
"secured": true,
"private": false,
"country": "SE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1722420317,
"last_update": 1776880827,
"banned": false,
"wipe": 1775301782,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3286,
"language": "sv",
"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/5387968");
$data = json_decode($json, true);
var_dump($data);