Half-Life 2: Deathmatch
[HU] egy jó öreg HL2DM fun szerver #01 के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
https://api.gamemonitoring.in/servers/10645904json
{
"response": {
"steam_id": "90284542335734799",
"domain": null,
"id": 10645904,
"ip": "37.221.209.24",
"port": 27060,
"query": 27060,
"color": 0,
"city": "Budapest",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1769966464,
"score": 0,
"last_online": 1776448857,
"icon": null,
"name": "[HU] egy jó öreg HL2DM fun szerver #01",
"connect": "37.221.209.24:27060",
"request": "37.221.209.24:27060",
"map": "dm_resistance",
"gamemode": "Half-Life 2 Deathmatch",
"version": "9540945",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "HU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1763718107,
"last_update": 1776448857,
"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": 151,
"language": "hu",
"parked": false,
"app": {
"id": 1,
"steam_id": 320,
"name": "Half-Life 2: Deathmatch",
"url": "half-life-2-deathmatch"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/10645904");
$data = json_decode($json, true);
var_dump($data);