Rust
Battlefield x100000 Server için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/10523137json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10523137,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": null,
"game": 252490,
"owner": 144014,
"boosts": 1,
"last_offline": 1764395459,
"score": 0,
"last_online": 1763523014,
"icon": null,
"name": "Battlefield x100000 Server",
"connect": null,
"request": null,
"map": "Procedural Map",
"gamemode": "Survival",
"version": null,
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": false,
"private": false,
"country": "LV",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1762292656,
"last_update": 1764395459,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7581,
"language": "lv",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "zekakaz",
"avatar": "356367e7-97bc-411e-b294-a9786a6a4835.jpg",
"last_online": 1767129814
},
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/10523137");
$data = json_decode($json, true);
var_dump($data);