HumanitZ
API pentru
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11139395json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11139395,
"ip": "51.89.172.53",
"port": 23100,
"query": 23100,
"color": 0,
"city": "London",
"description": null,
"game": 1766060,
"owner": null,
"boosts": 1,
"last_offline": 1776456154,
"score": 0,
"last_online": 1776316247,
"icon": null,
"name": null,
"connect": null,
"request": "51.89.172.53:23100",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": null,
"private": null,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1770764383,
"last_update": 1776456154,
"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": 321,
"language": "en",
"parked": false,
"app": {
"id": 1531516,
"steam_id": 1766060,
"name": "HumanitZ",
"url": "humanitz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11139395");
$data = json_decode($json, true);
var_dump($data);