API для New Private Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "Version_1.4.0.0,Time_23,Month_6,Owner_76561198030492564,Region_USA,IsPopular",
"os": "w",
"product": "541300",
"region": -1,
"steam_id": "90289704652530707",
"domain": null,
"id": 12350812,
"ip": "24.23.18.12",
"port": 7950,
"query": 7951,
"project_id": null,
"color": 0,
"city": "Fresno",
"description": null,
"game": 541300,
"owner": null,
"boosts": 1,
"last_offline": 1785177982,
"last_online": 1785180000,
"icon": null,
"name": "New Private Server",
"connect": "24.23.18.12:7950",
"request": "24.23.18.12:7951",
"map": "Black_Island",
"gamemode": null,
"version": "1.4.0.0",
"numplayers": 1,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": null,
"country": "US",
"status": true,
"votes": 0,
"points": 42,
"add_date": 1784280735,
"last_update": 1785180000,
"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": 47,
"language": "en",
"parked": false,
"app": {
"id": 12556,
"steam_id": 541300,
"name": "Survive the Nights",
"url": "survive-the-nights"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12350812");
$data = json_decode($json, true);
var_dump($data);