API pentru Bad Company | ACE&ACRE Public | www.BadCompanyPMC.com

JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/628205
json
{
  "response": {
    "steam_id": "90284551735431175",
    "domain": null,
    "id": 628205,
    "ip": "213.246.56.27",
    "port": 2322,
    "query": 2323,
    "color": 0,
    "city": "Boulogne-Billancourt",
    "description": "",
    "game": 107410,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776411821,
    "score": null,
    "last_online": 1776456733,
    "icon": null,
    "name": "Bad Company | ACE&ACRE Public | www.BadCompanyPMC.com",
    "connect": "213.246.56.27:2322",
    "request": "213.246.56.27:2323",
    "map": "mehland",
    "gamemode": "BadCo Operation Chainbreaker",
    "version": "2.20.152984",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1669650779,
    "last_update": 1776456733,
    "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": 526,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 61,
      "steam_id": 107410,
      "name": "Arma 3",
      "url": "arma-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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