API pentru PulseRUST | 2.5x | Beginner Friendly | SOLO/DUO/TRIO/QUAD
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 62613,
"world_seed": 1337,
"world_size": 3000,
"steam_id": "90286545711175689",
"domain": null,
"id": 11305362,
"ip": "194.69.160.95",
"port": 28039,
"query": 28041,
"color": 0,
"city": "City of London",
"description": "\nWelcome to PulseRUST\r\n50% Upkeep\r\nCustom Maps\r\nCustom LootTables\r\nCustom OUTPOST\r\n\r\nWipe: Every Friday at 19:00/7PM London Time (BST)\r\n\r\nServer Rules\r\nNo hacking, cheating or exploiting\r\nNo griefing\r\nNo racism, hate speech or harassment\r\nNo advertising\r\nNo teaming outside your team limit (S/D/T/Q)\r\nNo impersonating admins or staff\r\nAdmins have the final say\r\n\r\nHave fun & good luck!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779782007,
"last_online": 1780552232,
"icon": null,
"name": "PulseRUST | 2.5x | Beginner Friendly | SOLO/DUO/TRIO/QUAD",
"connect": "194.69.160.95:28039",
"request": "194.69.160.95:28041",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 250,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774592884,
"last_update": 1780552232,
"banned": false,
"wipe": 1778342179,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4399,
"language": "en",
"parked": false,
"app": {
"id": 12,
"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/11305362");
$data = json_decode($json, true);
var_dump($data);