API dla [马年]3人行/仿官/5.22日14时新开/萌新养老/半月�
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286499720727574",
"domain": null,
"id": 11511488,
"ip": "114.66.28.193",
"port": 22851,
"query": 22853,
"color": 0,
"city": "Beijing",
"description": "1.服务器CPU:AMD-9950X,稳定畅玩。 2.每日6点30分服务器定时重启,下次清档时间6月5日; 3.全服无充值,无礼包,无商城,无权限,加群1103767612; 4.原倍原硫,队伍上限3人,适合萌新,养老; 5.禁宏禁挂,如有嫌疑,第一时间F7举报cheat,并F1输入combatlog截屏联系群聊腐竹或者邮箱:[email protected]。",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780362249,
"last_online": 1780605037,
"icon": null,
"name": "[马年]3人行/仿官/5.22日14时新开/萌新养老/半月�",
"connect": "114.66.28.193:22851",
"request": "114.66.28.193:22853",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779353850,
"last_update": 1780605037,
"banned": false,
"wipe": 1779445396,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4955,
"language": "zh",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11511488");
$data = json_decode($json, true);
var_dump($data);