Undefined未定义服务器-加州2.0究极赤石服务器 için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"steam_id": "85568392931064804",
"domain": null,
"id": 11630715,
"ip": "58.242.103.135",
"port": 49899,
"query": 49899,
"color": 0,
"city": "Hefei",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1780286653,
"last_online": 1780300235,
"icon": "https://s1.img-e.com/20260514/6a04e5abc9e34.png",
"name": "Undefined未定义服务器-加州2.0究极赤石服务器",
"connect": "58.242.103.135:49899",
"request": "58.242.103.135:49899",
"map": "California2",
"gamemode": "力大砖飞。僵尸力大,你负责飞。",
"version": "3.26.3.2",
"numplayers": 15,
"maxplayers": 48,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 50,
"add_date": 1779916700,
"last_update": 1780300235,
"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": 25,
"language": "zh",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11630715");
$data = json_decode($json, true);
var_dump($data);