API для Welcome to the North
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789910669,
"app": {
"id": 34967,
"name": "Valheim",
"steam_id": 892970,
"url": "valheim"
},
"color": 0,
"connect": "180.190.122.176:2456",
"country": "PH",
"domain": null,
"game": 892970,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16800601,
"ip": "180.190.122.176",
"language": "tl",
"last_update": 1790655228,
"map": "Welcome to the North",
"maxplayers": 10,
"name": "Welcome to the North",
"numplayers": 0,
"official": null,
"points": 0,
"port": 2456,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 2457,
"request": "180.190.122.176:2457",
"secured": false,
"status": false,
"steam_id": "90293611301374982",
"version": "1.0.15",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "San Juan",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790655228,
"last_online": 1790616613,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 77390,
"wipe_period": null,
"os": "l",
"region": -1,
"product": "valheim",
"gametype": "g=1.0.15,n=40,m=40\\=1_9:2_0:3_4:4_0:5_0\\,0\\=85\\,1\\=150\\,14\\=110\\,15\\=120\\,4\\=150\\,17",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16800601");
$data = json_decode($json, true);
var_dump($data);