Rust
için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11435354json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11435354,
"ip": "46.127.162.194",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Schwarzenburg",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776228673,
"score": 0,
"last_online": 1775860876,
"icon": null,
"name": null,
"connect": null,
"request": "46.127.162.194:28016",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": null,
"private": false,
"country": "CH",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774977187,
"last_update": 1776228673,
"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": 10187,
"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/11435354");
$data = json_decode($json, true);
var_dump($data);