Half-Life 2: Deathmatch
HalfLife2DM Server için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/6294036json
{
"response": {
"steam_id": "90284110161206272",
"domain": null,
"id": 6294036,
"ip": "98.96.163.210",
"port": 27012,
"query": 27012,
"color": 0,
"city": "Maidstone",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1775685124,
"score": 0,
"last_online": 1775974223,
"icon": null,
"name": "HalfLife2DM Server",
"connect": "98.96.163.210:27012",
"request": "98.96.163.210:27012",
"map": "dm_lockdown",
"gamemode": "Half-Life 2 Deathmatch",
"version": "9540945",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 2,
"points": 32,
"add_date": 1729565673,
"last_update": 1775974223,
"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": 18,
"language": "en",
"parked": false,
"app": {
"id": 1,
"steam_id": 320,
"name": "Half-Life 2: Deathmatch",
"url": "half-life-2-deathmatch"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/6294036");
$data = json_decode($json, true);
var_dump($data);