Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/3033542
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 3033542,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "Всех рады приветствовать на сервере Palworld!\nСервер работает 24/7\nУстановлен X2 Exp чтобы прокачка была быстрее!\nDiscord сервера где вы можете общаться и высказывать свои пожелания [Discord](https://discord.gg/yvDfR3Qd)\nЗаходи и добро пожаловать в ряды ловцов Pal'ов",
    "game": 1623730,
    "owner": 53090,
    "boosts": 1,
    "last_offline": 1750457065,
    "score": 5,
    "last_online": 1709663585,
    "icon": null,
    "name": "Default Palworld Server",
    "connect": null,
    "request": null,
    "map": "MainWorld5",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 32,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1708096203,
    "last_update": 1750457065,
    "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": 4,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 1571682,
      "steam_id": 1623730,
      "name": "Palworld",
      "url": "palworld"
    },
    "server_owner": {
      "username": "Devilign",
      "avatar": "f5d1a6e0-3f2f-46f6-81c2-844f6426e903.jpg",
      "last_online": 1709172092
    },
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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