API pentru Rust Warlords
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 63952,
"world_seed": 1337,
"world_size": 3200,
"steam_id": "90286566753411096",
"domain": null,
"id": 8149779,
"ip": "89.28.237.30",
"port": 28075,
"query": 28076,
"color": 0,
"city": "Dallas",
"description": "\nWelcome to Rust Warlords \r\nwe are full of events and plugins \r\n\r\n2x's sulfur 3x's stone metal wood\r\nRp- Pve- Pvp-areas \r\ncooking skill tree - \r\nSkill Tree Items\r\nairfield event - armored train - convoy event - \r\nglass bridge event - Mining Outpost Event - \r\nSupermarket Event - \r\nBradley Drops - Heli Signals\r\n\"\"pleas read \"\"\"\r\nno racist shit \r\nno Griffing none no ok \r\nno building to close will be destroyed \r\nno taking other peoples pve raid",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780470420,
"last_online": 1780596030,
"icon": null,
"name": "Rust Warlords",
"connect": "89.28.237.30:28075",
"request": "89.28.237.30:28076",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1741956328,
"last_update": 1780596030,
"banned": false,
"wipe": 1780285421,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2545,
"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/8149779");
$data = json_decode($json, true);
var_dump($data);