API для Marcus
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": false,
"gametype": "BUILDID:0,OWNINGID:76561198333543359,OWNINGNAME:Marcus,SESSIONFLAGS:512",
"os": "w",
"product": "unrealdk",
"region": -1,
"steam_id": "90288802537804815",
"domain": null,
"id": 12282231,
"ip": "213.113.82.200",
"port": 7777,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Danderyd",
"description": null,
"game": 1378990,
"owner": null,
"boosts": 1,
"last_offline": 1784125930,
"last_online": 1783947761,
"icon": null,
"name": "Marcus",
"connect": "213.113.82.200:7777",
"request": "213.113.82.200:27015",
"map": null,
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 0,
"bots": 0,
"secured": true,
"private": null,
"country": "SE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1783946590,
"last_update": 1784125930,
"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": 553,
"language": "sv",
"parked": false,
"app": {
"id": 1611530,
"steam_id": 1378990,
"name": "Crash Bandicoot 4: It’s About Time",
"url": "crash-bandicoot-4-it-s-about-time"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12282231");
$data = json_decode($json, true);
var_dump($data);