Spacewar
API для #5 | OFFICIAL MAX5 | FUN MODE
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11135378json
{
"response": {
"steam_id": 90284802936806430,
"domain": null,
"id": 11135378,
"ip": "194.147.90.93",
"port": 22450,
"query": 22450,
"color": 0,
"city": "Moscow",
"description": null,
"game": 480,
"owner": null,
"boosts": 1,
"last_offline": 1776784397,
"score": 0,
"last_online": 1776852610,
"icon": null,
"name": "#5 | OFFICIAL MAX5 | FUN MODE",
"connect": "194.147.90.93:22450",
"request": "194.147.90.93:22450",
"map": "Scarland",
"gamemode": null,
"version": "1.2.2",
"numplayers": 51,
"maxplayers": 150,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 103,
"add_date": 1770398152,
"last_update": 1776852610,
"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": 2,
"language": "ru",
"parked": false,
"app": {
"id": 54694,
"steam_id": 480,
"name": "Spacewar",
"url": "spacewar"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11135378");
$data = json_decode($json, true);
var_dump($data);