API dla RUST - PAIN | X2 | NO LIMIT
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 113,
"fps_avg": 113,
"entities_count": 135633,
"world_seed": 974721971,
"world_size": 4500,
"steam_id": "90286112098214921",
"domain": null,
"id": 7468449,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Minsk",
"description": null,
"game": 252490,
"owner": 105386,
"boosts": 1,
"last_offline": 1780466007,
"last_online": 1779575422,
"icon": null,
"name": "RUST - PAIN | X2 | NO LIMIT",
"connect": null,
"request": null,
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "BY",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1739234818,
"last_update": 1780466007,
"banned": false,
"wipe": 1778177786,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 13262,
"language": "be",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "Alex_600",
"avatar": "3179925b-19bb-4e64-9987-34e528741c68.jpg"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/7468449");
$data = json_decode($json, true);
var_dump($data);