API для MTA @ ServerProject.net
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794808463,
"app": {
"id": 40530,
"name": "Multi Theft Auto",
"steam_id": 9000039,
"url": "multi-theft-auto"
},
"color": 0,
"connect": "8.140.38.54:21268",
"country": "CN",
"domain": null,
"game": 9000039,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20174858,
"ip": "8.140.38.54",
"language": "zh",
"last_update": 1794923661,
"map": null,
"maxplayers": 20,
"name": "MTA @ ServerProject.net",
"numplayers": 0,
"official": null,
"points": 30,
"port": 21268,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 21391,
"request": "8.140.38.54:21391",
"secured": null,
"status": true,
"steam_id": null,
"version": "1.6",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": null,
"city": "Пекин",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": null,
"last_online": 1794923661,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2632,
"wipe_period": null,
"keep": true,
"serials": null,
"gameName": null,
"httpPort": 21269,
"restrictions": 0,
"specialFlags": 3,
"masterNoResponse": false,
"searchIgnoreSections": [
{
"length": 0,
"offset": 0
}
]
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20174858");
$data = json_decode($json, true);
var_dump($data);