Rust
API pentru [US] DuckHunt's Survivor Haven |PVE|SKILLS|QUESTS|5X|
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/8198299json
{
"response": {
"fps": 172,
"fps_avg": 176,
"entities_count": 58722,
"world_seed": 1088510336,
"world_size": 3700,
"steam_id": "90285029189462026",
"domain": null,
"id": 8198299,
"ip": "162.245.189.10",
"port": 28080,
"query": 28015,
"color": 0,
"city": "Secaucus",
"description": "![[US] DuckHunt's Survivor Haven |PVE|SKILLS|QUESTS|5X|](https://www.dropbox.com/scl/fi/k92rp7caydu58ahxfay0b/ServerBanner.png?rlkey=l7lwfhqsu8ml7bs87tgup4n8r&st=jhx44mnu&dl=1)\nPVE with PVP ZONES... 5X Gather New and Seasoned player friendly. We have plugins like Raidable Bases, Boss Monster, Vehicle License, and others... Be chill and most importantly Have Fun!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777284752,
"score": 0,
"last_online": 1777711823,
"icon": null,
"name": "[US] DuckHunt's Survivor Haven |PVE|SKILLS|QUESTS|5X|",
"connect": "162.245.189.10:28080",
"request": "162.245.189.10:28015",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1742388545,
"last_update": 1777711823,
"banned": false,
"wipe": 1776999609,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3275,
"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/8198299");
$data = json_decode($json, true);
var_dump($data);