API dla [PL] CIPSONKI
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 147981,
"world_seed": 156639559,
"world_size": 5000,
"steam_id": "90286582543324191",
"domain": null,
"id": 11501148,
"ip": "51.77.42.200",
"port": 24300,
"query": 24304,
"color": 0,
"city": "Warsaw",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780550064,
"last_online": 1780606906,
"icon": null,
"name": "[PL] CIPSONKI",
"connect": "51.77.42.200:24300",
"request": "51.77.42.200:24304",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779207168,
"last_update": 1780606906,
"banned": false,
"wipe": 1779616269,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7180,
"language": "pl",
"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/11501148");
$data = json_decode($json, true);
var_dump($data);