Half-Life 2: Deathmatch
»» DM - Overwatch² // by www.BASEMOD.net [EU] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10791885json
{
"response": {
"steam_id": "90283724024140812",
"domain": null,
"id": 10791885,
"ip": "134.255.252.46",
"port": 27300,
"query": 27300,
"color": 0,
"city": "Münster",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1774990936,
"score": 0,
"last_online": 1776441651,
"icon": null,
"name": "»» DM - Overwatch² // by www.BASEMOD.net [EU]",
"connect": "134.255.252.46:27300",
"request": "134.255.252.46:27300",
"map": "dm_overwatch",
"gamemode": "www.BASEMOD.net",
"version": "9540945",
"numplayers": 0,
"maxplayers": 16,
"bots": 9,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766875275,
"last_update": 1776441651,
"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": 159,
"language": "de",
"parked": false,
"app": {
"id": 1,
"steam_id": 320,
"name": "Half-Life 2: Deathmatch",
"url": "half-life-2-deathmatch"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10791885");
$data = json_decode($json, true);
var_dump($data);