API dla Test - Nest
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 15,
"fps_avg": 15,
"entities_count": 3679,
"world_seed": 1,
"world_size": 1000,
"steam_id": "90286526748743703",
"domain": null,
"id": 8267709,
"ip": "64.40.8.251",
"port": 28110,
"query": 28115,
"color": 0,
"city": "Dallas",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779490416,
"last_online": 1780608050,
"icon": null,
"name": "Test - Nest",
"connect": "64.40.8.251:28110",
"request": "64.40.8.251:28115",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 34,
"add_date": 1742497722,
"last_update": 1780608050,
"banned": false,
"wipe": 1778259989,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5844,
"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/8267709");
$data = json_decode($json, true);
var_dump($data);