API pentru Rust Kingdom Permadeath PvE
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 215,
"fps_avg": 210,
"entities_count": 31437,
"world_seed": 0,
"world_size": 4500,
"steam_id": "90286604521411610",
"domain": null,
"id": 6125083,
"ip": "185.216.147.186",
"port": 28310,
"query": 28245,
"color": 0,
"city": "City of London",
"description": "\nDare to play on the Permadeath server?\r\n\r\nFeatures:\r\n- Scarce resources. Increased bear population.\r\n- Only one life - if you die, it's game over.\r\n- No raiding. Automatic bans for any PvP kills.\r\n\r\nMap Details: size 6000, weekly map wipe.\r\nFor the complete configuration, visit rustkingdom.uk.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780597469,
"last_online": 1780616425,
"icon": null,
"name": "Rust Kingdom Permadeath PvE",
"connect": "185.216.147.186:28310",
"request": "185.216.147.186:28245",
"map": "Procedural Map",
"gamemode": "Hardcore",
"version": "2627",
"numplayers": 2,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 64,
"add_date": 1727883217,
"last_update": 1780616425,
"banned": false,
"wipe": 1780597521,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1103,
"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/6125083");
$data = json_decode($json, true);
var_dump($data);