JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10035637
json
{
  "response": {
    "fps": 45,
    "fps_avg": 42,
    "entities_count": 93469,
    "world_seed": 567265,
    "world_size": 3500,
    "steam_id": "90286700310148106",
    "domain": null,
    "id": 10035637,
    "ip": "49.12.146.141",
    "port": 28025,
    "query": 28026,
    "project_id": null,
    "color": 0,
    "city": "Falkenstein",
    "description": "![WILDERNESS Romania x10 |Solo Only| No BPs |Just Wiped|Events](https://i.ibb.co/LDmmPFJw/Wilderness-1024-x-512-px-4.png)\nMap Wipes: Monday 16:00 CET & Friday 12:00 CET\r\n BP Wipes: Follows Map Wipe Schedule\r\n\r\n ★ 10x Improved Loot • Junk Removed • New Item Additions\r\n ★ Backpack • SkillTree • FREE Skins via /skin\r\n ★ New Vehicles via /vehicle • Vehicles No Decay\r\n ★ 10x Higher Stack Sizes • Boosted Progression\r\n\r\n ★ Premium Kits • Sentry Turrets (Limit 27 per TC)\r\n ★ Box Sorter • Auto-Doors • Air & Water Bases\r\n ★ Personal Ziplines via /kit • Furnace Upgrades\r\n ★ Extended Workbench Range • Improved Pump Jacks & Quarrys\r\n\r\n ★ New Recycler Spawns at Monuments\r\n ★ Raidable Bases — 500+ Unique Designs\r\n ★ New Shops at Outpost & Bandit\r\n\r\n ★ Long Days & Short Nights (55/5) • Powerless Neons\r\n ★ Free Ranks • Rust Points System with /shop\r\n ★ Playtime Benefits • Cases • Stats • Daily Rewards\r\n\r\n ★ Automated Teaming Detection\r\n ★ PvP Across the Map with PvE Events\r\n\r\n ★ Active Admins 24/7 • Tickets • Bug Fixes • Friendly Staff",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780808653,
    "last_online": 1780853431,
    "icon": null,
    "name": "WILDERNESS Romania x10 |Solo Only| No BPs |Just Wiped|Events",
    "connect": "49.12.146.141:28025",
    "request": "49.12.146.141:28026",
    "map": "High FPS | Wiped - 2d ago",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1755066777,
    "last_update": 1780853431,
    "banned": false,
    "wipe": 1780649811,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2528,
    "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/10035637");
$data = json_decode($json, true);
var_dump($data);