FR/EN | RUSTIANLIFE PURPLE x2 | JUST BP WIPED | QUAD | NO P2W 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286945804206109",
"domain": null,
"id": 11759302,
"ip": "217.145.72.197",
"port": 28015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Vélizy-Villacoublay",
"description": "\nEN & FR\r\n\r\nPURPLE - SOLO/DUO/TRIO/QUAD\r\n\r\nx2 Farm\r\nx2 Stacks\r\nFast Furnace\r\nFast Crafting\r\n\r\nNo P2W & cool",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1781283840,
"last_online": 1781354426,
"icon": null,
"name": "FR/EN | RUSTIANLIFE PURPLE x2 | JUST BP WIPED | QUAD | NO P2W",
"connect": "217.145.72.197:28015",
"request": "217.145.72.197:27015",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2627",
"numplayers": 9,
"maxplayers": 99,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1780931707,
"last_update": 1781354426,
"banned": false,
"wipe": 1781284265,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1224,
"language": "fr",
"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/11759302");
$data = json_decode($json, true);
var_dump($data);