Rustropolis - No Decay için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"fps": 54,
"fps_avg": 53,
"entities_count": 126129,
"world_seed": 268378775,
"world_size": 4250,
"steam_id": "90286581576709127",
"domain": null,
"id": 10310556,
"ip": "64.40.9.139",
"port": 28039,
"query": 28036,
"color": 0,
"city": "London",
"description": "\nWelcome to Rustropolis - No Decay \r\n\r\n-UK based server \r\n-Active, friendly and knowledgable admin team \r\n-Biweekly map and Monthly BP wipes \r\n-4.25k Map size \r\n-Monthly server event with real cash prizes! \r\n\r\n-Integrated Discord bot showing server events, player chat and much more! \r\n\r\nNo rules in regards to gameplay other than prohibiting another player from progressing for the sake of it, this includes excessive door camping and repeat raiding. 48 hours must pass before raiding the same player to allow everyone to progress. Everyone deserves to have fun! Any issues will be dealt with on a case by case basis by the admin team, please see Discord for extensive rules list. \r\n\r\nServer Discord - https://discord.gg/tBqGt5YD5M",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780057425,
"last_online": 1780582843,
"icon": null,
"name": "Rustropolis - No Decay",
"connect": "64.40.9.139:28039",
"request": "64.40.9.139:28036",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 140,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1758288378,
"last_update": 1780582843,
"banned": false,
"wipe": 1779381874,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3544,
"language": "en",
"parked": false,
"app": {
"id": 252490,
"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/10310556");
$data = json_decode($json, true);
var_dump($data);