API dla 123
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 127,
"fps_avg": 130,
"entities_count": 46257,
"world_seed": 776438079,
"world_size": 3000,
"steam_id": "90286459366081566",
"domain": null,
"id": 11511193,
"ip": "45.136.205.20",
"port": 20510,
"query": 20511,
"color": 0,
"city": "Moscow",
"description": "\nLOVARUST MAX3 | X2\r\n\r\n• Рейты добычи ресурсов и компонентов х2\r\n• Ускоренная плавка \r\n• Мгновенный крафт \r\n• Еженедельный вайп\r\n• Сбалансированные киты\r\n• Телепортация к игрокам и домой\r\n• Система друзей\r\n• Уникальные ивенты\r\n• Много интересных и полезных плагинов\r\n\r\n Наши соц. сети:\r\n\r\n Discord: https://discord.gg/ZNVGbS2\r\n VK: https://vk.com/lova.rust",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780589004,
"last_online": 1780490429,
"icon": null,
"name": "123",
"connect": "45.136.205.20:20510",
"request": "45.136.205.20:20511",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779353839,
"last_update": 1780589004,
"banned": false,
"wipe": 1780078570,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11726,
"language": "ru",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11511193");
$data = json_decode($json, true);
var_dump($data);