Military Conflict: Vietnam
PapasServer 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/6020746json
{
"response": {
"steam_id": null,
"domain": null,
"id": 6020746,
"ip": "109.123.108.105",
"port": 39501,
"query": 39501,
"color": 0,
"city": "Bradford",
"description": null,
"game": 1012110,
"owner": null,
"boosts": 1,
"last_offline": 1777653751,
"score": 0,
"last_online": 1776938497,
"icon": null,
"name": "PapasServer",
"connect": "109.123.108.105:39501",
"request": "109.123.108.105:39501",
"map": "mcv_outpost",
"gamemode": "MCV | TeamDeathmatch",
"version": "1.38.0.0",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1727441955,
"last_update": 1777653751,
"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": 29,
"language": "en",
"parked": false,
"app": {
"id": 1611160,
"steam_id": 1012110,
"name": "Military Conflict: Vietnam",
"url": "military-conflict-vietnam"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/6020746");
$data = json_decode($json, true);
var_dump($data);