JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/8985109
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 151335,
    "world_seed": 932324608,
    "world_size": 4000,
    "steam_id": "90286590916175872",
    "domain": null,
    "id": 8985109,
    "ip": "89.28.237.38",
    "port": 28030,
    "query": 28031,
    "color": 0,
    "city": "Dallas",
    "description": "![SCAVENGERSHAVEN.NET 10x NoBPs [Loot++|PVP|MyMini|Shop]](https://www.scavengershaven.net/img/SHHeaderImage2.png)\n▼SERVER FEATURES▼\r\n  - 10x Gather Rates, Recycle & Smelting Speeds!\r\n  - Improved Loot. Enhanced Stack Sizes!\r\n  - Clans, Teams, Kits, Remove, MyMini\r\n  - Skinner\r\n  - BetterTC & BGrade\r\n  - Server Rewards\r\n  - Box Stacking (Right click box on-top to stack)\r\n\r\n  ▼SERVER RAIDING RULES▼\r\n  - Team Limit - 8 (Max)\r\n  - No Teaming, No Merge Raiding!\r\n\r\n  ▼SERVER INFORMATION▼\r\n  - Website: https://scavengershaven.net or http://SCAV.gg \r\n  - Discord: https://discord.gg/AjJQudCd9v \r\n\r\n  ▼SERVER WIPE TIMES▼\r\n  - Twice Weekly\r\n  - Every Tuesday & Friday\r\n  - First Thursday of the month 11:00am PST (force wipe)\r\n  - 1:00PM (PST) | 4:00PM (EST) | 8:00pm (UTC)\r\n\r\n  Type /info to bring up the Welcome Screen.\r\n Admin & Moderators are available if needed in server and discord.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780594836,
    "icon": null,
    "name": "SCAVENGERSHAVEN.NET 10x NoBPs [Loot++|PVP|MyMini|Shop]",
    "connect": "89.28.237.38:28030",
    "request": "89.28.237.38:28031",
    "map": "SCAV.GG",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1746808976,
    "last_update": 1780594836,
    "banned": false,
    "wipe": 1780430830,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3071,
    "language": "en",
    "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/8985109");
$data = json_decode($json, true);
var_dump($data);