JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10870113
json
{
  "response": {
    "fps": 77,
    "fps_avg": 82,
    "entities_count": 124228,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286604083704853",
    "domain": null,
    "id": 10870113,
    "ip": "136.243.34.238",
    "port": 28025,
    "query": 28026,
    "color": 0,
    "city": "Falkenstein",
    "description": "![[ESP][PVE] RustiMeow | SkillTree | BackPack | RaidBases](https://i.imgur.com/IOE01zQ.png)\n■ ESPAÑOL \r\n ¡Bienvenid@s a RustiMeow! \r\n Servidor con Kits, Mochilas, Eventos, Skill-Tree y Misiones. \r\n Wipe de Mapa/Construcciones/BPs: Mitad de mes (Bi-Semanal) \r\n FULL WIPE: Primer jueves de cada mes \r\n Eventos: AirfieldEvent, Bradley Arena, Bradley Drops, CargoConvoy, Convoy, Dungeon Events, HarborEvent, Heli Signals, Raidable Bases, ZombieHordeEvent \r\n Kits: Verificado, Streamer y Vips \r\n Comunidad chill - Prohibidos los insultos y las faltas de respeto \r\n Discord: https://discord.gg/BbcS6xrXzP  \r\n ■ ENGLISH \r\n Welcome to RustiMeow! \r\n Server with Kits, Backpacks, Events, Skill-Tree and Quests. \r\n Map/Buildings/BP Wipe: Mid month (Bi-Weekly) \r\n FULL WIPE: First Thursday of each month \r\n Events: AirfieldEvent, Bradley Arena, Bradley Drops, CargoConvoy, Convoy, Dungeon Events, HarborEvent, Heli Signals, Raidable Bases, ZombieHordeEvent \r\n Kits: Verified, Streamer and Vips \r\n Chill community - Insults and disrespect are prohibited \r\n Discord: https://discord.gg/BbcS6xrXzP",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780107812,
    "last_online": 1780608025,
    "icon": null,
    "name": "[ESP][PVE] RustiMeow | SkillTree | BackPack | RaidBases",
    "connect": "136.243.34.238:28025",
    "request": "136.243.34.238:28026",
    "map": "RUSTIMEOW Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 9,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 68,
    "add_date": 1768318391,
    "last_update": 1780608025,
    "banned": false,
    "wipe": 1780595991,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 959,
    "language": "de",
    "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/10870113");
$data = json_decode($json, true);
var_dump($data);