API pentru GameHut ^3CSDM ^5[Only Dust 2] | ^2vpsgame.hu
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286170967714840",
"domain": null,
"id": 9985393,
"ip": "95.138.193.64",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Sopron",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1780470423,
"last_online": 1780572117,
"icon": null,
"name": "GameHut ^3CSDM ^5[Only Dust 2] | ^2vpsgame.hu",
"connect": "95.138.193.64:27015",
"request": "95.138.193.64:27015",
"map": "de_dust2",
"gamemode": "Counter-Strike",
"version": "1.1.2.6/Stdio",
"numplayers": 0,
"maxplayers": 16,
"bots": 6,
"secured": true,
"private": false,
"country": "HU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1754905269,
"last_update": 1780572117,
"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": 8587,
"language": "hu",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/9985393");
$data = json_decode($json, true);
var_dump($data);