Day of Defeat
【中国梦DOD】请添加收藏ip: dod.17cnd.com:27015 için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11488993json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11488993,
"ip": "111.170.35.235",
"port": 27022,
"query": 27022,
"color": 0,
"city": "Shizishan",
"description": null,
"game": 30,
"owner": null,
"boosts": 1,
"last_offline": 1775973806,
"score": 0,
"last_online": 1776315623,
"icon": null,
"name": "【中国梦DOD】请添加收藏ip: dod.17cnd.com:27015",
"connect": "111.170.35.235:27022",
"request": "111.170.35.235:27022",
"map": "dod_baojuhua_g",
"gamemode": "Day of Defeat",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 30,
"bots": 5,
"secured": false,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1775973806,
"last_update": 1776315623,
"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": 148,
"language": "zh",
"parked": false,
"app": {
"id": 28,
"steam_id": 30,
"name": "Day of Defeat",
"url": "day-of-defeat"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11488993");
$data = json_decode($json, true);
var_dump($data);