API для 宇宙超级霹雳无敌吊炸天的服务器
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286792696273942",
"domain": null,
"id": 11742792,
"ip": "45.125.47.69",
"port": 10174,
"query": 10176,
"project_id": null,
"color": 0,
"city": "Jinan",
"description": null,
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1780896801,
"last_online": 1781025046,
"icon": null,
"name": "宇宙超级霹雳无敌吊炸天的服务器",
"connect": "45.125.47.69:10174",
"request": "45.125.47.69:10176",
"map": "TheCenter",
"gamemode": "TestGameMode_C",
"version": "361.7",
"numplayers": 2,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 39,
"add_date": 1780518530,
"last_update": 1781025046,
"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": 663,
"language": "zh",
"parked": false,
"app": {
"id": 67,
"steam_id": 346110,
"name": "ARK: Survival Evolved",
"url": "ark-survival-evolved"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11742792");
$data = json_decode($json, true);
var_dump($data);