Rust
A Shockbyte x Discord Production Rust Server için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11305294json
{
"response": {
"fps": 105,
"fps_avg": 106,
"entities_count": 127034,
"world_seed": 2078404227,
"world_size": 4750,
"steam_id": 90285512624597010,
"domain": null,
"id": 11305294,
"ip": "51.38.155.248",
"port": 28251,
"query": 28252,
"color": 0,
"city": "Warsaw",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778601733,
"score": 0,
"last_online": 1778430060,
"icon": null,
"name": "A Shockbyte x Discord Production Rust Server",
"connect": "51.38.155.248:28251",
"request": "51.38.155.248:28252",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 75,
"bots": 0,
"secured": false,
"private": false,
"country": "PL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774592882,
"last_update": 1778601733,
"banned": false,
"wipe": 1778272408,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7549,
"language": "pl",
"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/11305294");
$data = json_decode($json, true);
var_dump($data);