API dla 考古挖掘系统 | 挖掘场遗址 | 修复文物获得奖励
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": 90286271805689870,
"domain": null,
"id": 11699451,
"ip": "122.51.131.47",
"port": 11797,
"query": 12297,
"color": 0,
"city": "Shanghai",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1780227364,
"last_online": 1780542232,
"icon": null,
"name": "考古挖掘系统 | 挖掘场遗址 | 修复文物获得奖励",
"connect": "122.51.131.47:11797",
"request": "122.51.131.47:12297",
"map": "Chernarusplus",
"gamemode": null,
"version": "129",
"numplayers": 0,
"maxplayers": 70,
"bots": 55,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780227364,
"last_update": 1780542232,
"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": 9608,
"language": "zh",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11699451");
$data = json_decode($json, true);
var_dump($data);