API dla RustResort.com - EU 2X Medium | Vanilla +
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 80,
"fps_avg": 79,
"entities_count": 118122,
"world_seed": 1760404484,
"world_size": 4250,
"steam_id": "90287085970922516",
"domain": null,
"id": 11781659,
"ip": "80.242.59.22",
"port": 35015,
"query": 35016,
"project_id": null,
"color": 0,
"city": "Nizhnevartovsk",
"description": "\nWIPE Map - weekly on Thursdays 3PM UK ( BPs - twice a month )\r\n\r\nSemi-classical 2X | No limit\r\nResource extraction 2X | Recycle in fishing village and ranch\r\n\r\n STORE - RustResort.com\r\n SUPPORT - discord.gg/rustresort\r\n\r\nRules:\r\n - no racism / politics / excessive toxicity\r\n - no hacking / scripting / cheating / macro\r\n - no intentional bug abuse\r\n - no EAC / FP banned alts\r\n - no sell anything for real money, skins and others.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1781541842,
"last_online": 1781595625,
"icon": null,
"name": "RustResort.com - EU 2X Medium | Vanilla +",
"connect": "80.242.59.22:35015",
"request": "80.242.59.22:35016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1781376780,
"last_update": 1781595625,
"banned": false,
"wipe": 1781577843,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6091,
"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/11781659");
$data = json_decode($json, true);
var_dump($data);