Team Fortress 2
^2[Hun]-Magyar ^4Cool teszt ^3Szerver-[vpsgame.hu] ^1| vpsgame için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/10787502json
{
"response": {
"steam_id": "85568392935717976",
"domain": null,
"id": 10787502,
"ip": "95.138.193.64",
"port": 3080,
"query": 3080,
"color": 0,
"city": "Sopron",
"description": null,
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1776589950,
"score": 0,
"last_online": 1776799898,
"icon": null,
"name": "^2[Hun]-Magyar ^4Cool teszt ^3Szerver-[vpsgame.hu] ^1| vpsgame",
"connect": "95.138.193.64:3080",
"request": "95.138.193.64:3080",
"map": "koth_harvest_final",
"gamemode": "Team Fortress",
"version": "9543365",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "HU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766873580,
"last_update": 1776799898,
"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": 1628,
"language": "hu",
"parked": false,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/10787502");
$data = json_decode($json, true);
var_dump($data);