Portal World 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90285682866180119",
"domain": null,
"id": 11571775,
"ip": "185.239.211.15",
"port": 28200,
"query": 28215,
"project_id": null,
"color": 0,
"city": "Lauterbourg",
"description": null,
"game": 427410,
"owner": null,
"boosts": 1,
"last_offline": 1780952020,
"last_online": 1780086676,
"icon": null,
"name": "Portal World",
"connect": "185.239.211.15:28200",
"request": "185.239.211.15:28215",
"map": null,
"gamemode": "Abiotic Factor",
"version": "1.0.0.6",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": false,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779356713,
"last_update": 1780952020,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2671,
"language": "fr",
"parked": false,
"app": {
"id": 1611062,
"steam_id": 427410,
"name": "Abiotic Factor",
"url": "abiotic-factor"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11571775");
$data = json_decode($json, true);
var_dump($data);