Counter-Strike
REZ.LT:27020 CSGO:U [StatTrak, NameTag, Kontraktai] için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/22256json
{
"response": {
"steam_id": null,
"domain": null,
"id": 22256,
"ip": "79.98.30.225",
"port": 27020,
"query": 27020,
"color": 0,
"city": "Vilnius",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1775347285,
"score": null,
"last_online": 1776209443,
"icon": null,
"name": "REZ.LT:27020 CSGO:U [StatTrak, NameTag, Kontraktai]",
"connect": "79.98.30.225:27020",
"request": "79.98.30.225:27020",
"map": "de_dust2_2x2",
"gamemode": "Global U",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "LT",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1516056395,
"last_update": 1776209443,
"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": 4646,
"language": "lt",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/22256");
$data = json_decode($json, true);
var_dump($data);