Rust
API pentru Alone and Afraid
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10534708json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 108506,
"world_seed": 0,
"world_size": 4250,
"steam_id": "90284790187003930",
"domain": null,
"id": 10534708,
"ip": "116.90.73.230",
"port": 28085,
"query": 28086,
"color": 0,
"city": "Adelaide",
"description": "Ready for a different kind of Rust experience, \r\nServer is 2X Solo\\Duo with fortnightly wipes incl blueprints. \r\n Featuring Bots at all monuments and crate drops. \r\nScrap is a bit harder to come by as there is no scrap in barrels/crates. \r\nReduced upkeep to help the more casual players Oh and the tech tree, what's that !!! find what u need",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776814999,
"score": 0,
"last_online": 1776832218,
"icon": null,
"name": "Alone and Afraid",
"connect": "116.90.73.230:28085",
"request": "116.90.73.230:28086",
"map": "Procedural Map",
"gamemode": "Hardcore",
"version": "2623",
"numplayers": 1,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1762518708,
"last_update": 1776832218,
"banned": false,
"wipe": 1776231991,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1327,
"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/10534708");
$data = json_decode($json, true);
var_dump($data);