Counter-Strike
API pentru [CS-ULET.RU] ~Улетные Ножи [FREE VIP]~
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/7845475json
{
"response": {
"steam_id": null,
"domain": null,
"id": 7845475,
"ip": "194.67.110.171",
"port": 27041,
"query": 27041,
"color": 0,
"city": "Moscow",
"description": null,
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1775217733,
"score": 0,
"last_online": 1776183019,
"icon": null,
"name": "[CS-ULET.RU] ~Улетные Ножи [FREE VIP]~",
"connect": "194.67.110.171:27041",
"request": "194.67.110.171:27041",
"map": "35hp_2",
"gamemode": "[CS-ULET.RU]",
"version": "1.1.2.7/Stdio",
"numplayers": 7,
"maxplayers": 32,
"bots": 1,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 48,
"add_date": 1740142564,
"last_update": 1776183019,
"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": 2887,
"language": "ru",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/7845475");
$data = json_decode($json, true);
var_dump($data);