Counter-Strike
KZ-Rush.ru #7 Classic 1.6 Server için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/148372json
{
"response": {
"steam_id": null,
"domain": null,
"id": 148372,
"ip": "194.67.215.55",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Moscow",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1768642160,
"score": null,
"last_online": 1776202850,
"icon": null,
"name": "KZ-Rush.ru #7 Classic 1.6 Server",
"connect": "194.67.215.55:27016",
"request": "194.67.215.55:27016",
"map": "aim_sk_usp_deagle",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1552905156,
"last_update": 1776202850,
"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": 4882,
"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/148372");
$data = json_decode($json, true);
var_dump($data);