Counter-Strike 2
XPLAY.GG • CS2 SURF #41 • [BR] için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/3285764json
{
"response": {
"steam_id": "85568392924046282",
"domain": null,
"id": 3285764,
"ip": "169.150.198.105",
"port": 26307,
"query": 26307,
"color": 0,
"city": "São Paulo",
"description": "",
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1776727398,
"score": null,
"last_online": 1776839427,
"icon": null,
"name": "XPLAY.GG • CS2 SURF #41 • [BR]",
"connect": "169.150.198.105:26307",
"request": "169.150.198.105:26307",
"map": "surf_catalyst2",
"gamemode": "Counter-Strike 2",
"version": "1.41.5.3",
"numplayers": 4,
"maxplayers": 22,
"bots": 1,
"secured": true,
"private": false,
"country": "BR",
"status": true,
"votes": 0,
"points": 44,
"add_date": 1709834958,
"last_update": 1776839427,
"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": 539,
"language": "pt",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/3285764");
$data = json_decode($json, true);
var_dump($data);