Day of Infamy
The Phoenix DOI Server için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11016077json
{
"response": {
"steam_id": "90284383144271885",
"domain": null,
"id": 11016077,
"ip": "142.167.246.195",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Corner Brook",
"description": null,
"game": 447820,
"owner": null,
"boosts": 1,
"last_offline": 1771164704,
"score": 0,
"last_online": 1776349273,
"icon": null,
"name": "The Phoenix DOI Server",
"connect": "142.167.246.195:27015",
"request": "142.167.246.195:27015",
"map": "brittany",
"gamemode": "DOI",
"version": "3.2.1.5",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1769943333,
"last_update": 1776349273,
"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": 17,
"language": "en",
"parked": false,
"app": {
"id": 167,
"steam_id": 447820,
"name": "Day of Infamy",
"url": "day-of-infamy"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11016077");
$data = json_decode($json, true);
var_dump($data);