API dla KovacRust.com - US | Solo/Duo | Vanilla Monthly
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286551881678871",
"domain": null,
"id": 11511579,
"ip": "45.45.238.132",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Chicago",
"description": "\n--- Welcome to KovacRust.com ---\r\n\r\nWipes: Every Force Wipe\r\nBP Wipes: Never\r\nWebsite: https://www.kovacrust.com\r\n\r\n--- RULES ---\r\n\r\n> No Rust Gamebans within 180 days\r\n> No Racism or Homophobia\r\n> Using third-party programs or modifications not approved by FP is not allowed.\r\n\r\nCOMPLETE SET OF RULES CAN BE FOUND ON OUR DISCORD: discord.gg/kovac",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780353847,
"last_online": 1780555236,
"icon": null,
"name": "KovacRust.com - US | Solo/Duo | Vanilla Monthly",
"connect": "45.45.238.132:28015",
"request": "45.45.238.132:28017",
"map": "Kovac Maps",
"gamemode": "Rust",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779353855,
"last_update": 1780555236,
"banned": false,
"wipe": 1779133763,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5137,
"language": "en",
"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/11511579");
$data = json_decode($json, true);
var_dump($data);