API dla 24/7 Escal. PVP NO NUKES [SRS]
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286622352269327",
"domain": null,
"id": 11587772,
"ip": "104.238.220.56",
"port": 2565,
"query": 2487,
"color": 0,
"city": "Los Angeles",
"description": null,
"game": 2168680,
"owner": null,
"boosts": 1,
"last_offline": 1780279450,
"last_online": 1780657292,
"icon": null,
"name": "24/7 Escal. PVP NO NUKES [SRS]",
"connect": "104.238.220.56:2565",
"request": "104.238.220.56:2487",
"map": "Heartland | Vanilla Escalation",
"gamemode": "Nuclear Option Server",
"version": "0.33.3",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779357483,
"last_update": 1780657292,
"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": 58,
"language": "en",
"parked": false,
"app": {
"id": 1615382,
"steam_id": 2168680,
"name": "Nuclear Option",
"url": "nuclear-option"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11587772");
$data = json_decode($json, true);
var_dump($data);