Rust
Crafters için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/1397250json
{
"response": {
"fps": 52,
"fps_avg": 53,
"entities_count": 126878,
"world_seed": 1884332,
"world_size": 4500,
"steam_id": "90284817699960832",
"domain": null,
"id": 1397250,
"ip": "156.38.153.242",
"port": 10070,
"query": 10080,
"color": 0,
"city": "Pretoria",
"description": "\nWelcome to Crafters \r\nThis is a Friendly PVE - Slightly modded Server\r\nTired of Raiders then join Crafters - Still not a walk in the Park !! \r\nJoin our Discord: @ https://discord.gg/BvwhmQ8h8D\r\n\r\n# You've tried the rest now try .*..*..*. # \r\nBuild and Explore in Peace\r\nCool Maps - with nice Mods\r\nBe aware you are not alone - Wildlife is awaiting\r\nPrepared to Work for stuff \r\nForce Wipe is on 1st Thursday of the month \r\nBe respectful to others and have Fun\r\nHope to see you in game soon and enjoy \r\nNB! - Read the Rules !!!\r\n\r\nThank You\r\nCraters Team",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776870203,
"score": null,
"last_online": 1776877225,
"icon": null,
"name": "Crafters",
"connect": "156.38.153.242:10070",
"request": "156.38.153.242:10080",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 60,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1696081321,
"last_update": 1776877225,
"banned": false,
"wipe": 1775154834,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3100,
"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/1397250");
$data = json_decode($json, true);
var_dump($data);