API pentru Rusty Skulls
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286376446659598",
"domain": null,
"id": 3779794,
"ip": "147.135.31.203",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Oakton",
"description": "Rusty Skulls is a Rust server for kids that can't play Rust good and wanna learn to do other stuff good too. \r\n\r\nWipes\r\n Map: Monthly with Facepunch updates.\r\n BPs: Only if Facepunch resets them.\r\n\r\nRules\r\n - No racism, bigotry, or toxic players.\r\n - No hacking, scripting, or exploiting bugs.\r\n - No advertising of any kind.\r\n - No evading bans or banned alts.\r\n - Respect all players.\r\n\r\nAn East Coast, USA Rust server running some plugins to help administer the server mostly. \r\n\r\nDiscord, server news, full server rules, and more available on our website, https://rustyskulls.com.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779134573,
"last_online": 1780582238,
"icon": null,
"name": "Rusty Skulls",
"connect": "147.135.31.203:28015",
"request": "147.135.31.203:28017",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1712830506,
"last_update": 1780582238,
"banned": false,
"wipe": 1778177137,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2750,
"language": "en",
"parked": false,
"app": {
"id": 252490,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/3779794");
$data = json_decode($json, true);
var_dump($data);