JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/9196097
json
{
  "response": {
    "fps": 98,
    "fps_avg": 97,
    "entities_count": 122169,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286741817673751",
    "domain": null,
    "id": 9196097,
    "ip": "47.156.163.29",
    "port": 42069,
    "query": 42071,
    "project_id": null,
    "color": 0,
    "city": "Redondo Beach",
    "description": "![MARIJUANAVILLE (PVE) •Zombies •Raid Bases •Events •420](https://i.imgur.com/G5EKIBH.png)\nWelcome to Marijuanaville! Join us for a blissful and unique PVE/PVP experience, complete with Zombie encounters, hourly events, raidable bases, Skill Tree system and much more! Trade your stash at the MV Dispensary, grab a Quest or jump into an action packed event. Get ready to embark on a truly baked Rust adventure!\r\n\r\n★ Server Features ★\r\n✓ 10x Stack Size\r\n ✓ Quest system\r\n ✓ Skill Tree system\r\n ✓ Harvest weed and trade for special edibles at the Dispensary\r\n ✓ PVE map with PVP Zones and events\r\n✓ Bi-Weekly Wipes (1st & 3rd Thursdays)\r\n \r\n ★ PVE Events ★\r\n ✓ Raidable NPC Bases\r\n ✓ NPC Raiders (call NPC’s to raid your base) \r\n ✓ Zombies and Custom NPC’s\r\n ✓ Convoy – A convoy of tanks and vehicles operated by hostile NPC’s\r\n ✓ Space – Fly a Spaceship to the ISS Space Station for an epic battle on 0g. \r\n ✓ Sputnik – Space debris on land protected by hostile NPC astronauts and a Patrol Heli. \r\n ✓ Bosses – Tough NPC Bosses with unique abilities. \r\n  ✓ Armored Train – Train containing hostile NPC’s & tons of loot.\r\n \r\n ★ PVP Events ★\r\n ✓ Raidable Abandoned player bases (after 4 days of inactivity) \r\n ✓ Purge – Entire map is PVP for 24hours before each wipe\r\n ✓ Select PVP Monuments\r\n \r\n Plus TONS more modifications and QOL features! \r\n \r\n Discord: DSC.GG/MJV",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780902262,
    "last_online": 1780916427,
    "icon": null,
    "name": "MARIJUANAVILLE (PVE) •Zombies •Raid Bases •Events •420",
    "connect": "47.156.163.29:42069",
    "request": "47.156.163.29:42071",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1747311931,
    "last_update": 1780916427,
    "banned": false,
    "wipe": 1780600644,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1595,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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