Black Mesa
CPArg.com - Black Mesa: Deathmatch 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10757380json
{
"response": {
"steam_id": "85568392928089119",
"domain": null,
"id": 10757380,
"ip": "186.18.80.224",
"port": 27042,
"query": 27042,
"color": 0,
"city": "Buenos Aires",
"description": null,
"game": 362890,
"owner": null,
"boosts": 1,
"last_offline": 1776234714,
"score": 0,
"last_online": 1776307230,
"icon": null,
"name": "CPArg.com - Black Mesa: Deathmatch",
"connect": "186.18.80.224:27042",
"request": "186.18.80.224:27042",
"map": "dm_coolant",
"gamemode": "Black Mesa",
"version": "100002",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "AR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766255101,
"last_update": 1776307230,
"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": 23,
"language": "es",
"parked": false,
"app": {
"id": 4,
"steam_id": 362890,
"name": "Black Mesa",
"url": "black-mesa"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10757380");
$data = json_decode($json, true);
var_dump($data);