API dla Konura Rust | Main | 2X QUAD | Shared BPs | Wipe 22.08
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 9972247,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "\nOur server is not ready for players, wait for our first wipe on 15.08\r\n\r\nFirst wipe on Konura Rust | Be with us\r\nMax 4 player in a team | Fck Clans\r\n2x rates | Junk Removed\r\n2x Crafting/Recycling/Smell Speed\r\nShared Blueprints | Workbench in TC area\r\n24 hours boom-block | Allowed only Beancan Grenade\r\nVanilla without trashmods",
"game": 252490,
"owner": 130694,
"boosts": 1,
"last_offline": 1759763036,
"last_online": 1756978819,
"icon": null,
"name": "Konura Rust | Main | 2X QUAD | Shared BPs | Wipe 22.08",
"connect": null,
"request": null,
"map": "Custom Map",
"gamemode": "Vanilla",
"version": null,
"numplayers": 0,
"maxplayers": 400,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1754855404,
"last_update": 1759763036,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 13313,
"language": "ru",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "cleverain",
"avatar": "67db34a6-0191-4957-8c09-6258e90ccb23.jpg"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/9972247");
$data = json_decode($json, true);
var_dump($data);