Counter-Strike: Source
***•ОПАСНЫЙ КВАРТАЛ•*** [PUBLIC] 18+ için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/619395json
{
"response": {
"steam_id": "90284341014406175",
"domain": null,
"id": 619395,
"ip": "194.93.2.218",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Moscow",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1775553129,
"score": 1,
"last_online": 1776207617,
"icon": null,
"name": "***•ОПАСНЫЙ КВАРТАЛ•*** [PUBLIC] 18+",
"connect": "194.93.2.218:27015",
"request": "194.93.2.218:27015",
"map": "de_dust2",
"gamemode": "[PUBLIC] 18+",
"version": "9540945",
"numplayers": 10,
"maxplayers": 41,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 49,
"add_date": 1669416597,
"last_update": 1776207617,
"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": 356,
"language": "ru",
"parked": false,
"app": {
"id": 5,
"steam_id": 240,
"name": "Counter-Strike: Source",
"url": "counter-strike-source"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/619395");
$data = json_decode($json, true);
var_dump($data);