Day of Defeat: Source
[SRRP] Orange_The_Tower_V3__OP 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/4202829json
{
"response": {
"steam_id": "90284001492839439",
"domain": null,
"id": 4202829,
"ip": "64.31.28.156",
"port": 27025,
"query": 27025,
"color": 0,
"city": "New York",
"description": "",
"game": 300,
"owner": null,
"boosts": 1,
"last_offline": 1775470327,
"score": 0,
"last_online": 1776244841,
"icon": null,
"name": "[SRRP] Orange_The_Tower_V3__OP",
"connect": "64.31.28.156:27025",
"request": "64.31.28.156:27025",
"map": "dod_orange_the_tower_v3__op",
"gamemode": "Day of Defeat",
"version": "6630498",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1715161005,
"last_update": 1776244841,
"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": 55,
"language": "en",
"parked": false,
"app": {
"id": 8,
"steam_id": 300,
"name": "Day of Defeat: Source",
"url": "day-of-defeat-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/4202829");
$data = json_decode($json, true);
var_dump($data);