Swords 'n Magic and Stuff
API для Goblin Wand Cult
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/1108524json
{
"response": {
"steam_id": "90284512073527305",
"domain": null,
"id": 1108524,
"ip": "108.85.39.133",
"port": 7781,
"query": 27022,
"color": 0,
"city": "Birmingham",
"description": "",
"game": 810040,
"owner": null,
"boosts": 1,
"last_offline": 1774309312,
"score": null,
"last_online": 1776344459,
"icon": null,
"name": "Goblin Wand Cult",
"connect": "108.85.39.133:7781",
"request": "108.85.39.133:27022",
"map": "Tirawyn",
"gamemode": "Unreal Test!",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1688789494,
"last_update": 1776344459,
"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": 1,
"language": "en",
"parked": false,
"app": {
"id": 47126,
"steam_id": 810040,
"name": "Swords 'n Magic and Stuff",
"url": "swords-n-magic-and-stuff"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/1108524");
$data = json_decode($json, true);
var_dump($data);