API dla Test Server
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 40,
"fps_avg": 40,
"entities_count": 84913,
"world_seed": 1234,
"world_size": 4250,
"steam_id": "90286609446168584",
"domain": null,
"id": 11644688,
"ip": "88.198.7.190",
"port": 28115,
"query": 28117,
"color": 0,
"city": "Falkenstein",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780651401,
"last_online": 1780610580,
"icon": null,
"name": "Test Server",
"connect": "88.198.7.190:28115",
"request": "88.198.7.190:28117",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780177433,
"last_update": 1780651401,
"banned": false,
"wipe": 1780604811,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12035,
"language": "de",
"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/11644688");
$data = json_decode($json, true);
var_dump($data);