Counter-Strike
[ZM] Сожри меня полностью #1 Тех.Работы 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/6536json
{
"response": {
"steam_id": 0,
"domain": null,
"id": 6536,
"ip": "46.174.48.49",
"port": 27226,
"query": 27226,
"color": 0,
"city": "Moscow",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776175320,
"score": null,
"last_online": 1776207656,
"icon": null,
"name": "[ZM] Сожри меня полностью #1 Тех.Работы",
"connect": "46.174.48.49:27226",
"request": "46.174.48.49:27226",
"map": "zm_3rooms",
"gamemode": "[vk.com/Kyber_Arena]",
"version": "1.6.3.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 20,
"secured": false,
"private": true,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1501541236,
"last_update": 1776207656,
"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": 4499,
"language": "ru",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/6536");
$data = json_decode($json, true);
var_dump($data);