Multi Theft Auto
API для MTA Province #1 [gtaprovince.ru]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/1030421json
{
"response": {
"steam_id": null,
"domain": null,
"id": 1030421,
"ip": "185.71.66.80",
"port": 22003,
"query": 22126,
"color": 0,
"city": "Moscow",
"description": "",
"game": 9000039,
"owner": null,
"boosts": 1,
"last_offline": 1776304910,
"score": null,
"last_online": 1776798611,
"icon": null,
"name": "MTA Province #1 [gtaprovince.ru]",
"connect": "185.71.66.80:22003",
"request": "185.71.66.80:22126",
"map": "None",
"gamemode": "MTA:SA",
"version": "1.6n",
"numplayers": 632,
"maxplayers": 1000,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 118,
"add_date": 1685805114,
"last_update": 1776798611,
"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": 1,
"language": "ru",
"parked": false,
"app": {
"id": 40530,
"steam_id": 9000039,
"name": "Multi Theft Auto",
"url": "multi-theft-auto"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/1030421");
$data = json_decode($json, true);
var_dump($data);