API dla ICARUS POLYGON
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286256801797132",
"domain": null,
"id": 11532884,
"ip": "147.93.162.102",
"port": 28400,
"query": 28415,
"project_id": null,
"color": 0,
"city": "Lauterbourg",
"description": null,
"game": 1149460,
"owner": 195854,
"boosts": 1,
"last_offline": 1780736001,
"last_online": 1779915620,
"icon": null,
"name": "ICARUS POLYGON",
"connect": "147.93.162.102:28400",
"request": "147.93.162.102:28415",
"map": null,
"gamemode": "Icarus",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": false,
"votes": 1,
"points": 1,
"add_date": 1779355189,
"last_update": 1780736001,
"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": 7258,
"language": "fr",
"parked": false,
"app": {
"id": 1600891,
"steam_id": 1149460,
"name": "Icarus",
"url": "icarus"
},
"server_owner": {
"username": "perupp",
"avatar": "c7e12cf8-b4a2-4cf2-993a-291df8139ebb.webp"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11532884");
$data = json_decode($json, true);
var_dump($data);