JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10922593
json
{
  "response": {
    "steam_id": "90286712740085773",
    "domain": null,
    "id": 10922593,
    "ip": "45.88.228.130",
    "port": 28017,
    "query": 28015,
    "project_id": null,
    "color": 0,
    "city": "Dallas",
    "description": "![US RENEGADE 3x MONTHLY | Solo Duo | Shop | 50% Upkeep | No BP W](https://github.com/geosciencegeek/ImageHosting/blob/main/Renegade%20Server%20Banner%201024x512.png?raw=true)\n===Welcome to RENEGADERUST.COM===\r\n Wipes on the first Thursday of each month @ 2 PM EST (No BP Wipe)\r\n\r\n VIP PERKS - Renegaderust.com\r\n DISCORD - discord.gg/Renegaderust\r\n\r\n ===FEATURES===\r\n -/playtowin - Earn points for playtime to purchase FREE VIP\r\n -FREE SKINNER - (skinbox, skinitem, skincraft)\r\n -CONVOY EVENT - Highly Armored NPC convoy event on the road\r\n -SHOP - Extra points for linking @ renegaderust.link\r\n -RAID ALARM - Alerts you via Rust+ when your base is damaged\r\n -50% UPKEEP - For easy upkeep and big bases\r\n -AUTO AUTH - Auto auth teammates on TC/locks/turrets\r\n -FURNACE FILLER - Easily load/unload furnaces\r\n -PREMIUM LOOT TABLES - 3x with junk removed\r\n -SHORT NIGHTS - 5 Minutes \r\n -Some mini helis and boats spawn\r\n -Extra recyclers/repair/research bench at dome, oilrig, fishing, and cargo\r\n\r\n ===RULES===\r\n -No VAC or Steam game bans within 90 days\r\n -No EAC bans within 180 days\r\n -No more than 2 total bans\r\n -No racism or homophobia\r\n Complete rules can be found at our website, discord, and /rules in game\r\n [RS-f346f4e1]",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780933488,
    "last_online": 1780920630,
    "icon": null,
    "name": "US RENEGADE 3x MONTHLY | Solo Duo | Shop | 50% Upkeep | No BP W",
    "connect": "45.88.228.130:28017",
    "request": "45.88.228.130:28015",
    "map": "discord.gg/RenegadeRust",
    "gamemode": "Rust",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1768476983,
    "last_update": 1780933488,
    "banned": false,
    "wipe": 1780595188,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10710,
    "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/10922593");
$data = json_decode($json, true);
var_dump($data);