API для ^^^^^^^YOP-Today Source Server^^^^^^^
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "g:liberation,p:custom,t:default,v:3215,pure:2,grp:5513290i,bots,compspec,dedicated,fastdl,increased_maxplayers,public,pure,stat",
"os": "l",
"product": "doi",
"region": 3,
"steam_id": "90288743187473424",
"domain": null,
"id": 12256679,
"ip": "178.33.39.169",
"port": 33786,
"query": 33786,
"project_id": null,
"color": 0,
"city": "Cologne",
"description": null,
"game": 447820,
"owner": null,
"boosts": 1,
"last_offline": 1784125963,
"last_online": 1783854950,
"icon": null,
"name": "^^^^^^^YOP-Today Source Server^^^^^^^",
"connect": "178.33.39.169:33786",
"request": "178.33.39.169:33786",
"map": "bastogne",
"gamemode": null,
"version": "3.2.1.5",
"numplayers": 0,
"maxplayers": 49,
"bots": 0,
"secured": true,
"private": null,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1783852550,
"last_update": 1784125963,
"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": 889,
"language": "de",
"parked": false,
"app": {
"id": 167,
"steam_id": 447820,
"name": "Day of Infamy",
"url": "day-of-infamy"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12256679");
$data = json_decode($json, true);
var_dump($data);