Counter-Strike: Source
MЯCOPУБKA $2000$ 👊 SGaming.RU için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/3669989json
{
"response": {
"steam_id": "90284079594891274",
"domain": null,
"id": 3669989,
"ip": "46.174.50.174",
"port": 27040,
"query": 27040,
"color": 0,
"city": "Moscow",
"description": "",
"game": 240,
"owner": null,
"boosts": 1,
"last_offline": 1773937321,
"score": null,
"last_online": 1776110419,
"icon": null,
"name": "MЯCOPУБKA $2000$ 👊 SGaming.RU",
"connect": "46.174.50.174:27040",
"request": "46.174.50.174:27040",
"map": "$2000$",
"gamemode": "AWP (Sniper Mod)",
"version": "9540945",
"numplayers": 11,
"maxplayers": 64,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 54,
"add_date": 1711814496,
"last_update": 1776110419,
"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": 417,
"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/3669989");
$data = json_decode($json, true);
var_dump($data);