JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/7466785
json
{
  "response": {
    "fps": 40,
    "fps_avg": 40,
    "entities_count": 67883,
    "world_seed": 528577341,
    "world_size": 3500,
    "steam_id": "90286581205419009",
    "domain": null,
    "id": 7466785,
    "ip": "162.55.236.48",
    "port": 28055,
    "query": 28058,
    "color": 0,
    "city": "Falkenstein",
    "description": "![[EU] FireRust Primitive|Wiped 7/5](https://www.firerust.com/img/headers/firerust_primitive.png)\nWelcome to our Primitive game mode server!\n\nThis server is 100% Vanilla Primitive\n\nRules on this server:\n-No accounts with more than 1 VAC ban. VAC ban must be older than 365 days\n-No private/not setup accounts allowed\n-No Racism.\n-No Cheating.\n-No Glitching/Exploiting.\n-No team limit.\n\nJoin our Discord: firerust.com/discord\n\nBP's wipe every force wipe\n\nThe last wipe was on Thursday 7/5\nThe next wipe will be on Saturday 6/6 (30 day wipe schedule)\nThe map size is 3500 and the seed is 528577341 (BP wiped Thursday 7/5)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780373052,
    "last_online": 1780579839,
    "icon": null,
    "name": "[EU] FireRust Primitive|Wiped 7/5",
    "connect": "162.55.236.48:28055",
    "request": "162.55.236.48:28058",
    "map": "Procedural Map",
    "gamemode": "Primitive",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1739234713,
    "last_update": 1780579839,
    "banned": false,
    "wipe": 1778178546,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3006,
    "language": "de",
    "parked": false,
    "app": {
      "id": 252490,
      "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/7466785");
$data = json_decode($json, true);
var_dump($data);