Dark and Light
API pentru TheArk.Life PVE x15ALL [1/2] - (v100.54351)
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/3618828json
{
"response": {
"steam_id": "90284312782837774",
"domain": null,
"id": 3618828,
"ip": "15.204.182.57",
"port": 7509,
"query": 26009,
"color": 0,
"city": "Reston",
"description": "",
"game": 529180,
"owner": null,
"boosts": 1,
"last_offline": 1776079312,
"score": null,
"last_online": 1776219617,
"icon": null,
"name": "TheArk.Life PVE x15ALL [1/2] - (v100.54351)",
"connect": "15.204.182.57:7509",
"request": "15.204.182.57:26009",
"map": "DNL_ALL",
"gamemode": "TheArkLife_TestGameMode_C",
"version": "1.0.0.0",
"numplayers": 8,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 47,
"add_date": 1711582993,
"last_update": 1776219617,
"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": 69,
"language": "en",
"parked": false,
"app": {
"id": 180,
"steam_id": 529180,
"name": "Dark and Light",
"url": "dark-and-light"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/3618828");
$data = json_decode($json, true);
var_dump($data);