Counter-Strike
► AK-74 PUBLIC CS 1.6 ™ için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/9768590json
{
"response": {
"steam_id": null,
"domain": null,
"id": 9768590,
"ip": "45.136.204.217",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Moscow",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1777524801,
"score": 0,
"last_online": 1778580024,
"icon": null,
"name": "► AK-74 PUBLIC CS 1.6 ™",
"connect": "45.136.204.217:27015",
"request": "45.136.204.217:27015",
"map": "de_dust2_2x2",
"gamemode": "CS-AK74.RU",
"version": "1.1.2.7/Stdio",
"numplayers": 3,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 45,
"add_date": 1752483992,
"last_update": 1778580024,
"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": 2647,
"language": "ru",
"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/9768590");
$data = json_decode($json, true);
var_dump($data);