Rust
DuKs için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11435467json
{
"response": {
"fps": 40,
"fps_avg": 39,
"entities_count": 68460,
"world_seed": 10032024,
"world_size": 3500,
"steam_id": "90284500261194783",
"domain": null,
"id": 11435467,
"ip": "93.181.36.254",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Brome",
"description": "\n[GER]DuKs - !!Testserver!!\r\n\r\nUse at your own risk!\r\n-Server could restart at any time\r\n-and IP, settings and Map could also change!\r\n\r\n-- F1 Item-Menu is open for everyone to train your building skills \r\n\r\nVisit us on our discord (Duks-discord.de / discord.gg/npRA3s6) or on our homepage (www.duks-gaming.de).. \r\n\r\nFor help, support and general information, just contact us on the discord",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776308511,
"score": 0,
"last_online": 1776830424,
"icon": null,
"name": "DuKs",
"connect": "93.181.36.254:28015",
"request": "93.181.36.254:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774977190,
"last_update": 1776830424,
"banned": false,
"wipe": 1775153787,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5268,
"language": "de",
"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/11435467");
$data = json_decode($json, true);
var_dump($data);