Rust
[ZA] Salty Phoenix Rising için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/10922569json
{
"response": {
"fps": 108,
"fps_avg": 107,
"entities_count": 162743,
"world_seed": 1234,
"world_size": 5000,
"steam_id": "90284720385821718",
"domain": null,
"id": 10922569,
"ip": "102.39.238.40",
"port": 10500,
"query": 10501,
"color": 0,
"city": "Port Elizabeth",
"description": "![[ZA] Salty Phoenix Rising](https://i.imgur.com/zkZHjso.jpge8173258e12.png)\nItems repair to full durability\r\nServerQuests\r\nUpgradeable Workbenches\r\nVehicle Decay Protection\r\nWipe Timer\r\nNPC's Will raid your base!(Based on number of Scientists Killed)\r\nRadiable NPC Bases(Careful! They Revenge Raid!)\r\nWeekdays PVE Weekends PVP\r\nMonuments are 24/7 PVP\r\nConvoys travel along the main roads",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776882751,
"score": 0,
"last_online": 1776745823,
"icon": null,
"name": "[ZA] Salty Phoenix Rising",
"connect": "102.39.238.40:10500",
"request": "102.39.238.40:10501",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 70,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1768476978,
"last_update": 1776882751,
"banned": false,
"wipe": 1775152828,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 8509,
"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/10922569");
$data = json_decode($json, true);
var_dump($data);