API для DockerServer PreExperimental
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "l",
"region": -1,
"product": "541300",
"gametype": "Version_1.4.0.0,Time_2,Month_11,Owner_76561199217734728,Region_USA,IsPopular",
"dedicated": true,
"steam_id": "90291489436468254",
"domain": null,
"id": 13724201,
"ip": "135.119.48.140",
"port": 7950,
"query": 7951,
"project_id": null,
"color": 0,
"city": "Des Moines",
"description": null,
"game": 541300,
"owner": null,
"boosts": 1,
"last_offline": 1787543831,
"last_online": 1787573557,
"icon": null,
"name": "DockerServer PreExperimental",
"connect": "135.119.48.140:7950",
"request": "135.119.48.140:7951",
"map": "Black_Island",
"gamemode": null,
"version": "1.4.0.0",
"numplayers": 1,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": null,
"country": "US",
"status": true,
"votes": 0,
"points": 57,
"add_date": 1786754649,
"last_update": 1787573557,
"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": 7,
"language": "en",
"parked": false,
"app": {
"id": 12556,
"steam_id": 541300,
"name": "Survive the Nights",
"url": "survive-the-nights"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13724201");
$data = json_decode($json, true);
var_dump($data);