ARK Deathmatch in the valley - (v178.8) 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90285675236659214",
"domain": null,
"id": 10889452,
"ip": "85.230.149.17",
"port": 7783,
"query": 27020,
"project_id": null,
"color": 0,
"city": "Jönköping",
"description": null,
"game": 407530,
"owner": null,
"boosts": 1,
"last_offline": 1780920333,
"last_online": 1781633435,
"icon": null,
"name": "ARK Deathmatch in the valley - (v178.8)",
"connect": "85.230.149.17:7783",
"request": "85.230.149.17:27020",
"map": "TheValley",
"gamemode": "SpawnWeaponsGameMode_C",
"version": "1.0.0.0",
"numplayers": 11,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "SE",
"status": true,
"votes": 0,
"points": 50,
"add_date": 1768322827,
"last_update": 1781633435,
"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": 3,
"language": "sv",
"parked": false,
"app": {
"id": 158,
"steam_id": 407530,
"name": "ARK: Survival Of The Fittest",
"url": "ark-survival-of-the-fittest"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10889452");
$data = json_decode($json, true);
var_dump($data);