Barotrauma
API pentru FSR:RP - Serious RP (READ DESCRIPTION)
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10351017json
{
"response": {
"steam_id": "90283460533926924",
"domain": null,
"id": 10351017,
"ip": "104.243.32.18",
"port": 27144,
"query": 27145,
"color": 0,
"city": "Piscataway",
"description": null,
"game": 602960,
"owner": null,
"boosts": 1,
"last_offline": 1771171304,
"score": 0,
"last_online": 1776795713,
"icon": null,
"name": "FSR:RP - Serious RP (READ DESCRIPTION)",
"connect": "104.243.32.18:27144",
"request": "104.243.32.18:27145",
"map": "Dunkerque",
"gamemode": "sandbox",
"version": "1.11.5.0",
"numplayers": 0,
"maxplayers": 22,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1758529379,
"last_update": 1776795713,
"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": 49,
"language": "en",
"parked": false,
"app": {
"id": 50335,
"steam_id": 602960,
"name": "Barotrauma",
"url": "barotrauma"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10351017");
$data = json_decode($json, true);
var_dump($data);