Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/10498998
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10498998,
    "ip": "85.31.62.95",
    "port": 7777,
    "query": 7777,
    "color": 0,
    "city": "São Paulo",
    "description": null,
    "game": 9000035,
    "owner": null,
    "boosts": 1,
    "last_offline": 1772596894,
    "score": 0,
    "last_online": 1776372686,
    "icon": null,
    "name": "A/D Con Los Pibinhos 3.0",
    "connect": "85.31.62.95:7777",
    "request": "85.31.62.95:7777",
    "map": "Lobby",
    "gamemode": "Att-Def v1.38.0 (r)",
    "version": "omp 1.4.0.2783",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "BR",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1761125141,
    "last_update": 1776372686,
    "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": 536,
    "language": "pt",
    "parked": false,
    "app": {
      "id": 168,
      "steam_id": 9000035,
      "name": "Samp",
      "url": "samp"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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