JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9785608
json
{
  "response": {
    "fps": 105,
    "fps_avg": 103,
    "entities_count": 172073,
    "world_seed": 1124765777,
    "world_size": 3750,
    "steam_id": 90284751680818200,
    "domain": null,
    "id": 9785608,
    "ip": "203.135.196.151",
    "port": 21000,
    "query": 21003,
    "color": 0,
    "city": "Fukuoka",
    "description": "![[JP][PvE]Babury Server Ver6.1](https://storage.babusan.net/?q=mO3CIRbb)\nPlease check the website for the English translation.\r\nPlease click VIEW WEBPAGE.\r\n\r\nようこそ!!\r\n\r\nこのサーバはPvEサーバです。\r\n\r\n注意\r\n-サーバ環境の都合により不定期でサーバの再起動を行うことがあります。\r\n-プラグインの更新・調整後、サーバを再起動する場合があります。\r\n-サーバ再起動時には事前に通知を行うことを心がけますが、緊急を要する場合には、十分な通知なく再起動する場合があります。\r\n-サーバーの稼働状況に関しては当サーバ>のWEBサイトを御覧ください。\r\n-WEBサイト:https://rust.babury.net/ \r\n\r\nこのサーバでは以下の行為を禁止します。\r\n-他プレイヤーの所持物を破壊・略奪する行為\r\n-他プレイヤーへの攻撃とみなされる行為\r\n-プレイヤーが採集中のアイテム(救援物資等々)の横取り\r\n-スリープ中のプレイヤーからアイテムを奪うこと\r\n-自身に所有権のないオブジェクトを他者がさわれないように壁等で囲むこと\r\n-チャットでの暴言・荒らし行為\r\n-その他管理者が不適切であると判断した行為\r\n\r\n以上に該当した場合、警告orBANです。\r\n\r\nコマンド\r\n/info\r\nサーバインフォメーションを開くことが出来ます。サーバ内で確認してください。\r\n\r\n\r\nAdministrator: ばぶ(babu), 兄はオタク",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776798203,
    "score": 0,
    "last_online": 1776853221,
    "icon": null,
    "name": "[JP][PvE]Babury Server Ver6.1",
    "connect": "203.135.196.151:21000",
    "request": "203.135.196.151:21003",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2623",
    "numplayers": 3,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "JP",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1752681068,
    "last_update": 1776853221,
    "banned": false,
    "wipe": 1775187708,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1917,
    "language": "ja",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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