Counter-Strike
#DeathMatch FUN ! mDk||cs.FeNix.lt için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/62628json
{
"response": {
"steam_id": null,
"domain": null,
"id": 62628,
"ip": "185.80.128.103",
"port": 27021,
"query": 27021,
"color": 0,
"city": "Vilnius",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1773545568,
"score": null,
"last_online": 1776203432,
"icon": null,
"name": "#DeathMatch FUN ! mDk||cs.FeNix.lt",
"connect": "185.80.128.103:27021",
"request": "185.80.128.103:27021",
"map": "cs_siege",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "LT",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1521473133,
"last_update": 1776203432,
"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": 4841,
"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/62628");
$data = json_decode($json, true);
var_dump($data);