API dla BasicRust - Solo/Duo | Weekly | Mondays | 08/06 08.06
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 45,
"fps_avg": 45,
"entities_count": 76141,
"world_seed": 1531248666,
"world_size": 3650,
"steam_id": 90286756894592000,
"domain": null,
"id": 10978625,
"ip": "141.94.97.17",
"port": 28018,
"query": 28019,
"project_id": null,
"color": 0,
"city": "Strasbourg",
"description": "\nBasicRust true vanilla experience | Discord https://discord.gg/nDc622yxUz\r\nMap size 3650\r\n\r\nOur rules:\r\n - Max team size: 2\r\n - No racism, sexism or any other form of discrimination\r\n - No cheating or exploiting\r\n\r\nWipe Schedule:\r\n- Wipes every Monday at 17:00 CET\r\n- Last Wipe: 08.06 17:00 Type: Full Wipe\r\n- Next Wipe: 15.06 17:00 (in 7 days) Type: Full Wipe",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780931062,
"last_online": 1780938039,
"icon": null,
"name": "BasicRust - Solo/Duo | Weekly | Mondays | 08/06 08.06",
"connect": "141.94.97.17:28018",
"request": "141.94.97.17:28019",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 2,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1769900987,
"last_update": 1780938039,
"banned": false,
"wipe": 1780931269,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3225,
"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/10978625");
$data = json_decode($json, true);
var_dump($data);