JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/227616
json
{
  "response": {
    "fps": 40,
    "fps_avg": 40,
    "entities_count": 79741,
    "world_seed": 61,
    "world_size": 3850,
    "steam_id": "90286603760028692",
    "domain": null,
    "id": 227616,
    "ip": "23.111.191.218",
    "port": 28025,
    "query": 28015,
    "color": 0,
    "city": "Atlanta",
    "description": "![tehwebz solo/duo [casual|premium+]](https://rust.tehwebz.net/duo/headers/duoheaderG8.png)\nWelcome to tehwebz. A group limit server with HALF UPKEEP. Discrimination of any type will not be tolerated. SOLOs/DUOs ONLY - Follow the rules or you will be banned. \r\n\r\nMap Wipes: Twice a Month - Thursday 2pm ET \r\n  * Wiped: Jun 4th - Next Wipe: Jun 18th \r\nBPs Wipe: Every other month (odd months)\r\n  * Next full wipe: July 2nd \r\n\r\n• Your team only (MAX 2) basing, roaming, or together, ever. \r\n• Don't meet up at a base, and don't let other players in your base. \r\n• NO ALLIANCES - Don't work or conspire with another team. \r\n• NO GIVING OR RECEIVING bases/items. FAIR TRADES only AT SAFE ZONES. \r\n• NO SERVICES this includes but is not limited to; taxis, farming, dancing. \r\n• NO SWITCHING TEAMMATES in the same wipe. It is OK for two solos to team up. \r\n\r\nNew accounts or cheaters with a recent VAC/gameban or 2+ are banned. \r\n\r\n↓ more information - visit website ↓",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595663,
    "last_online": 1780608036,
    "icon": null,
    "name": "tehwebz solo/duo [casual|premium+]",
    "connect": "23.111.191.218:28025",
    "request": "23.111.191.218:28015",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1582979111,
    "last_update": 1780608036,
    "banned": false,
    "wipe": 1780595636,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2924,
    "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/227616");
$data = json_decode($json, true);
var_dump($data);