API pentru [KPblM]Lirov
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286410857247749",
"domain": null,
"id": 1945545,
"ip": "109.197.9.84",
"port": 2302,
"query": 2303,
"color": 0,
"city": "Sarapul",
"description": "",
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1780556619,
"last_online": 1780162244,
"icon": null,
"name": "[KPblM]Lirov",
"connect": "109.197.9.84:2302",
"request": "109.197.9.84:2303",
"map": "carter_winter",
"gamemode": "TSG@196_BL_2nd_Battle_Of_Pecher_v6",
"version": "2.20.152984",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": true,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1700842491,
"last_update": 1780556619,
"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": 4127,
"language": "ru",
"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/1945545");
$data = json_decode($json, true);
var_dump($data);