JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/8884856
json
{
  "response": {
    "fps": 50,
    "fps_avg": 49,
    "entities_count": 55645,
    "world_seed": 1234,
    "world_size": 3000,
    "steam_id": "90286715720466446",
    "domain": null,
    "id": 8884856,
    "ip": "185.187.155.62",
    "port": 28055,
    "query": 28056,
    "project_id": null,
    "color": 0,
    "city": "Dallas",
    "description": "![Dead Nasty Rust 5X PvE|Chill Vibes|High Reward|Endless Raids|Sk](https://www.dropbox.com/scl/fi/9t3deapo9izgjj3xrcdgr/tebexcrop2-1-2.png?rlkey=omhu3xui8rqerwk92eetnqkes&st=fy4x7nms&dl=1)\nLooking for a chill but exciting Rust experience? \r\n Dead Nasty 5X PvE delivers the perfect blend of survival, raiding, and custom content � no toxic PvP, just non-stop fun.\r\nRaidable NPC Bases : Test your skills, earn epic loot,  non-stop action.\r\nPeaceful Environment : 100% PvE, no player killing.\r\nStarter Kits & Daily Rewards : Get geared and go.\r\nOver 25+ Epic Events : Helicrashes, loot drops, boss fights, so much more!\r\nBuy Personal Events with RP : Trigger content on your terms\r\nCustom Skill Tree System : Upgrade your playstyle, your way\r\nZombies, Tiered Bosses & Custom NPCs : Dynamic & fun PvE challenges.  Boss fights, loot runs & more.\r\nLow Pop : High Fun : Build, explore, and thrive without pressure.\r\nConstant Discord Giveaways : Free loot, premium kits & more.\r\nActive, Fair Admin Team : Community-focused and always around.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780685660,
    "last_online": 1780898435,
    "icon": null,
    "name": "Dead Nasty Rust 5X PvE|Chill Vibes|High Reward|Endless Raids|Sk",
    "connect": "185.187.155.62:28055",
    "request": "185.187.155.62:28056",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1746405527,
    "last_update": 1780898435,
    "banned": false,
    "wipe": 1780685579,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3284,
    "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/8884856");
$data = json_decode($json, true);
var_dump($data);