Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/1465957
json
{
  "response": {
    "steam_id": "85568392930697659",
    "domain": null,
    "id": 1465957,
    "ip": "77.172.66.183",
    "port": 27017,
    "query": 27018,
    "color": 0,
    "city": "Kerkdriel",
    "description": "",
    "game": 227300,
    "owner": 50125,
    "boosts": 1,
    "last_offline": 1775610802,
    "score": null,
    "last_online": 1776035294,
    "icon": null,
    "name": "Maikel - Europe/NL",
    "connect": "77.172.66.183:27017",
    "request": "77.172.66.183:27018",
    "map": "europe",
    "gamemode": "discord.maikel1990.nl",
    "version": null,
    "numplayers": 0,
    "maxplayers": 8,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "NL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1697311734,
    "last_update": 1776035294,
    "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": 43,
    "language": "nl",
    "parked": false,
    "app": {
      "id": 1980,
      "steam_id": 227300,
      "name": "Euro Truck Simulator 2",
      "url": "euro-truck-simulator-2"
    },
    "server_owner": {
      "username": "gustave1990",
      "avatar": "7c560593-ffee-48bc-bfb6-909c80bed97b.jpg",
      "last_online": 1774572978
    },
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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