API dla jepp
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286577139636231",
"domain": null,
"id": 9352463,
"ip": "194.242.10.246",
"port": 2496,
"query": 2497,
"color": 0,
"city": "Oslo",
"description": null,
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1777604602,
"last_online": 1780552945,
"icon": null,
"name": "jepp",
"connect": "194.242.10.246:2496",
"request": "194.242.10.246:2497",
"map": "jepp",
"gamemode": null,
"version": "0.221.12",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "NO",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1747780439,
"last_update": 1780552945,
"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": 1722,
"language": "no",
"parked": false,
"app": {
"id": 34967,
"steam_id": 892970,
"name": "Valheim",
"url": "valheim"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/9352463");
$data = json_decode($json, true);
var_dump($data);