API dla AMS1-M7CLQX
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286849968542732",
"domain": null,
"id": 1939847,
"ip": "212.102.34.25",
"port": 28136,
"query": 27136,
"project_id": null,
"color": 0,
"city": "Amsterdam",
"description": "",
"game": 374280,
"owner": null,
"boosts": 1,
"last_offline": 1781191398,
"last_online": 1781115203,
"icon": null,
"name": "AMS1-M7CLQX",
"connect": "212.102.34.25:28136",
"request": "212.102.34.25:27136",
"map": "5",
"gamemode": "Contract Wars 2.0 Standalone",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1700830177,
"last_update": 1781191398,
"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": 672,
"language": "nl",
"parked": false,
"app": {
"id": 6495,
"steam_id": 374280,
"name": "Hired Ops",
"url": "hired-ops"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/1939847");
$data = json_decode($json, true);
var_dump($data);