Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/1397204
json
{
  "response": {
    "steam_id": "90284261340882961",
    "domain": "game.thehostmeister.com",
    "id": 1397204,
    "ip": "72.216.162.131",
    "port": 27015,
    "query": 27015,
    "color": 0,
    "city": "Phoenix",
    "description": "The Hostmeister is a community dedicated to hosting quality servers on source games. These servers were found to provide a fair and free environment to enjoy our favorite titles. Our goal is to provide a great vanilla+ experience without the overbearing admins found in other communities.\n\nOur Day of Defeat: Source server runs rcbot2 while there are 5 players or fewer. Once 6 players are connected, the bots are kicked. The tickrate of our server is 100, so you will find gameplay more responsive on our server than most others. We use sv_pure 0 so you can join our server using any custom content you so please. We have over 40+ high quality maps with full bot support.\n\nDay of Defeat: Source server IP:\ngame.thehostmeister.com:27015\nClick here to join: \nhttps://thehostmeister.com/dod\n\nOur forums and website:\nhttps://thehostmeister.com\n\nOur discord server:\nhttps://discord.gg/tZcXteRrvU\n\nOur Steam group:\nhttps://steamcommunity.com/groups/thehostmeister\n\nTo view the status of any of our game servers:\nhttps://thehostmeister.com/status\n\nView our SourceBans dashboard here:\nhttps://thehostmeister.com/sourcebans",
    "game": 300,
    "owner": 44504,
    "boosts": 1,
    "last_offline": 1774767730,
    "score": null,
    "last_online": 1776612614,
    "icon": null,
    "name": "The Hostmeister | DoD:S [100 Tick]",
    "connect": "game.thehostmeister.com:27015",
    "request": "72.216.162.131:27015",
    "map": "dod_avalanche",
    "gamemode": "Day of Defeat",
    "version": "9540945",
    "numplayers": 0,
    "maxplayers": 24,
    "bots": 10,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 90,
    "add_date": 1695934431,
    "last_update": 1776612614,
    "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": 8,
    "language": "en",
    "parked": false,
    "app": {
      "id": 8,
      "steam_id": 300,
      "name": "Day of Defeat: Source",
      "url": "day-of-defeat-source"
    },
    "server_owner": {
      "username": "admin_496",
      "avatar": "12eff0d3-07f5-4967-83af-dccd207935a7.jpg",
      "last_online": 1701149269
    },
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/1397204");
$data = json_decode($json, true);
var_dump($data);