API pentru Dead Nox
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286481378303002",
"domain": null,
"id": 11686902,
"ip": "93.88.203.70",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Moscow",
"description": "Надоело мирно собирать консервы, пока другие режут друг друга в чате?",
"game": 108600,
"owner": 179263,
"boosts": 1,
"last_offline": 1780320255,
"last_online": 1780326015,
"icon": null,
"name": "Dead Nox",
"connect": "93.88.203.70:16261",
"request": "93.88.203.70:16261",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.19",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 6,
"points": 96,
"add_date": 1780224708,
"last_update": 1780326015,
"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": 14,
"language": "ru",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": {
"username": "user5108",
"avatar": "7d0f2413-5d33-4739-9623-4a0a2407f602.jpg"
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11686902");
$data = json_decode($json, true);
var_dump($data);