DayZ
için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/377845json
{
"response": {
"steam_id": null,
"domain": null,
"id": 377845,
"ip": "185.189.255.42",
"port": 2302,
"query": 2305,
"color": 0,
"city": "Moscow",
"description": "",
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1776279671,
"score": 2,
"last_online": 1776199822,
"icon": null,
"name": null,
"connect": null,
"request": "185.189.255.42:2305",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 90,
"bots": 0,
"secured": null,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1597712002,
"last_update": 1776279671,
"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": 4170,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/377845");
$data = json_decode($json, true);
var_dump($data);