Samp
API для GTALG.LT || Atnaujintas
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/68956json
{
"response": {
"steam_id": null,
"domain": null,
"id": 68956,
"ip": "91.211.244.140",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Vilnius",
"description": "",
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1774387315,
"score": null,
"last_online": 1776380542,
"icon": null,
"name": "GTALG.LT || Atnaujintas",
"connect": "91.211.244.140:7777",
"request": "91.211.244.140:7777",
"map": "San Fierro",
"gamemode": "# LG.24.07",
"version": "omp 1.3.1.2748",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": null,
"private": false,
"country": "LT",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1521489869,
"last_update": 1776380542,
"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": 265,
"language": "lt",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/68956");
$data = json_decode($json, true);
var_dump($data);