A Shockbyte Rust Server için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"fps": 212,
"fps_avg": 213,
"entities_count": 32704,
"world_seed": 904368594,
"world_size": 2500,
"steam_id": "90286009463775235",
"domain": null,
"id": 11501566,
"ip": "157.85.87.65",
"port": 28288,
"query": 28289,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780595605,
"last_online": 1780430549,
"icon": null,
"name": "A Shockbyte Rust Server",
"connect": "157.85.87.65:28288",
"request": "157.85.87.65:28289",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779207175,
"last_update": 1780595605,
"banned": false,
"wipe": 1778863905,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11151,
"language": "nl",
"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/11501566");
$data = json_decode($json, true);
var_dump($data);