Soulmask
API pentru NightWatch
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11488786json
{
"response": {
"steam_id": "90284167590001695",
"domain": null,
"id": 11488786,
"ip": "92.137.139.216",
"port": 7777,
"query": 27015,
"color": 0,
"city": "Thonon-les-Bains",
"description": null,
"game": 2646460,
"owner": null,
"boosts": 1,
"last_offline": 1775826105,
"score": 0,
"last_online": 1776006653,
"icon": null,
"name": "NightWatch",
"connect": "92.137.139.216:7777",
"request": "92.137.139.216:27015",
"map": "DLC_Level01_Main",
"gamemode": "00",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1775826105,
"last_update": 1776006653,
"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": 1505,
"language": "fr",
"parked": false,
"app": {
"id": 1625562,
"steam_id": 2646460,
"name": "Soulmask",
"url": "soulmask"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11488786");
$data = json_decode($json, true);
var_dump($data);