API dla savage domain
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286399375002633",
"domain": null,
"id": 11544155,
"ip": "95.156.213.69",
"port": 11000,
"query": 11001,
"project_id": null,
"color": 0,
"city": "Clifton",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780871610,
"last_online": 1780216332,
"icon": null,
"name": "savage domain",
"connect": "95.156.213.69:11000",
"request": "95.156.213.69:11001",
"map": "VRisingWorld",
"gamemode": "853cbd12-5337-413d-9e4a-0c19b1bb2ec5",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779355516,
"last_update": 1780871610,
"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": 3992,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11544155");
$data = json_decode($json, true);
var_dump($data);