Samp
API для RUSSIA RP Moscow | 999M$ | • RUS/ENG •
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11143500json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11143500,
"ip": "186.2.175.43",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Belmopan",
"description": null,
"game": 9000035,
"owner": null,
"boosts": 1,
"last_offline": 1773750723,
"score": 0,
"last_online": 1776353416,
"icon": null,
"name": "RUSSIA RP Moscow | 999M$ | • RUS/ENG •",
"connect": "186.2.175.43:7777",
"request": "186.2.175.43:7777",
"map": "San Andreas",
"gamemode": "Made in Russia",
"version": "0.3.7-R2",
"numplayers": 357,
"maxplayers": 500,
"bots": 0,
"secured": null,
"private": false,
"country": "BZ",
"status": true,
"votes": 0,
"points": 81,
"add_date": 1772001466,
"last_update": 1776353416,
"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": 21,
"language": "en",
"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/11143500");
$data = json_decode($json, true);
var_dump($data);