API pentru [EU] No rules rust original
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 90,
"fps_avg": 93,
"entities_count": 204138,
"world_seed": 1993977750,
"world_size": 6000,
"steam_id": "90286584566520833",
"domain": null,
"id": 6125240,
"ip": "95.129.56.106",
"port": 36000,
"query": 28017,
"color": 0,
"city": "Pushkino",
"description": "[{\"id\":\"re4u137fg\",\"type\":\"image\",\"data\":{\"caption\":\"WATCH RUST | WIPE 24.10 |\",\"withBorder\":false,\"withBackground\":false,\"stretched\":true,\"file\":{\"url\":\"https://www.dropbox.com/scl/fi/lbxji7vzfvo09w0csortn/700580_20210407133221_1-Medium.png?rlkey=7qe8m76p59xiu0b8fwzy5u9r2&st=0dxtswze&dl=1\"}}},{\"id\":\"zes9yizrd\",\"type\":\"paragraph\",\"data\":{\"text\":\"Сервер для начинающих игроков,Увеличенные стаки на ресурсы,\\n\\nУменшино содержание домов, Ивенты, Следующий вайп 31.10\\n\\n\\n\\nA server for novice players, Increased resource stacks,\\n\\nUmenshino the content of buildings, Events, The next vape 31.10\"}}]",
"game": 252490,
"owner": 88790,
"boosts": 1,
"last_offline": 1780470864,
"last_online": 1780576221,
"icon": null,
"name": "[EU] No rules rust original",
"connect": "95.129.56.106:36000",
"request": "95.129.56.106:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 500,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1727883318,
"last_update": 1780576221,
"banned": false,
"wipe": 1778181378,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 255,
"language": "ru",
"parked": false,
"app": {
"id": 252490,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "watchmaker360",
"avatar": "2808b0c5-101d-4488-97f4-f046afc8fc85.jpg"
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/6125240");
$data = json_decode($json, true);
var_dump($data);