API для 马头
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90290153468107787",
"domain": null,
"id": 13164861,
"ip": "14.22.23.150",
"port": 7777,
"query": 8888,
"project_id": null,
"color": 0,
"city": "Guangzhou",
"description": null,
"game": 1149460,
"owner": null,
"boosts": 1,
"last_offline": 1785769768,
"last_online": 1785779168,
"icon": null,
"name": "马头",
"connect": "14.22.23.150:7777",
"request": "14.22.23.150:8888",
"map": null,
"gamemode": "Icarus",
"version": "0.0.0.1",
"numplayers": 1,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 42,
"add_date": 1785576903,
"last_update": 1785779168,
"ban_reason": null,
"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": 588,
"language": "zh",
"parked": false,
"app": {
"id": 1600891,
"steam_id": 1149460,
"name": "Icarus",
"url": "icarus"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13164861");
$data = json_decode($json, true);
var_dump($data);