SCP: 5K (Alpha Testing)
API для Official PVP US-2
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10567411json
{
"response": {
"steam_id": "90284907096674318",
"domain": null,
"id": 10567411,
"ip": "209.192.185.235",
"port": 29157,
"query": 29158,
"color": 0,
"city": "Miami",
"description": null,
"game": 872670,
"owner": null,
"boosts": 1,
"last_offline": 1774988534,
"score": 0,
"last_online": 1777566073,
"icon": null,
"name": "Official PVP US-2",
"connect": "209.192.185.235:29157",
"request": "209.192.185.235:29158",
"map": "M_ServerDefault",
"gamemode": "PVP",
"version": "0.4.1.0",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1762537352,
"last_update": 1777566073,
"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": 8,
"language": "en",
"parked": false,
"app": {
"id": 51883,
"steam_id": 872670,
"name": "SCP: 5K (Alpha Testing)",
"url": "scp-5k-alpha-testing"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10567411");
$data = json_decode($json, true);
var_dump($data);