API dla Archadia - Random Farm
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 70,
"fps_avg": 70,
"entities_count": 16443,
"world_seed": 1337,
"world_size": 1500,
"steam_id": "90286604903042059",
"domain": null,
"id": 11606855,
"ip": "174.138.188.170",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Teterboro",
"description": "Let me tell you the story when the level 600 school gyatt walked passed me, I was in class drinking my grimace rizz shake from ohio during my rizzonomics class when all of the sudden this crazy ohio bing chilling gyatt got sturdy, past my class. I was watching kai cenat hit the griddy on twitch. This is when I let my rizz take over and I became the rizzard of oz. I screamed, look at this bomboclat gyatt",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779915486,
"last_online": 1780607434,
"icon": null,
"name": "Archadia - Random Farm",
"connect": "174.138.188.170:28015",
"request": "174.138.188.170:28017",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 67,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779915486,
"last_update": 1780607434,
"banned": false,
"wipe": 1780598479,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5178,
"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/11606855");
$data = json_decode($json, true);
var_dump($data);