JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11412792
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 270363,
    "world_seed": 1268230684,
    "world_size": 4500,
    "steam_id": "90284724803577873",
    "domain": null,
    "id": 11412792,
    "ip": "168.100.161.197",
    "port": 28014,
    "query": 28015,
    "color": 0,
    "city": "London",
    "description": "![Vital Rust - EU Mondays | 3x | No BPs](https://i.imgur.com/SqpYYUp.png)\nThe most competitive, perfectly modded servers in rust.\r\nAll modifications to the server are meant to promote player pvp interaction and quality of life.\r\n\r\nWeekly Wipe: Mondays @ 2PM London Time\r\nVIP & Queue Skip: https://store.vitalrust.com\r\n\r\n\\t- 3x Gather Rate\r\n\\t- No Blueprints\r\n\\t- 50% Craft & Smelt Time\r\n\\t- Adjusted Loot Tables & Faster Respawns\r\n\\t- 10 Player Teams\r\n\\t- Reduced HV Rocket PVP Damage\r\n\\t- No Safe Zone on Fishing Village\r\n\\t- 70 Min Day, 10 Min Night\r\n\\t- Always Bright Night\r\n\\t- Tier 2 Puzzles @ 10 Min Reset\r\n\\t- Minis, Scrappies, Boats, RHIBs and Horses spawning\r\n\\t- No Horse Gang\r\n\r\nJoin our Discord by logging in at https://vitalrust.com",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775690523,
    "score": 0,
    "last_online": 1776810012,
    "icon": null,
    "name": "Vital Rust - EU Mondays | 3x | No BPs",
    "connect": "168.100.161.197:28014",
    "request": "168.100.161.197:28015",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 97,
    "maxplayers": 125,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 102,
    "add_date": 1774599017,
    "last_update": 1776810012,
    "banned": false,
    "wipe": 1776689684,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 127,
    "language": "en",
    "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/11412792");
$data = json_decode($json, true);
var_dump($data);