API dla A BisectHosting Server - 749216a1
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 228,
"fps_avg": 228,
"entities_count": 46184,
"world_seed": 1,
"world_size": 3000,
"steam_id": "90285596116107295",
"domain": null,
"id": 11501703,
"ip": "199.115.73.137",
"port": 9145,
"query": 9148,
"color": 0,
"city": "The Hague",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780559616,
"last_online": 1779880272,
"icon": null,
"name": "A BisectHosting Server - 749216a1",
"connect": "199.115.73.137:9145",
"request": "199.115.73.137:9148",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779207178,
"last_update": 1780559616,
"banned": false,
"wipe": 1778441938,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11339,
"language": "nl",
"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/11501703");
$data = json_decode($json, true);
var_dump($data);