API dla gigantesdoicarus-icarusbrasil.com.br
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90285189393720321",
"domain": null,
"id": 11534709,
"ip": "187.16.252.249",
"port": 27502,
"query": 27503,
"color": 0,
"city": "Nova Friburgo",
"description": null,
"game": 1149460,
"owner": null,
"boosts": 1,
"last_offline": 1780588405,
"last_online": 1780407176,
"icon": null,
"name": "gigantesdoicarus-icarusbrasil.com.br",
"connect": "187.16.252.249:27502",
"request": "187.16.252.249:27503",
"map": null,
"gamemode": "Icarus",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "BR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779355226,
"last_update": 1780588405,
"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": 8212,
"language": "pt",
"parked": false,
"app": {
"id": 1600891,
"steam_id": 1149460,
"name": "Icarus",
"url": "icarus"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11534709");
$data = json_decode($json, true);
var_dump($data);