API dla Astral Rust - EU Weekly | Vanilla
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 66,
"fps_avg": 75,
"entities_count": 67686,
"world_seed": 423095413,
"world_size": 3500,
"steam_id": 90286317843201040,
"domain": null,
"id": 11606564,
"ip": "83.150.218.131",
"port": 25260,
"query": 25261,
"color": 0,
"city": "Vélizy-Villacoublay",
"description": "\nPure Vanilla \r\nWeekly map wipes on Thursdays \r\nBP wipes on Force \r\nActive admins. \r\nDiscord link can be found on External Website",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780608209,
"last_online": 1780166425,
"icon": null,
"name": "Astral Rust - EU Weekly | Vanilla",
"connect": "83.150.218.131:25260",
"request": "83.150.218.131:25261",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 300,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779915475,
"last_update": 1780608209,
"banned": false,
"wipe": 1779386534,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11824,
"language": "fr",
"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/11606564");
$data = json_decode($json, true);
var_dump($data);