API для We're a bunch of Plebs
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286238004321302",
"domain": null,
"id": 10747244,
"ip": "209.159.156.46",
"port": 25577,
"query": 25578,
"project_id": null,
"color": 0,
"city": "Secaucus",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1770766261,
"last_online": 1781241074,
"icon": null,
"name": "We're a bunch of Plebs",
"connect": "209.159.156.46:25577",
"request": "209.159.156.46:25578",
"map": "VRisingWorld",
"gamemode": "12c45bbf-f6cf-4dbc-9238-2d9c3b219bcf",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766252065,
"last_update": 1781241074,
"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": 1158,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10747244");
$data = json_decode($json, true);
var_dump($data);