API dla Cumalot
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90281879098052619",
"domain": null,
"id": 10868993,
"ip": "170.23.138.187",
"port": 20207,
"query": 20208,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1776300112,
"last_online": 1780588881,
"icon": null,
"name": "Cumalot",
"connect": "170.23.138.187:20207",
"request": "170.23.138.187:20208",
"map": "Cumalot",
"gamemode": null,
"version": "0.221.12",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1768318191,
"last_update": 1780588881,
"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": 3807,
"language": "de",
"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/10868993");
$data = json_decode($json, true);
var_dump($data);