API dla BasicRust - Trio | Monthly | Beginners friendly 04/06 04.06
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 45,
"fps_avg": 45,
"entities_count": 69799,
"world_seed": 1655569109,
"world_size": 3650,
"steam_id": "90286604239801344",
"domain": null,
"id": 11501230,
"ip": "141.94.97.17",
"port": 28027,
"query": 28028,
"color": 0,
"city": "Strasbourg",
"description": "\nPowered by PterodactylBasicRust true vanilla experience | Discord https://discord.gg/nDc622yxUz\r\nMap size 3650\r\n\r\nOur rules:\r\n - Max team size: 3\r\n - No racism, sexism or any other form of discrimination\r\n - No cheating or exploiting\r\n\r\nWipe Schedule:\r\n- Force wipe",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779207169,
"last_online": 1780597230,
"icon": null,
"name": "BasicRust - Trio | Monthly | Beginners friendly 04/06 04.06",
"connect": "141.94.97.17:28027",
"request": "141.94.97.17:28028",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779207169,
"last_update": 1780597230,
"banned": false,
"wipe": 1780596696,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3449,
"language": "fr",
"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/11501230");
$data = json_decode($json, true);
var_dump($data);