API dla Japan
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90285204501648405",
"domain": null,
"id": 11605223,
"ip": "157.85.87.211",
"port": 7777,
"query": 27015,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1779915413,
"last_online": 1780526445,
"icon": null,
"name": "Japan",
"connect": "157.85.87.211:7777",
"request": "157.85.87.211:27015",
"map": "TheCenter",
"gamemode": "TestGameMode_C",
"version": "361.7",
"numplayers": 1,
"maxplayers": 5,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": true,
"votes": 0,
"points": 38,
"add_date": 1779915413,
"last_update": 1780526445,
"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": 983,
"language": "nl",
"parked": false,
"app": {
"id": 67,
"steam_id": 346110,
"name": "ARK: Survival Evolved",
"url": "ark-survival-evolved"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11605223");
$data = json_decode($json, true);
var_dump($data);