Rust Server - Pinehosting.com için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 96403,
"world_seed": 579399755,
"world_size": 4000,
"steam_id": "90286333512204304",
"domain": null,
"id": 3240595,
"ip": "156.236.84.27",
"port": 28070,
"query": 28071,
"color": 0,
"city": "Dallas",
"description": "\nPVP Everywhere\r\n No Offline Raiding - If you want to Raid, there is raidable bases or give the base owners a chance to defend. After Raid no taking over or griefing Bases\r\n Stone, Wood and Metal are 2x.\r\n Airfield Event and Mini's spawn on roads.\r\n Low Upkeep\r\nSkinbox and Sign Artist",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780137764,
"last_online": 1780101021,
"icon": null,
"name": "Rust Server - Pinehosting.com",
"connect": "156.236.84.27:28070",
"request": "156.236.84.27:28071",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1709657712,
"last_update": 1780137764,
"banned": false,
"wipe": 1779997499,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9430,
"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/3240595");
$data = json_decode($json, true);
var_dump($data);