Rust
API pentru Rustic Nights
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11412793json
{
"response": {
"fps": 59,
"fps_avg": 59,
"entities_count": 72515,
"world_seed": 1336991078,
"world_size": 3500,
"steam_id": "90284800558692366",
"domain": null,
"id": 11412793,
"ip": "104.143.2.11",
"port": 28026,
"query": 28027,
"color": 0,
"city": "Toronto",
"description": "\nPLAY AT OWN RISK \r\nServer is in development \r\nRandom server restarts will happen \r\n3 hour days \r\n1.5 hour nights \r\n10x",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776486204,
"score": 0,
"last_online": 1776859222,
"icon": null,
"name": "Rustic Nights",
"connect": "104.143.2.11:28026",
"request": "104.143.2.11:28027",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 25,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774599017,
"last_update": 1776859222,
"banned": false,
"wipe": 1775157117,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5265,
"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/11412793");
$data = json_decode($json, true);
var_dump($data);