Arma 3
API pentru [PL] | S2 [EWA]Squad | www.ewasquad.pl
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/80222json
{
"response": {
"steam_id": "90284416192424970",
"domain": null,
"id": 80222,
"ip": "195.88.28.71",
"port": 2302,
"query": 2303,
"color": 0,
"city": "Rędziny",
"description": "",
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1776013336,
"score": null,
"last_online": 1776468684,
"icon": null,
"name": "[PL] | S2 [EWA]Squad | www.ewasquad.pl",
"connect": "195.88.28.71:2302",
"request": "195.88.28.71:2303",
"map": "lythium",
"gamemode": "Liberation [EWA] edit",
"version": "2.20.152984",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": false,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1521500149,
"last_update": 1776468684,
"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": 411,
"language": "pl",
"parked": false,
"app": {
"id": 61,
"steam_id": 107410,
"name": "Arma 3",
"url": "arma-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/80222");
$data = json_decode($json, true);
var_dump($data);