Rust
API pentru Olykekafevi - EU Biweekly - Civilization
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11260252json
{
"response": {
"fps": 214,
"fps_avg": 204,
"entities_count": 58267,
"world_seed": 16190319,
"world_size": 3330,
"steam_id": "90285357359872019",
"domain": null,
"id": 11260252,
"ip": "157.85.95.91",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Frankfurt am Main",
"description": "Olykekafevi - EU Biweekly - Civilization\r\n--- Next wipe: April 2nd ---\r\nRecently wiped! Map size = 3330\r\nHosted by Olykekafevi for civlilization players and more",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775496726,
"score": 0,
"last_online": 1778533222,
"icon": null,
"name": "Olykekafevi - EU Biweekly - Civilization",
"connect": "157.85.95.91:28015",
"request": "157.85.95.91:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 69,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774555190,
"last_update": 1778533222,
"banned": false,
"wipe": 1775497158,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4438,
"language": "de",
"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/11260252");
$data = json_decode($json, true);
var_dump($data);