Samp
TRAINING 2.0 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11222794json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11222794,
"ip": "185.176.94.166",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Frankfurt am Main",
"description": "[{\"id\":\"-oun3WNsh7\",\"type\":\"paragraph\",\"data\":{\"text\":\"**🔫 ARIZONA TRAINING 2.0: ТО ЧТО ТЫ ИСКАЛ В СТИЛЕ ПО ДМИТЬСЯ!**\\n\\nПривет, дружище!\\nЗабудь про скучную классику. Здесь выживает тот, кто контролирует перестрелки. Arizona Training 2.0 - это полигон для настоящих мясников, где каждая секунда на счету.\"}},{\"id\":\"f14H3PNe_y\",\"type\":\"paragraph\",\"data\":{\"text\":\"**Телеграм канал** - t.me/arztraining\\n**Наш сайт: **https://arizona-training.ru\\n**Форум: **https://forum.arizona-training.ru\\n**Бот:** t.me/arztrainingbot\"}}]",
"game": 9000035,
"owner": 136050,
"boosts": 1,
"last_offline": 1776182517,
"score": 5,
"last_online": 1776274809,
"icon": null,
"name": "TRAINING 2.0",
"connect": "185.176.94.166:7777",
"request": "185.176.94.166:7777",
"map": "San Andreas",
"gamemode": "Arizona-rp Russian",
"version": "0.3.7-R3",
"numplayers": 3,
"maxplayers": 50,
"bots": 0,
"secured": null,
"private": false,
"country": "DE",
"status": true,
"votes": 30,
"points": 122,
"add_date": 1773150385,
"last_update": 1776274809,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 3,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4,
"language": "ru",
"parked": false,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": {
"username": "mentaletion",
"avatar": "02c1beec-79a4-4181-ad66-ad0a5fd1e10f.jpg",
"last_online": 1776183757
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11222794");
$data = json_decode($json, true);
var_dump($data);