API dla The Forest Game
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286243839472666",
"domain": null,
"id": 11637481,
"ip": "115.200.236.146",
"port": 27015,
"query": 27016,
"color": 0,
"city": "Hangzhou",
"description": null,
"game": 242760,
"owner": null,
"boosts": 1,
"last_offline": 1780623210,
"last_online": 1779948648,
"icon": null,
"name": "The Forest Game",
"connect": "115.200.236.146:27015",
"request": "115.200.236.146:27016",
"map": "Normal",
"gamemode": "The Forest",
"version": "0.11.3.0.0",
"numplayers": 0,
"maxplayers": 2,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779917086,
"last_update": 1780623210,
"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": 244,
"language": "zh",
"parked": false,
"app": {
"id": 184,
"steam_id": 242760,
"name": "The Forest",
"url": "the-forest"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11637481");
$data = json_decode($json, true);
var_dump($data);