Hazmat Rust Solo/Duo/Trio için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 102887,
"world_seed": 2032380776,
"world_size": 4250,
"steam_id": 90286604416820240,
"domain": null,
"id": 11305589,
"ip": "66.51.96.57",
"port": 28040,
"query": 28041,
"color": 0,
"city": "Ashburn",
"description": "\nNew players welcome \r\n Solo/Duo/Trio Only! \r\n Server restarts daily @4am EST. \r\n Please join our discord for rules, and server related updates. \r\n https://discord.gg/g39EQwgJTS \r\n In the event that the server needs to move/migrate, IP information will be updated on discord.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596862,
"last_online": 1780639233,
"icon": null,
"name": "Hazmat Rust Solo/Duo/Trio",
"connect": "66.51.96.57:28040",
"request": "66.51.96.57:28041",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774592892,
"last_update": 1780639233,
"banned": false,
"wipe": 1780596961,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4261,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11305589");
$data = json_decode($json, true);
var_dump($data);