Rust
Drunken2k by G-Portal.com için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11435359json
{
"response": {
"fps": 52,
"fps_avg": 51,
"entities_count": 94731,
"world_seed": 456453637,
"world_size": 4000,
"steam_id": "90284669560844297",
"domain": null,
"id": 11435359,
"ip": "75.119.155.200",
"port": 28115,
"query": 28116,
"color": 0,
"city": "Lauterbourg",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776627198,
"score": 0,
"last_online": 1776825119,
"icon": null,
"name": "Drunken2k by G-Portal.com",
"connect": "75.119.155.200:28115",
"request": "75.119.155.200:28116",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774977188,
"last_update": 1776825119,
"banned": false,
"wipe": 1775987837,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7495,
"language": "fr",
"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/11435359");
$data = json_decode($json, true);
var_dump($data);