Counter-Strike
API для ~CepBa4ek[rus]~Pablic(16+)~
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10682855json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10682855,
"ip": "45.15.140.77",
"port": 27312,
"query": 27312,
"color": 0,
"city": "Wellington",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1775638361,
"score": 0,
"last_online": 1776267026,
"icon": null,
"name": "~CepBa4ek[rus]~Pablic(16+)~",
"connect": "45.15.140.77:27312",
"request": "45.15.140.77:27312",
"map": "de_warfare2",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 22,
"maxplayers": 23,
"bots": 1,
"secured": true,
"private": false,
"country": "NZ",
"status": true,
"votes": 0,
"points": 89,
"add_date": 1764588242,
"last_update": 1776267026,
"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": 1820,
"language": "en",
"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/10682855");
$data = json_decode($json, true);
var_dump($data);