s&box
API pentru Sandbox
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11491780json
{
"response": {
"revision": "234942",
"protocol": 1101,
"gameident": "metadog.mdsandbox",
"mapident": "rpdowntown3t",
"hidden": false,
"api": 25,
"steam_id": "90285554564925442",
"domain": null,
"id": 11491780,
"ip": "194.69.160.56",
"port": 37029,
"query": 37030,
"color": 0,
"city": "City of London",
"description": null,
"game": 590830,
"owner": null,
"boosts": 1,
"last_offline": 1778704932,
"score": 0,
"last_online": 1778362850,
"icon": null,
"name": "Sandbox",
"connect": "194.69.160.56:37029",
"request": "194.69.160.56:37030",
"map": "rpdowntown3t",
"gamemode": "Admin Perms Sandbox",
"version": "26.05.06a",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1777563695,
"last_update": 1778704932,
"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": 85,
"language": "en",
"parked": false,
"app": {
"id": 1646716,
"steam_id": 590830,
"name": "s&box",
"url": "sbox"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11491780");
$data = json_decode($json, true);
var_dump($data);