Counter-Strike
CS Server by Elite Game Servers.net için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/797405json
{
"response": {
"steam_id": "90282749157070855",
"domain": null,
"id": 797405,
"ip": "54.36.232.188",
"port": 27145,
"query": 27145,
"color": 0,
"city": "Limburg an der Lahn",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1770777103,
"score": null,
"last_online": 1776192654,
"icon": null,
"name": "CS Server by Elite Game Servers.net",
"connect": "54.36.232.188:27145",
"request": "54.36.232.188:27145",
"map": "de_cbble",
"gamemode": "Counter-Strike",
"version": "1.1.2.7",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1684346486,
"last_update": 1776192654,
"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": 5349,
"language": "de",
"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/797405");
$data = json_decode($json, true);
var_dump($data);