API для V's Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789581798,
"app": {
"id": 6,
"name": "No More Room in Hell",
"steam_id": 224260,
"url": "no-more-room-in-hell"
},
"color": 0,
"connect": "109.94.8.248:27017",
"country": "RU",
"domain": null,
"game": 224260,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16593189,
"ip": "109.94.8.248",
"language": "ru",
"last_update": 1789833699,
"map": "nmo_broadway",
"maxplayers": 5,
"name": "V's Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27017,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27017,
"request": "109.94.8.248:27017",
"secured": true,
"status": false,
"steam_id": "90292882188526600",
"version": "1.1.5.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Подольск",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1789833699,
"last_online": 1789581779,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 373,
"wipe_period": null,
"os": "w",
"region": 255,
"product": "nmrih",
"gametype": "alltalk",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16593189");
$data = json_decode($json, true);
var_dump($data);