API dla Nontoxic - Solo/Duo/Trio Vanilla 2x - NO BP Wipe
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 93,
"fps_avg": 92,
"entities_count": 102936,
"world_seed": 1389287808,
"world_size": 4250,
"steam_id": "90286618139255825",
"domain": null,
"id": 10979226,
"ip": "144.48.104.155",
"port": 28025,
"query": 28027,
"color": 0,
"city": "Chicago",
"description": "\nBi-weekly map wipe every other Thurs (Starting first Thurs of each month). Noob friendly. BP's never wipe\r\n\r\nMax 3 ppl on TCs/Roaming/Fighting. Keep Trades Brief\r\n\r\nBehave in a mature manner. Trolls/toxic players are not welcome. Noob Friendlyish. Active Adult Admins.\r\n\r\nServer rules on Discord. https://discord.gg/MFxspAP",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780627454,
"last_online": 1780651232,
"icon": null,
"name": "Nontoxic - Solo/Duo/Trio Vanilla 2x - NO BP Wipe",
"connect": "144.48.104.155:28025",
"request": "144.48.104.155:28027",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 150,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1769901080,
"last_update": 1780651232,
"banned": false,
"wipe": 1780627465,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4016,
"language": "en",
"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/10979226");
$data = json_decode($json, true);
var_dump($data);