API dla Mr Incredible
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90270832103315476",
"domain": null,
"id": 9742845,
"ip": "82.134.173.24",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Odense",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1780921411,
"last_online": 1780488158,
"icon": null,
"name": "Mr Incredible",
"connect": "82.134.173.24:27015",
"request": "82.134.173.24:27015",
"map": "crossfire",
"gamemode": "Half-Life",
"version": "1.1.2.2/Stdio",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "DK",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1752178742,
"last_update": 1780921411,
"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": 410,
"language": "da",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/9742845");
$data = json_decode($json, true);
var_dump($data);