API dla debt hunt
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 736138,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "",
"game": 9000035,
"owner": 30786,
"boosts": 1,
"last_offline": 1750457066,
"last_online": 1745649232,
"icon": null,
"name": "debt hunt",
"connect": null,
"request": null,
"map": "San Andreas",
"gamemode": "Debt Hunt v0.2",
"version": null,
"numplayers": 0,
"maxplayers": 500,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1673872574,
"last_update": 1750457066,
"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": 1324,
"language": "ru",
"parked": true,
"app": {
"id": 168,
"steam_id": 9000035,
"name": "Samp",
"url": "samp"
},
"server_owner": {
"username": "kokunusgamerpranktus",
"avatar": "763ad3ae-a898-40ca-a39c-2ae3fe8d6767.jpg"
},
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/736138");
$data = json_decode($json, true);
var_dump($data);