Counter-Strike
API для Zombie Meat Grinder
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11489066json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11489066,
"ip": "91.211.118.77",
"port": 27046,
"query": 27046,
"color": 0,
"city": "Kyiv",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776154916,
"score": 0,
"last_online": 1776166213,
"icon": null,
"name": "Zombie Meat Grinder",
"connect": "91.211.118.77:27046",
"request": "91.211.118.77:27046",
"map": "zm_cross",
"gamemode": "CSFORCE.COM.UA",
"version": "1.1.2.7/Stdio",
"numplayers": 18,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "UA",
"status": true,
"votes": 0,
"points": 70,
"add_date": 1776038499,
"last_update": 1776166213,
"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": 2041,
"language": "uk",
"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.ru/servers/11489066");
$data = json_decode($json, true);
var_dump($data);