Half-Life
[hlserv] HLKreedz için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/3981908json
{
"response": {
"steam_id": null,
"domain": null,
"id": 3981908,
"ip": "109.248.201.100",
"port": 27077,
"query": 27077,
"color": 0,
"city": "Moscow",
"description": "",
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1775822526,
"score": 0,
"last_online": 1777536681,
"icon": null,
"name": "[hlserv] HLKreedz",
"connect": "109.248.201.100:27077",
"request": "109.248.201.100:27077",
"map": "kzlu_oldtextres",
"gamemode": "HL KreedZ Beta",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1714063708,
"last_update": 1777536681,
"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": 138,
"language": "ru",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/3981908");
$data = json_decode($json, true);
var_dump($data);