API pentru (PRIMITIVE) The Enchanted Realm
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 60,
"fps_avg": 58,
"entities_count": 237815,
"world_seed": 1337,
"world_size": 3750,
"steam_id": "90286591011514392",
"domain": null,
"id": 11645258,
"ip": "156.236.84.35",
"port": 28035,
"query": 28036,
"color": 0,
"city": "Dallas",
"description": "\nMap wipes Monthly on Forced wipes - First Thursday of each month at 1pm CST \r\nBlueprints do wipe \r\nMax group size: 4.\r\nNo teaming exceeding more than 4 . \r\nDiscord: Discord.gg/Rn9dU3q7B5\r\n 2x gather rates \r\n 2x scrap and components \r\n1/2 crafting and recycling times\r\nIncreased stack sizes and smelting speed\r\nBoats spawn on shore\r\nRecyclers and drone marketplace at fishing villages\r\n10 minute nights and 2hr days\r\nActive non-playing admins",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780177457,
"last_online": 1780573833,
"icon": null,
"name": "(PRIMITIVE) The Enchanted Realm",
"connect": "156.236.84.35:28035",
"request": "156.236.84.35:28036",
"map": "Custom Map",
"gamemode": "Primitive",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780177457,
"last_update": 1780573833,
"banned": false,
"wipe": 1780278607,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5828,
"language": "en",
"parked": false,
"app": {
"id": 252490,
"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/11645258");
$data = json_decode($json, true);
var_dump($data);