JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/4758137
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 4758137,
    "ip": "45.144.155.93",
    "port": 27015,
    "query": 27015,
    "color": 0,
    "city": "Plovdiv",
    "description": "[{\"id\":\"e1xvxCy7s_\",\"type\":\"paragraph\",\"data\":{\"text\":\"Balkan Gaming Arena je centralno mesto za ljubitelje Counter-Strike 2 sa Balkana. Naša zajednica okuplja igrače svih nivoa veština u cilju stvaranja podržavajućeg i uzbudljivog okruženja za sve entuzijaste igre.\"}},{\"id\":\"bJdAsIFkWC\",\"type\":\"paragraph\",\"data\":{\"text\":\"Balkan Gaming Arena is the central hub for Counter-Strike 2 enthusiasts from the Balkans. Our community brings together players of all skill levels to create a supportive and exciting environment for all game enthusiasts.  \"}}]",
    "game": 10,
    "owner": 85049,
    "boosts": 1,
    "last_offline": 1776094312,
    "score": 0,
    "last_online": 1776823212,
    "icon": null,
    "name": "KREEDZ.BG Jump [Easy/Average]",
    "connect": "45.144.155.93:27015",
    "request": "45.144.155.93:27015",
    "map": "ins_toontrain",
    "gamemode": "Counter-Strike",
    "version": "1.1.2.7/Stdio",
    "numplayers": 1,
    "maxplayers": 21,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "BG",
    "status": true,
    "votes": 0,
    "points": 93,
    "add_date": 1718078820,
    "last_update": 1776823212,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1490,
    "language": "bg",
    "parked": false,
    "app": {
      "id": 3,
      "steam_id": 10,
      "name": "Counter-Strike",
      "url": "counter-strike"
    },
    "server_owner": {
      "username": "StefanBeli",
      "avatar": "59893164-458b-4497-a16c-64f11cd8d7db.jpg",
      "last_online": 1730762092
    },
    "mods": [],
    "disabled_modules": [
      "reviews",
      "chat"
    ]
  }
}

Codebeispiele

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