API für NitroX
JSON für Programme, Websites und mehr
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 6201021,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": null,
"description": "[{\"id\":\"xEnMaRFqdP\",\"type\":\"paragraph\",\"data\":{\"text\":\"Сервер для игры в прятки - маньяк с друзьями!\\nМного карт для бега или пряток от маньяка\\nесть скины \"}},{\"id\":\"8rqXcaPHiC\",\"type\":\"paragraph\",\"data\":{\"text\":\"Vip\"}},{\"id\":\"JZdHv1Yqf-\",\"type\":\"paragraph\",\"data\":{\"text\":\"/////////\\nBHOP\\n2 JAMP\"}},{\"id\":\"Ka2CAav3ic\",\"type\":\"paragraph\",\"data\":{\"text\":\"И не тока\"}},{\"id\":\"XFREXd8i-0\",\"type\":\"paragraph\",\"data\":{\"text\":\"/////////\"}}]",
"game": 730,
"owner": 86899,
"boosts": 1,
"last_offline": 1756334708,
"last_online": 1752267621,
"icon": null,
"name": "NitroX",
"connect": null,
"request": null,
"map": "de_dust2",
"gamemode": "Counter-Strike 2",
"version": null,
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1728402617,
"last_update": 1756334708,
"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": 14928,
"language": "ru",
"parked": true,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "mopsyarsky",
"avatar": "ca86781d-c170-4ed9-929f-da5bc7ae6b11.jpg"
},
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/6201021");
$data = json_decode($json, true);
var_dump($data);