Server için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10973329,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": "Moscow",
"description": null,
"game": 221100,
"owner": 163667,
"boosts": 1,
"last_offline": 1776232877,
"last_online": 1775353872,
"icon": null,
"name": "Server",
"connect": null,
"request": null,
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 60,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1769549633,
"last_update": 1776232877,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 13593,
"language": "ru",
"parked": true,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "evgenii_kuzin",
"avatar": "1eecbca9-5c40-461f-8db8-9b46a54bd5fd.jpg"
},
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/10973329");
$data = json_decode($json, true);
var_dump($data);