API pentru water world
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 69823,
"world_seed": 867840661,
"world_size": 3500,
"steam_id": "90285469989076993",
"domain": null,
"id": 474724,
"ip": "104.129.133.107",
"port": 28089,
"query": 28086,
"color": 0,
"city": "Dallas",
"description": "\nWelcome to Diddy's Den! The oldest running Low Pop/ Big Map server in Rust! \r\n wiped 1 May (Next BP Wipe 5 June) \r\n Big Map (4000!) \r\nVanilla \r\n You wont find any cheating here or any fake population. Come join us for a fun time! This server generally only wipes when less than 2 groups are actively playing",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778184187,
"last_online": 1779201621,
"icon": null,
"name": "water world",
"connect": "104.129.133.107:28089",
"request": "104.129.133.107:28086",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2624",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1634303269,
"last_update": 1779201621,
"banned": false,
"wipe": 1778184291,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2507,
"language": "en",
"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/474724");
$data = json_decode($json, true);
var_dump($data);