API pentru Realmwright SMP | Vanilla+ survival Season 0
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11756762,
"ip": "147.135.8.166",
"port": 25642,
"query": 25642,
"project_id": null,
"color": 0,
"city": "Oakton",
"description": "[{\"id\":\"w64h34CeLT\",\"type\":\"paragraph\",\"data\":{\"text\":\"Small Java Season 0 vanilla+ SMP beta. First Writ trailhead is live server-side; looking for early testers to try spawn/first path and report real client results. No P2W.\"}}]",
"game": 9000034,
"owner": 199255,
"boosts": 1,
"last_offline": 1780789492,
"last_online": 1780883418,
"icon": null,
"name": "Realmwright SMP | Vanilla+ survival Season 0",
"connect": "147.135.8.166:25642",
"request": "147.135.8.166:25642",
"map": null,
"gamemode": null,
"version": "26.1.2",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": null,
"private": null,
"country": "US",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1780731491,
"last_update": 1780883418,
"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": 30,
"language": "en",
"parked": false,
"app": {
"id": 169,
"steam_id": 9000034,
"name": "Minecraft",
"url": "minecraft"
},
"server_owner": {
"username": "realmwright",
"avatar": "no.jpg"
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11756762");
$data = json_decode($json, true);
var_dump($data);