API pentru vendalized
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"modded": true,
"fps": 85,
"fps_avg": 88,
"entities_count": 152438,
"world_seed": 28939767,
"world_size": 4500,
"steam_id": "90286733207564311",
"domain": null,
"id": 10633081,
"ip": "185.180.2.35",
"port": 28634,
"query": 27634,
"project_id": null,
"color": 0,
"city": "Prague",
"description": "\nIMPORTANT NOTICE:\r\nServer is currently still under heavy development!\r\nFeatures might change or get removed at any time without prior notice.\r\nJoin the Discord to get all the latest news and updates.\r\n(for link click website button)\r\n_____________________________________________________________\r\n\r\npowered by Carbon Framework",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780704252,
"last_online": 1780917028,
"icon": null,
"name": "vendalized",
"connect": "185.180.2.35:28634",
"request": "185.180.2.35:27634",
"map": "SkyFall",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "CZ",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1763713727,
"last_update": 1780917028,
"banned": false,
"wipe": 1780595113,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2253,
"language": "cs",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10633081");
$data = json_decode($json, true);
var_dump($data);