JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/1204998
json
{
  "response": {
    "fps": 54,
    "fps_avg": 57,
    "entities_count": 224338,
    "world_seed": 972484607,
    "world_size": 4500,
    "steam_id": "90286620481425424",
    "domain": null,
    "id": 1204998,
    "ip": "130.180.20.86",
    "port": 28015,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "Neu-Isenburg",
    "description": "![[EU/GER/EN] OceanRust Trio/Quad|2x|Loot+|4.5k Map|Events|Offlin](https://www.dropbox.com/scl/fi/radqqzxrfvl456jptdiah/rust-3-banner.png?rlkey=i0mwo23mg7uf6p9cnjdqfo8hm&dl=1)\n✦Timezone EU-CET\r\n✦No-BP Wipe, Mothly, 2x, 50% Upkeep, 4.5K Map\r\n✦Team Limit 4, no Teaming, no Allies\r\n\r\n✦Rust+ App, RaidAlert\r\n✦large Stack-Size, 45 Sleepers, spawning Minis+Cars, 20 Map-Markers\r\n✦Recyclers at: Large and Smoil, Fishing Village, on Cargo\r\n✦Building Support\r\n✦Loot+, Skinbox, Building Skins, Sort-Plugin, no Turret Limit\r\n✦24h Offline Raid Protection\r\n✦Events: Arfield Event, Space Station, Amored Train, guarded crates, Sputnik \r\n✦extended Workbench range, Quicksmelt\r\n✦high Power Output for Solar, Battery and Generator\r\n✦RP Shop with Test Gens, Weapons, Cofins, ...\r\n✦ \r\n✦enjoy PvP and >Online< Raids\r\n\r\n -COMMANDS-\r\n✦/skin\r\n✦/bskin, /bskin build /bskin all\r\n✦/trade player name\r\n✦/pp player name\r\n✦/clan, /clan create, /clan join, /clanhelp\r\n✦/ad to turn on and off automatic door closing /ad help to see the full command set\r\n✦ /remove to remove items \r\n✦ /info to see the server infos \r\n\r\n✦ /shop to spend some RP's for things you need \r\n\r\n✦Server is fps optomized",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595663,
    "last_online": 1780694429,
    "icon": null,
    "name": "[EU/GER/EN] OceanRust Trio/Quad|2x|Loot+|4.5k Map|Events|Offlin",
    "connect": "130.180.20.86:28015",
    "request": "130.180.20.86:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 8,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1691954731,
    "last_update": 1780694429,
    "banned": false,
    "wipe": 1780596070,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1610,
    "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/1204998");
$data = json_decode($json, true);
var_dump($data);