Arma 3
API pentru Payday
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11448897json
{
"response": {
"steam_id": "90284535942110218",
"domain": null,
"id": 11448897,
"ip": "24.21.157.67",
"port": 2302,
"query": 2303,
"color": 0,
"city": "Vancouver",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1776455436,
"score": 0,
"last_online": 1776378636,
"icon": null,
"name": "Payday",
"connect": "24.21.157.67:2302",
"request": "24.21.157.67:2303",
"map": "Tanoa",
"gamemode": "Tanoa%20basic%20zues",
"version": "2.20.152984",
"numplayers": 2,
"maxplayers": 2,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": false,
"votes": 0,
"points": 41,
"add_date": 1774977954,
"last_update": 1776455436,
"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": 179,
"language": "en",
"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/11448897");
$data = json_decode($json, true);
var_dump($data);