Natural Selection
API для NS2-Fr.com - <NS~FC> GunGame
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/558597json
{
"response": {
"steam_id": "90285151481672709",
"domain": null,
"id": 558597,
"ip": "82.64.74.234",
"port": 27027,
"query": 27027,
"color": 0,
"city": "Sommières",
"description": "",
"game": 90002,
"owner": null,
"boosts": 1,
"last_offline": 1776934953,
"score": null,
"last_online": 1777543261,
"icon": null,
"name": "NS2-Fr.com - <NS~FC> GunGame",
"connect": "82.64.74.234:27027",
"request": "82.64.74.234:27027",
"map": "co_dust",
"gamemode": "NS v3.2.0",
"version": "1.1.2.2/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1665947735,
"last_update": 1777543261,
"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": 3,
"language": "fr",
"parked": false,
"app": {
"id": 102,
"steam_id": 90002,
"name": "Natural Selection",
"url": "natural-selection"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/558597");
$data = json_decode($json, true);
var_dump($data);