API dla NullFoundry (v0.6.0.26518)
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": 90286540588981250,
"domain": null,
"id": 11587539,
"ip": "140.228.246.114",
"port": 3724,
"query": 27015,
"color": 0,
"city": "Erie",
"description": null,
"game": 983870,
"owner": null,
"boosts": 1,
"last_offline": 1780579417,
"last_online": 1780503639,
"icon": null,
"name": "NullFoundry (v0.6.0.26518)",
"connect": "140.228.246.114:3724",
"request": "140.228.246.114:27015",
"map": "Procedural",
"gamemode": "Foundry",
"version": "0.6.0.26518",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779357452,
"last_update": 1780579417,
"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": 248,
"language": "en",
"parked": false,
"app": {
"id": 1516842,
"steam_id": 983870,
"name": "FOUNDRY",
"url": "foundry"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11587539");
$data = json_decode($json, true);
var_dump($data);