Day of Defeat: Source
-=|[European Battlefield]|=RS24/7 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11143596json
{
"response": {
"steam_id": "90284650650778627",
"domain": null,
"id": 11143596,
"ip": "91.211.118.87",
"port": 27018,
"query": 27018,
"color": 0,
"city": "Kyiv",
"description": null,
"game": 300,
"owner": null,
"boosts": 1,
"last_offline": 1776446605,
"score": 0,
"last_online": 1776613340,
"icon": null,
"name": "-=|[European Battlefield]|=RS24/7",
"connect": "91.211.118.87:27018",
"request": "91.211.118.87:27018",
"map": "dod_orange_new_fight_arena_v2",
"gamemode": "Day of Defeat",
"version": "9540945",
"numplayers": 0,
"maxplayers": 20,
"bots": 6,
"secured": true,
"private": false,
"country": "UA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772191743,
"last_update": 1776613340,
"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": 125,
"language": "uk",
"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/11143596");
$data = json_decode($json, true);
var_dump($data);