API dla ..:: TRONADOR | Challenge 24/7 ::..
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90287023630001169",
"domain": null,
"id": 11805676,
"ip": "190.173.103.122",
"port": 7757,
"query": 27557,
"project_id": null,
"color": 0,
"city": "Buenos Aires",
"description": null,
"game": 232090,
"owner": null,
"boosts": 1,
"last_offline": 1781479446,
"last_online": 1781475656,
"icon": null,
"name": "..:: TRONADOR | Challenge 24/7 ::..",
"connect": "190.173.103.122:7757",
"request": "190.173.103.122:27557",
"map": "KF-ZASHIKI_Challenge",
"gamemode": "Killing Floor 2",
"version": "1150",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "AR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1781464799,
"last_update": 1781479446,
"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": 1300,
"language": "es",
"parked": false,
"app": {
"id": 51,
"steam_id": 232090,
"name": "Killing Floor 2",
"url": "killing-floor-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11805676");
$data = json_decode($json, true);
var_dump($data);