Half-Life 2: Deathmatch
<<{foo} bar's - High Kill/Low Grav Deathmatch>> için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/10752699json
{
"response": {
"steam_id": "85568392935794074",
"domain": null,
"id": 10752699,
"ip": "72.11.147.180",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Toronto",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1774975929,
"score": 0,
"last_online": 1776447143,
"icon": null,
"name": "<<{foo} bar's - High Kill/Low Grav Deathmatch>>",
"connect": "72.11.147.180:27015",
"request": "72.11.147.180:27015",
"map": "dm_watersystem",
"gamemode": "Half-Life 2 Deathmatch",
"version": "9540945",
"numplayers": 0,
"maxplayers": 16,
"bots": 2,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766253896,
"last_update": 1776447143,
"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": 157,
"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/10752699");
$data = json_decode($json, true);
var_dump($data);