API для Grim Dawn Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": false,
"gametype": "cp=1,sl=0,df=0,cm=0,pv=0,hc=0,ap=1,in=1,pw=1",
"os": "w",
"product": "219990",
"region": -1,
"steam_id": "90288882974832667",
"domain": null,
"id": 12259704,
"ip": "78.82.181.188",
"port": 42805,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Malmö",
"description": null,
"game": 219990,
"owner": null,
"boosts": 1,
"last_offline": 1784090521,
"last_online": 1784065259,
"icon": null,
"name": "Grim Dawn Server",
"connect": "78.82.181.188:42805",
"request": "78.82.181.188:27016",
"map": "levels/world001.map",
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": null,
"country": "SE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1783861490,
"last_update": 1784090521,
"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": 7220,
"language": "sv",
"parked": false,
"app": {
"id": 101,
"steam_id": 219990,
"name": "Grim Dawn",
"url": "grim-dawn"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12259704");
$data = json_decode($json, true);
var_dump($data);