Test Oblivion için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 2530108,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Moscow",
"description": "",
"game": 221100,
"owner": 90915,
"boosts": 1,
"last_offline": 1773147092,
"last_online": 1772265015,
"icon": null,
"name": "Test Oblivion",
"connect": null,
"request": null,
"map": "chernarusplus",
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1705512554,
"last_update": 1773147092,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 14902,
"language": "ru",
"parked": true,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "aleksandr_kuzenkov",
"avatar": "1638590d-8894-4008-a7bf-9372d9a2c76d.jpg"
},
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/2530108");
$data = json_decode($json, true);
var_dump($data);