API dla 【无痕定制服】怪猎之旅
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286979879722012",
"domain": null,
"id": 11685573,
"ip": "118.24.161.239",
"port": 20337,
"query": 13019,
"project_id": null,
"color": 0,
"city": "Chengdu",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1781383448,
"last_online": 1781386378,
"icon": null,
"name": "【无痕定制服】怪猎之旅",
"connect": "118.24.161.239:20337",
"request": "118.24.161.239:13019",
"map": "Ragnarok",
"gamemode": "TestGameMode_mhw_C",
"version": "358.24",
"numplayers": 0,
"maxplayers": 70,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780224593,
"last_update": 1781386378,
"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": 11324,
"language": "zh",
"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/11685573");
$data = json_decode($json, true);
var_dump($data);