API dla [JP]かいわれ資源サーバー
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286765196587009",
"domain": null,
"id": 11767835,
"ip": "119.231.61.193",
"port": 28115,
"query": 28116,
"project_id": null,
"color": 0,
"city": "Kyoto",
"description": null,
"game": 1621690,
"owner": null,
"boosts": 1,
"last_offline": 1780933929,
"last_online": 1781027573,
"icon": null,
"name": "[JP]かいわれ資源サーバー",
"connect": "119.231.61.193:28115",
"request": "119.231.61.193:28116",
"map": null,
"gamemode": "Core Keeper",
"version": "1.2.1.5-8be0",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780933929,
"last_update": 1781027573,
"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": 907,
"language": "ja",
"parked": false,
"app": {
"id": 1560042,
"steam_id": 1621690,
"name": "Core Keeper",
"url": "core-keeper"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11767835");
$data = json_decode($json, true);
var_dump($data);