JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11189422
json
{
  "response": {
    "fps": 95,
    "fps_avg": 87,
    "entities_count": 133072,
    "world_seed": 825003529,
    "world_size": 4800,
    "steam_id": "90286612443627533",
    "domain": null,
    "id": 11189422,
    "ip": "107.214.209.249",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Woodstock",
    "description": "![Purrgatory PVE|NO RAID|NO KILL|NO DECAY](https://cdn.discordapp.com/attachments/1477698907134759073/1507501350664015962/ServerHeader.png?ex=6a12218a&is=6a10d00a&hm=98183eff36791e4840a0808f63d64cda6277964899ef3d51495e944a1e7a0b44&)\nWelcome to the Purrgatory PVE server. We offer 1X Loot, 5X stacking, and a number of other perks and events running daily. \r\n  \r\n For more details on the rules and events, please check out the server Discord channel https://discord.gg/kRvuvy7CRZ \r\n  \r\n SPECIAL FEATURES \r\n •TUGBOATS ADDED BACK IN \r\n •BASEMENTS \r\n •WATER BASES \r\n •NO DECAY FOR BASES / VEHICLES / BOATS \r\n •INFINITE DURABILITY FOR WEAPONS \r\n •REMOVE TOOL \r\n •BOX STACKING \r\n •HELICOPTER STORAGE \r\n •WALLPAPER EXPANSION PACKS \r\n  \r\n EVENTS \r\n •AIRFIELD EVENT \r\n •TUGBOAT PIRATES \r\n •DUNGEON BASES \r\n •CONVOYS \r\n •HELI SIGNALS \r\n •DANGEROUS TREASURES \r\n  \r\n RULES \r\n •NO KILLING OF OTHER PLAYERS \r\n •NO LOOTING / STEALING FROM OTHER PLAYERS \r\n •NO RAIDING OF OTHER PLAYER'S BASES \r\n •NO TRESPASSING \r\n •LIMIT SIZE AND NUMBER OF BASES \r\n •DO NOT BUILD TOO HIGH NEAR MONUMENTS \r\n •ONE HELI TOWER OR BRADLEY BASE PER PLAYER \r\n •NO DECAY AND VEHICLES \r\n •ONE VEHICLE OF EACH TYPE PER PLAYER \r\n •TWO BUILT DEEP SEA BOATS PER SOLO / TEAM \r\n •BUILD WITH COURTESY AND RESPECT \r\n •CALL OUT MONUMENTS AND AIRDROPS \r\n •NO ADVERTISING \r\n •NO HACKING / CHEATING \r\n •NO OFFENSIVE LANGUAGE \r\n •NO TOXIC BEHAVIOR \r\n •ENGLISH CHAT ONLY \r\n  \r\n If any of this is unclear, or if something is confusing, feel free to reach out to an admin on Discord and ask.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780614854,
    "last_online": 1780636233,
    "icon": null,
    "name": "Purrgatory PVE|NO RAID|NO KILL|NO DECAY",
    "connect": "107.214.209.249:28015",
    "request": "107.214.209.249:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1772699053,
    "last_update": 1780636233,
    "banned": false,
    "wipe": 1780597247,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4041,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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