Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/10780738
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 65432,
    "world_seed": 1,
    "world_size": 3500,
    "steam_id": "90286605662786579",
    "domain": null,
    "id": 10780738,
    "ip": "15.235.113.18",
    "port": 28000,
    "query": 28001,
    "color": 0,
    "city": "Montreal",
    "description": "Welcome to LionServer Quad,\r\n\r\nJoin us on LionServer Rust to learn the fundamentals with a little relief from the grind. We've reduced upkeep 50% so you can come and go freely knowing it wasn't decay that took your loot. \r\n\r\nVisit us at: www.lionserver.ca \r\n\r\nF7 for reports,\r\n\r\nServer Rules : \r\n1. No toxicity - keep chat positive,\r\n2. Respect newbies, \r\n4. Teach a skill, learn a skill, \r\n3. No teaming, \r\n4. No hate speech, \r\n5. No VPNs \r\n6. No cheats or exploits, \r\n7. No Bots or Bot like behavior,\r\n8. No Interfering:\r\n**This includes but isn't limited to, harm, grief, harass, threaten, interrupt, interfere with or misuse the LionServer administration services, network, other users, community members or staff.**\r\n   \r\n Fun, learning, and fair play wins, \r\n\r\n LionServer Administration Service (LAS)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596270,
    "last_online": 1780605032,
    "icon": null,
    "name": "LionServer - Quad | Active Admins | Quebec | Beginner Friendly",
    "connect": "15.235.113.18:28000",
    "request": "15.235.113.18:28001",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1766872442,
    "last_update": 1780605032,
    "banned": false,
    "wipe": 1780596602,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3920,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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