API pentru Jutland PVE
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": 90286620025797660,
"domain": null,
"id": 701533,
"ip": "54.36.234.246",
"port": 2517,
"query": 2518,
"project_id": null,
"color": 0,
"city": "Limburg an der Lahn",
"description": "",
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1773551530,
"last_online": 1780690300,
"icon": null,
"name": "Jutland PVE",
"connect": "54.36.234.246:2517",
"request": "54.36.234.246:2518",
"map": "sakhal",
"gamemode": null,
"version": "1.26.158898",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1672009586,
"last_update": 1780690300,
"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": 5592,
"language": "de",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/701533");
$data = json_decode($json, true);
var_dump($data);