DEVCS.UZ — Public için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11696044,
"ip": "198.163.204.190",
"port": 27020,
"query": 27020,
"color": 0,
"city": "Tashkent",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1780226429,
"last_online": 1780442440,
"icon": null,
"name": "DEVCS.UZ — Public",
"connect": "198.163.204.190:27020",
"request": "198.163.204.190:27020",
"map": "de_cbble_2x2",
"gamemode": "Zaxodi bratjan",
"version": "1.1.2.7/Stdio",
"numplayers": 3,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "UZ",
"status": true,
"votes": 0,
"points": 38,
"add_date": 1780226429,
"last_update": 1780442440,
"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": 4121,
"language": "uz",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11696044");
$data = json_decode($json, true);
var_dump($data);