API dla DarkSideAlliance.com|JoinDSA.com|US-EAST|RWG|PVP|SO
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90287046872785936",
"domain": null,
"id": 7774382,
"ip": "100.40.168.90",
"port": 26924,
"query": 26924,
"project_id": null,
"color": 0,
"city": "Wappingers Falls",
"description": null,
"game": 251570,
"owner": null,
"boosts": 1,
"last_offline": 1781514845,
"last_online": 1781586795,
"icon": null,
"name": "DarkSideAlliance.com|JoinDSA.com|US-EAST|RWG|PVP|SO",
"connect": "100.40.168.90:26924",
"request": "100.40.168.90:26924",
"map": "New Vefusuyi Territory",
"gamemode": "7 Days To Die",
"version": "01.02.06",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1739907829,
"last_update": 1781586795,
"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": 981,
"language": "en",
"parked": false,
"app": {
"id": 49,
"steam_id": 251570,
"name": "7 Days to Die",
"url": "7-days-to-die"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/7774382");
$data = json_decode($json, true);
var_dump($data);