API для Rabs Place
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "bt,r220,n152946,s3,i1,mf,lf,vt,dt,tescape,g65545,h8744671b,f0,c-2147483648--2147483648,pw,e0,j0,k0,",
"os": "w",
"product": "Arma3",
"region": -1,
"steam_id": "90289441360401429",
"domain": null,
"id": 12497115,
"ip": "5.83.171.243",
"port": 10500,
"query": 10501,
"project_id": null,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1784769410,
"last_online": 1784756400,
"icon": null,
"name": "Rabs Place",
"connect": "5.83.171.243:10500",
"request": "5.83.171.243:10501",
"map": "Stratis",
"gamemode": null,
"version": "2.20.152984",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": false,
"private": null,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784724724,
"last_update": 1784769410,
"ban_reason": null,
"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": 4983,
"language": "de",
"parked": false,
"app": {
"id": 61,
"steam_id": 107410,
"name": "Arma 3",
"url": "arma-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12497115");
$data = json_decode($json, true);
var_dump($data);