早睡早起 için API
Programlar, siteler ve diğerleri için JSON
text
json
{
"response": {
"steam_id": "90285876698877957",
"domain": null,
"id": 11687025,
"ip": "43.248.116.223",
"port": 30684,
"query": 30684,
"color": 0,
"city": "Zhenjiang",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1780224723,
"last_online": 1780271506,
"icon": null,
"name": "早睡早起",
"connect": "43.248.116.223:30684",
"request": "43.248.116.223:30684",
"map": "LiShiya SafeHouse;Fort Benning",
"gamemode": "Project Zomboid",
"version": "42.18",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": true,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780224723,
"last_update": 1780271506,
"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": 7760,
"language": "zh",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11687025");
$data = json_decode($json, true);
var_dump($data);