Garry's Mod
API для mcrp - desenvolvimento
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11138714json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11138714,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "São Gotardo",
"description": null,
"game": 4000,
"owner": 166936,
"boosts": 1,
"last_offline": 1772316567,
"score": 0,
"last_online": 1771437616,
"icon": null,
"name": "mcrp - desenvolvimento",
"connect": null,
"request": null,
"map": "rp_downtown_tits_v25",
"gamemode": "DarkRP",
"version": null,
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": true,
"country": "BR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1770528663,
"last_update": 1772316567,
"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": 3920,
"language": "pt",
"parked": true,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"server_owner": {
"username": "saitaro",
"avatar": "bbd25075-9101-497d-9040-25c8257f0aab.jpg",
"last_online": 1770627202
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11138714");
$data = json_decode($json, true);
var_dump($data);