DayZ
API pentru [RU] DARK CITY: Vanilla+ | PvP | 3PP | Sakhal
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11182169json
{
"response": {
"steam_id": "90285639338534926",
"domain": null,
"id": 11182169,
"ip": "176.197.182.249",
"port": 2464,
"query": null,
"color": 0,
"city": "Novokuznetsk",
"description": null,
"game": 221100,
"owner": 123886,
"boosts": 1,
"last_offline": 1778478782,
"score": 0,
"last_online": 1778550620,
"icon": null,
"name": "[RU] DARK CITY: Vanilla+ | PvP | 3PP | Sakhal",
"connect": "176.197.182.249:2464",
"request": null,
"map": "sakhal",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772567890,
"last_update": 1778550620,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": true,
"position_game": 517,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "Reestr",
"avatar": "70a6bb27-eb2a-44ed-bee9-0f5e80675a34.jpg",
"last_online": 1778160459
},
"mods": [],
"disabled_modules": [
"chat"
]
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11182169");
$data = json_decode($json, true);
var_dump($data);