Rust
API pentru [EU] Monkey Bear Island
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10978580json
{
"response": {
"fps": 76,
"fps_avg": 77,
"entities_count": 86816,
"world_seed": 1252181378,
"world_size": 4000,
"steam_id": "90285441029539866",
"domain": null,
"id": 10978580,
"ip": "84.196.178.178",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Mechelen",
"description": "![[EU] Monkey Bear Island](https://bartjolling.github.io//assets/img/monkey-bear-island.png)\nPrivate Rust server by Monkey Bear and Conan Of Loxley\r\nLow upkeep, SortButton 2.5\r\nExpect PVP near monuments, bases and airdrops\r\nNo trolling, grieving, hacking or racism. These offenses will get you banned.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778122983,
"score": 0,
"last_online": 1778185821,
"icon": null,
"name": "[EU] Monkey Bear Island",
"connect": "84.196.178.178:28015",
"request": "84.196.178.178:28017",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 0,
"maxplayers": 5,
"bots": 0,
"secured": true,
"private": false,
"country": "BE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1769900982,
"last_update": 1778185821,
"banned": false,
"wipe": 1775877562,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3888,
"language": "nl",
"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/10978580");
$data = json_decode($json, true);
var_dump($data);