Insurgency: Sandstorm
API для Darksaint Gaming 24/7
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/171621json
{
"response": {
"steam_id": "90284558375942157",
"domain": null,
"id": 171621,
"ip": "173.233.84.178",
"port": 27102,
"query": 27131,
"color": 0,
"city": "Latham",
"description": "",
"game": 581320,
"owner": null,
"boosts": 1,
"last_offline": 1776424368,
"score": null,
"last_online": 1776440467,
"icon": null,
"name": "Darksaint Gaming 24/7",
"connect": "173.233.84.178:27102",
"request": "173.233.84.178:27131",
"map": "Farmhouse",
"gamemode": "Checkpoint",
"version": "1.1.0.0",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1553617468,
"last_update": 1776440467,
"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": 7,
"language": "en",
"parked": false,
"app": {
"id": 23489,
"steam_id": 581320,
"name": "Insurgency: Sandstorm",
"url": "insurgency-sandstorm"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/171621");
$data = json_decode($json, true);
var_dump($data);