Rust
API pentru Tommygun's Frag | US | BedWars | Aim Train | Scrim | Gun Game
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/443445json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 8411,
"world_seed": 1337,
"world_size": 6000,
"steam_id": "90285703356186648",
"domain": null,
"id": 443445,
"ip": "208.52.152.2",
"port": 28014,
"query": 28015,
"color": 0,
"city": "Dallas",
"description": "\nFrag Mod is a team-based PvP mode with progression in weapons, armour and vehicles.\r\n\r\nThree teams of 8 fight for control of a destructable city. Earn XP and $ for playing the objective, getting kills, killstreaks, bounties, vehicle kills, and more! Unlock weapons, armour, vehicles, and explosives to crush your enemies in glorious combat! Progression wipes every 4 rounds, or roughly every hour.\r\n\r\n\r\n-AimTrain\r\n-Duels\r\n-Skin Wagering\r\n-Combat Arenas",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778283184,
"score": null,
"last_online": 1778704220,
"icon": null,
"name": "Tommygun's Frag | US | BedWars | Aim Train | Scrim | Gun Game",
"connect": "208.52.152.2:28014",
"request": "208.52.152.2:28015",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 14,
"maxplayers": 275,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1630779661,
"last_update": 1778704220,
"banned": false,
"wipe": 1778674038,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2068,
"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/443445");
$data = json_decode($json, true);
var_dump($data);